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.0070.05320.09
5.6.160.0030.04720.46
5.6.150.0000.04318.12
5.6.140.0100.07318.14
5.6.130.0070.08318.20
5.6.120.0070.08021.01
5.6.110.0070.08020.98
5.6.100.0130.07720.98
5.6.90.0070.08320.98
5.6.80.0070.05720.39
5.5.300.0100.05318.08
5.5.290.0000.04717.96
5.5.280.0100.08020.80
5.5.270.0130.08020.84
5.5.260.0030.06720.79
5.5.250.0100.07320.58
5.5.240.0230.07320.12

preferences:
142.52 ms | 1386 KiB | 7 Q