3v4l.org

run code in 300+ PHP versions simultaneously
<?php const SOMETHING = 'yep'; function this_wont_work() { echo "for real thisll blow up"; } $foo = new class { public $one = 'basic string'; public $two = 124; public $three = SOMETHING; }

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)
7.0.00.0030.08320.09
5.6.160.0070.04020.46
5.6.150.0100.07318.16
5.6.140.0100.06718.18
5.6.130.0130.04718.18
5.6.120.0130.08021.04
5.6.110.0270.06720.99
5.6.100.0000.06020.96
5.6.90.0130.07321.11
5.6.80.0130.06320.38
5.5.300.0030.04317.96
5.5.290.0130.03017.97
5.5.280.0100.05320.88
5.5.270.0070.05320.79
5.5.260.0030.07720.97
5.5.250.0070.08320.60
5.5.240.0200.07020.26

preferences:
137.59 ms | 1394 KiB | 7 Q