3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = memory_get_usage(true); var_dump(change('shmest', change('test', create()))); echo ($m2 = memory_get_usage(true)) - $m; var_dump(change('shmest', &change('test', &create()))); echo memory_get_usage(true) - $m2; function create() { return ['type' => 'smth', 'property' => 'smth too']; } function &change($prop, &$obj) { $obj['property'] = $prop; return $obj; }

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.290.0100.05612.45
5.4.280.0060.03912.35
5.4.270.0100.03912.35
5.4.260.0090.05712.34
5.4.250.0110.04912.35
5.4.240.0100.04912.34
5.4.230.0100.04912.34
5.4.220.0100.04912.34
5.4.210.0120.04512.34
5.4.200.0030.04912.34
5.4.190.0090.04812.33
5.4.180.0090.04812.34
5.4.170.0080.04912.35
5.4.160.0080.04612.34
5.4.150.0120.04312.34
5.4.140.0120.04712.02
5.4.130.0100.04412.01
5.4.120.0110.05011.97
5.4.110.0080.03511.96
5.4.100.0030.03911.96
5.4.90.0090.03811.96
5.4.80.0090.05111.96
5.4.70.0090.04911.96
5.4.60.0090.03611.96
5.4.50.0080.03611.96
5.4.40.0050.03911.95
5.4.30.0080.04211.95
5.4.20.0080.03811.95
5.4.10.0100.03311.95
5.4.00.0070.04011.43
5.3.280.0080.04612.71
5.3.270.0140.05212.73
5.3.260.0100.04712.72
5.3.250.0120.03912.72
5.3.240.0100.04512.71
5.3.230.0080.04212.71
5.3.220.0100.04312.68
5.3.210.0060.05712.68
5.3.200.0110.03612.68
5.3.190.0070.04412.68
5.3.180.0070.04312.68
5.3.170.0090.04012.67
5.3.160.0110.08412.67
5.3.150.0110.05212.68
5.3.140.0140.03712.66
5.3.130.0130.05412.66
5.3.120.0160.05012.66
5.3.110.0110.06512.66
5.3.100.0100.05212.12
5.3.90.0060.05612.09
5.3.80.0110.05012.07
5.3.70.0070.05512.08
5.3.60.0090.05412.07
5.3.50.0060.05612.00
5.3.40.0110.05212.00
5.3.30.0120.06411.95
5.3.20.0200.05511.73
5.3.10.0120.06511.70
5.3.00.0110.05011.69

preferences:
151.57 ms | 1394 KiB | 7 Q