Skip to content
markdown guide

If for a small job, I choice PHP.
Because, PHP has many developer, and useful framework for web.We can do fast develop and fast release at PHP.

If for my project, I choice Dart.
Because, Dart is easy to develop web service by strong type and smart editors and IDE.


PHP is designed for app on server side, and Dart for app on client side. So, use both.


From a performance perspective on server side, Dart is ahead of PHP:


wrk http://localhost:1337 -c 8 -d 60 -t 8
/// Dart
import 'dart:io';

Future main() async {
  var server = await HttpServer.bind(
  print('Listening on localhost:${server.port}');

  await for (HttpRequest request in server) {
    request.response.write('Hello World');
    await request.response.close();
// PHP //  php -S localhost:1337
header('Content-Type: text/plain');

echo "Hello World";
$ php --version
PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.7.0, Copyright (c) 2002-2019, by Derick Rethans
$ dart --version
Dart VM version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "macos_x64"

Looks very interesting, I think I should give it a try ๐Ÿ™‚


yes, but PHP is more simple (just 2 lines), so it's better for newbies, simple to edit, to maintain, etc. :)

Classic DEV Post from Jul 26 '19

๐ŸŽฉ JavaScript Enhanced Scss mixins! ๐ŸŽฉ concepts explained

In the next post we are going to explore CSS @apply to supercharge what we talk about here....

Julian Finkler profile image
Programmierer aus Leidenschaft. Ich lege besonders Wert auf Clean Code und liebe es mich durch legacy Code zu wรผhlen... und den dann zu refaktorieren ๐Ÿ˜‰.