3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $your_crazy_input = "flag"; if(isset($your_crazy_input)) { $position =strpos($your_crazy_input, "flag"); $length = strlen($your_crazy_input); echo $position; echo "\n"; echo $length; echo "\n"; echo $position !== false; if($position !== false && $length < 4) { echo $flag; } else { echo "Oh Sorry.. This isn't a crazy input."; } }
based on VXeST

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.00.0090.00618.97
7.1.100.0060.00618.13
7.1.70.0000.00717.09
7.1.60.0100.01020.03
7.1.50.0140.00716.92
7.1.00.0070.07322.43
7.0.200.0030.01016.64
7.0.100.0570.06720.01
7.0.90.0500.08320.01
7.0.80.0430.07020.12
7.0.70.0370.07719.88
7.0.60.0200.07719.92
7.0.50.0430.08020.25
7.0.40.0100.07720.14
7.0.30.0100.07720.10
7.0.20.0000.06020.00
7.0.10.0100.03720.14
7.0.00.0100.07320.07
5.6.280.0000.06720.78
5.6.250.0070.05320.73
5.6.240.0100.08320.69
5.6.230.0030.08720.57
5.6.220.0200.07020.61
5.6.210.0070.07020.74
5.6.200.0030.09021.01
5.6.190.0070.08721.02
5.6.180.0100.06720.96
5.6.170.0100.08321.12
5.6.160.0070.04721.17
5.6.150.0070.08321.17
5.6.140.0170.07021.04
5.6.130.0070.07321.05
5.6.120.0100.08021.05
5.6.110.0000.08720.93
5.6.100.0130.07721.00
5.6.90.0170.07721.15
5.6.80.0030.07320.40
5.6.70.0100.07320.39
5.6.60.0170.07320.37
5.6.50.0100.07320.45
5.6.40.0070.08320.47
5.6.30.0070.07720.39
5.6.20.0030.08320.30
5.6.10.0130.04020.46
5.6.00.0130.07320.45
5.5.380.0170.07020.54
5.5.370.0130.07020.42
5.5.360.0130.04320.41
5.5.350.0130.04720.32
5.5.340.0030.08320.85
5.5.330.0000.09320.90
5.5.320.0100.07020.78
5.5.310.0070.06720.77
5.5.300.0100.06020.74
5.5.290.0070.08020.77
5.5.280.0130.07320.91
5.5.270.0070.09020.74
5.5.260.0100.07720.88
5.5.250.0070.08320.70
5.5.240.0100.08020.30
5.5.230.0100.06320.26
5.5.220.0030.07320.27
5.5.210.0070.08020.14
5.5.200.0070.07720.21
5.5.190.0030.08720.09
5.5.180.0170.06720.18
5.5.160.0070.08320.23
5.5.150.0030.08020.21
5.5.140.0130.06020.27
5.5.130.0070.06020.23
5.5.120.0130.07020.20
5.5.110.0100.07320.27
5.5.100.0130.06319.95
5.5.90.0100.07019.94
5.5.80.0030.05020.11
5.5.70.0030.08320.00
5.5.60.0070.06020.05
5.5.50.0100.07020.05
5.5.40.0030.08020.09
5.5.30.0100.07720.08
5.5.20.0100.08020.14
5.5.10.0170.07320.11
5.5.00.0130.06319.99
5.4.450.0070.08319.30
5.4.440.0100.08019.16
5.4.430.0170.06719.11
5.4.420.0100.04719.42
5.4.410.0070.04719.34
5.4.400.0070.06018.82
5.4.390.0100.07018.96
5.4.380.0100.06018.82
5.4.370.0070.08019.13
5.4.360.0070.08318.96
5.4.350.0000.08319.04
5.4.340.0030.07719.13
5.4.320.0100.07318.89
5.4.310.0000.05719.03
5.4.300.0000.05719.09
5.4.290.0130.03018.76
5.4.280.0070.06718.89
5.4.270.0170.06019.04
5.4.260.0100.07318.96
5.4.250.0030.07719.21
5.4.240.0000.05319.21
5.4.230.0130.07019.04
5.4.220.0070.07718.96
5.4.210.0030.07019.09
5.4.200.0000.08019.04
5.4.190.0030.08019.02
5.4.180.0100.07018.92
5.4.170.0100.07719.02
5.4.160.0030.04019.02
5.4.150.0100.03719.04
5.4.140.0070.07316.27
5.4.130.0030.07316.32
5.4.120.0100.03716.06
5.4.110.0070.07016.22
5.4.100.0170.05016.39
5.4.90.0100.06016.42
5.4.80.0030.07316.32
5.4.70.0070.05716.20
5.4.60.0030.07716.39
5.4.50.0100.06016.38
5.4.40.0100.03716.44
5.4.30.0070.07016.33
5.4.20.0130.06316.20
5.4.10.0070.07016.25
5.4.00.0000.07015.77