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.0000.09020.19
5.6.160.0070.09020.52
5.6.150.0000.09318.21
5.6.140.0070.07018.14
5.6.130.0130.08018.27
5.6.120.0070.08321.12
5.6.110.0130.08021.13
5.6.100.0200.06021.01
5.6.90.0130.07320.96
5.6.80.0170.07020.42
5.5.300.0030.04017.90
5.5.290.0130.07718.01
5.5.280.0030.08320.89
5.5.270.0030.08320.89
5.5.260.0130.07720.86
5.5.250.0130.08020.54
5.5.240.0170.06020.27

preferences:
139.39 ms | 1394 KiB | 7 Q