3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SPIDERMAN','peter parker'); function foo () { $x = 'spiderman is ' . SPIDERMAN; return $x; } echo SPIDERMAN

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.130.0230.03812.04
5.4.120.0190.04212.00
5.4.110.0140.04212.00
5.4.100.0130.04512.00
5.4.90.0210.05412.00
5.4.80.0120.04612.00
5.4.70.0290.04312.00
5.4.60.0160.04312.00
5.4.50.0250.06311.99
5.4.40.0190.03811.98
5.4.30.0430.05611.98
5.4.20.0140.04311.97
5.4.10.0160.04411.98
5.4.00.0140.04211.47
5.3.230.0140.04712.71
5.3.220.0150.04412.68
5.3.210.0190.04312.68
5.3.200.0160.04312.68
5.3.190.0160.04612.67
5.3.180.0230.05112.67
5.3.170.0260.06712.67
5.3.160.0150.04612.67
5.3.150.0170.04112.67
5.3.140.0180.04212.66
5.3.130.0140.04712.65
5.3.120.0140.04612.65
5.3.110.0160.04512.66
5.3.100.0190.04112.12
5.3.90.0150.04312.09
5.3.80.0180.07112.07
5.3.70.0200.05512.07
5.3.60.0170.04312.06
5.3.50.0190.03912.01
5.3.40.0180.04212.01
5.3.30.0250.07711.96
5.3.20.0120.04511.74
5.3.10.0110.04511.71
5.3.00.0310.07111.69

preferences:
135.35 ms | 1394 KiB | 7 Q