3v4l.org

run code in 300+ PHP versions simultaneously
<?php class notStdClass { public $data = array(); } function foo() { static $id= 0; $object = new notStdClass; $object->id = (++$id)."qwe"; return $object; } $foo1 = foo(); $foo2 = foo(); var_dump( spl_object_hash($foo1), spl_object_hash($foo2), spl_object_hash(&foo()), spl_object_hash(foo()) );

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.190.0170.04212.39
5.4.180.0160.04112.38
5.4.170.0130.04412.40
5.4.160.0130.04812.39
5.4.150.0260.06312.39
5.4.140.0110.04612.07
5.4.130.0150.04412.06
5.4.120.0130.04312.02
5.4.110.0150.04112.02
5.4.100.0140.04312.02
5.4.90.0140.04312.02
5.4.80.0110.04512.02
5.4.70.0110.04412.02
5.4.60.0150.04112.01
5.4.50.0140.04212.00
5.4.40.0130.04212.00
5.4.30.0180.04011.99
5.4.20.0350.08111.99
5.4.10.0170.03811.99
5.4.00.0120.04411.48
5.3.270.0130.04712.72
5.3.260.0190.04112.71
5.3.250.0170.04212.72
5.3.240.0150.04412.72
5.3.230.0140.04712.71
5.3.220.0290.05912.68
5.3.210.0160.04312.68
5.3.200.0170.04212.68
5.3.190.0160.04412.68
5.3.180.0150.04312.68
5.3.170.0170.04212.67
5.3.160.0150.04712.67
5.3.150.0140.04512.67
5.3.140.0130.04512.66
5.3.130.0190.04012.66
5.3.120.0170.04312.66
5.3.110.0190.07012.66
5.3.100.0160.04312.13
5.3.90.0190.03812.11
5.3.80.0180.04112.09
5.3.70.0170.04212.09
5.3.60.0160.04212.07
5.3.50.0100.04812.02
5.3.40.0110.04712.02
5.3.30.0110.04511.99
5.3.20.0140.04411.77
5.3.10.0230.06311.73
5.3.00.0140.04111.71

preferences:
140.46 ms | 1386 KiB | 7 Q