3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyDAO { public $x = 1; public __construct() { $this->x = uniquid(); } } class MyAction { private $x = 1; public function run() { $args = func_get_args(); foreach ($args as $arg) if ($arg instanceof MyDAO) $x = $arg->x; echo $x; } } $action = new MyAcount(); $action->run(new MyDAO(5));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.70.0070.06016.45
5.4.60.0070.06016.35
5.4.50.0100.06316.44
5.4.40.0070.03316.40
5.4.30.0100.06016.46
5.4.20.0070.06316.39
5.4.10.0100.06016.63
5.4.00.0070.04715.85
5.3.170.0000.04014.45
5.3.160.0000.04714.48
5.3.150.0000.04014.45
5.3.140.0000.04314.55
5.3.130.0070.04314.46
5.3.120.0030.07714.58
5.3.110.0130.04014.43
5.3.100.0030.07314.05
5.3.90.0100.06314.01
5.3.80.0070.05314.18
5.3.70.0130.07013.99
5.3.60.0030.04314.02
5.3.50.0030.04014.02
5.3.40.0000.06014.02
5.3.30.0030.05713.87
5.3.20.0030.04313.68
5.3.10.0170.06313.66
5.3.00.0000.04713.64

preferences:
141.11 ms | 1394 KiB | 7 Q