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.06020.09
5.6.160.0070.07720.47
5.6.150.0100.08018.29
5.6.140.0070.07318.23
5.6.130.0070.07018.19
5.6.120.0200.06320.99
5.6.110.0100.08320.98
5.6.100.0070.08020.96
5.6.90.0100.04720.95
5.6.80.0000.09020.48
5.5.300.0030.04017.95
5.5.290.0100.07017.96
5.5.280.0130.07320.64
5.5.270.0070.06720.95
5.5.260.0100.08020.72
5.5.250.0200.06320.58
5.5.240.0170.07020.36

preferences:
134.29 ms | 1398 KiB | 7 Q