3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST['solution'] = 6898557993159892.0; $solution=(($_POST['solution']*1337)+1.7); $solution=!preg_match('/[^0-9]/',''.$solution)?(int)round($solution)-33:1337; echo $solution.' '.gettype($solution); if($solution=='float'){ echo 'WE rock'; } ?>
based on cSOND

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0040.00716.91
7.2.00.0110.00419.70
7.1.200.0040.00815.96
7.1.100.0080.00318.22
7.1.70.0060.00617.47
7.1.60.0130.01319.46
7.1.50.0230.00335.18
7.1.00.0070.07322.41
7.0.200.0070.00017.07
7.0.140.0000.05021.92
7.0.70.4730.04319.94
7.0.60.0100.07020.06
7.0.50.0130.07717.68
7.0.40.0070.09020.25
7.0.30.0200.05320.20
7.0.20.0230.03320.11
7.0.10.0270.08720.31
7.0.00.0100.07320.18
5.6.280.0100.06721.04
5.6.210.0030.08320.71
5.6.200.0030.09018.11
5.6.190.0100.04320.48
5.6.180.0270.08720.46
5.6.170.0200.07720.71
5.6.160.0070.05320.70
5.6.150.0070.03718.23
5.6.140.0200.03018.11
5.6.130.0070.06018.08
5.6.120.0070.08720.98
5.6.110.0070.08020.96
5.6.100.0170.08020.96
5.6.90.0030.06020.96
5.6.80.0100.08020.38
5.6.70.0200.04320.52
5.5.350.0130.07320.37
5.5.340.0170.07017.89
5.5.330.0070.08720.36
5.5.320.0070.07020.57
5.5.310.0270.07720.29
5.5.300.0100.07317.97
5.5.290.0000.06017.92
5.5.280.0030.06020.98
5.5.270.0030.07020.76
5.5.260.0070.05320.86
5.5.250.0070.04020.71
5.5.240.0070.06720.24
5.4.450.0500.06019.47
5.4.440.0870.05319.07
5.4.430.0770.05319.45
5.4.420.0730.05719.42
5.4.410.0630.05719.42
5.4.400.0170.05018.80
5.4.390.0130.05718.68
5.4.380.0170.05718.73
5.4.370.0070.06318.57
5.4.360.0200.05318.72
5.4.350.0230.05018.72
5.4.340.0200.04718.46
5.4.320.0170.05318.56
5.4.310.0170.05318.61
5.4.300.0170.06718.52
5.4.290.0230.05018.49
5.4.280.0170.06318.77
5.4.270.0200.08318.43
5.4.260.0130.06018.55
5.4.250.0230.04718.77
5.4.240.0170.06018.62
5.4.230.0200.05018.73
5.4.220.0200.05018.51
5.4.210.0300.03718.45
5.4.200.0130.05316.61
5.4.190.0130.05318.64
5.4.180.0300.06318.59
5.4.170.0200.06018.51
5.4.160.0170.06018.56
5.4.150.0100.06718.71
5.4.140.0130.05016.05
5.4.130.0230.04716.07
5.4.120.0230.05016.17
5.4.110.0270.05016.21
5.4.100.0200.05316.16
5.4.90.0230.04716.24
5.4.80.0170.05016.23
5.4.70.0170.05316.19
5.4.60.0130.05016.10
5.4.50.0170.05316.05
5.4.40.0200.05316.12
5.4.30.0230.04716.09
5.4.20.0130.05316.22
5.4.10.0170.04716.28
5.4.00.0130.05015.71
5.3.290.0230.04714.64
5.3.280.0130.05314.67
5.3.270.0170.05014.51
5.3.260.0130.05714.70
5.3.250.0300.04014.68
5.3.240.0030.06714.54
5.3.230.0130.05314.59
5.3.220.0200.04714.55
5.3.210.0200.05014.57
5.3.200.0170.05014.48
5.3.190.0170.05714.54
5.3.180.0130.05314.47
5.3.170.0100.06314.49
5.3.160.0030.06314.45
5.3.150.0170.05014.55
5.3.140.0100.05714.67
5.3.130.0270.04314.48
5.3.120.0170.05014.54
5.3.110.0230.04714.55
5.3.100.0200.05014.04
5.3.90.0170.05714.11
5.3.80.0070.06014.11
5.3.70.0130.05314.00
5.3.60.0170.05013.94
5.3.50.0230.04013.84
5.3.40.0170.04713.94
5.3.30.0070.05713.82
5.3.20.0130.05313.62
5.3.10.0070.08013.59
5.3.00.0230.04313.62
5.2.170.0100.04311.05
5.2.160.0170.03711.18
5.2.150.0200.03311.18
5.2.140.0130.04011.09
5.2.130.0130.03711.06
5.2.120.0000.05011.03
5.2.110.0130.04011.15
5.2.100.0170.03711.07
5.2.90.0100.04711.16
5.2.80.0070.05011.00
5.2.70.0070.04711.15
5.2.60.0200.03711.08
5.2.50.0130.04011.10
5.2.40.0100.04011.03
5.2.30.0070.04711.03
5.2.20.0070.04710.95
5.2.10.0130.03710.88
5.2.00.0100.04010.81
5.1.60.0200.02310.06
5.1.50.0070.04010.01
5.1.40.0100.04010.01
5.1.30.0200.02710.43
5.1.20.0100.03710.48
5.1.10.0100.03710.25
5.1.00.0130.03310.14
5.0.50.0070.0278.56
5.0.40.0130.0208.50
5.0.30.0170.0378.40
5.0.20.0070.0278.29
5.0.10.0130.0208.35
5.0.00.0070.0478.30
4.4.90.0030.0235.92
4.4.80.0030.0275.98
4.4.70.0230.0036.00
4.4.60.0070.0205.90
4.4.50.0030.0235.96
4.4.40.0030.0435.89
4.4.30.0100.0205.92
4.4.20.0000.0276.05
4.4.10.0030.0235.95
4.4.00.0070.0376.04
4.3.110.0030.0235.81
4.3.100.0030.0235.91
4.3.90.0070.0205.77
4.3.80.0030.0375.84
4.3.70.0030.0235.78
4.3.60.0100.0175.82
4.3.50.0030.0235.82
4.3.40.0030.0335.75
4.3.30.0000.0304.63
4.3.20.0030.0234.64
4.3.10.0030.0204.50
4.3.00.0100.0206.96