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; // public $four = this_wont_work(); }

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.0130.04320.01
5.6.160.0030.05020.45
5.6.150.0070.07718.21
5.6.140.0070.05318.23
5.6.130.0070.05318.27
5.6.120.0100.06020.99
5.6.110.0170.07321.14
5.6.100.0030.06321.11
5.6.90.0130.06320.97
5.6.80.0170.06320.37
5.5.300.0070.06317.95
5.5.290.0100.03718.08
5.5.280.0030.07020.88
5.5.270.0130.07020.88
5.5.260.0070.08020.86
5.5.250.0100.05320.66
5.5.240.0130.07720.25

preferences:
141.22 ms | 1386 KiB | 7 Q