3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strpos("I love php, I love php too!","love"); ?>

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.0140.01016.10
7.2.00.0040.01419.46
7.1.200.0070.00715.79
7.1.100.0030.00918.30
7.1.70.0000.01316.93
7.1.60.0120.01219.46
7.1.50.0070.00716.86
7.1.00.0000.08022.27
7.0.200.0270.00314.71
7.0.140.0000.07721.95
7.0.120.0000.04722.05
7.0.110.0000.05722.04
7.0.100.0070.04722.08
7.0.90.0100.05721.97
7.0.80.0030.04322.05
7.0.70.0130.03022.09
7.0.60.0070.03321.96
7.0.50.0000.04722.04
7.0.40.0100.04322.18
7.0.30.0000.05321.98
7.0.20.0000.05022.19
7.0.10.0000.03322.17
7.0.00.0070.03722.19
5.6.280.0030.07321.02
5.6.260.0030.06021.10
5.6.250.0070.04721.04
5.6.240.0000.06021.04
5.6.230.0000.05720.92
5.6.220.0130.04320.82
5.6.210.0030.03020.90
5.6.200.0000.05020.83
5.6.190.0030.08021.05
5.6.180.0030.06721.02
5.6.170.0000.04021.07
5.6.160.0000.03720.92
5.6.150.0000.03720.84
5.6.140.0000.03720.74
5.6.130.0000.03320.93
5.6.120.0030.03320.93
5.6.110.0030.03321.04
5.6.100.0030.03320.80
5.6.90.0030.03321.05
5.6.80.0070.02720.43
5.6.70.0000.05020.26
5.6.60.0000.05320.21
5.6.50.0000.04320.44
5.6.40.0030.05320.43
5.6.30.0030.07020.39
5.6.20.0030.03720.14
5.6.10.0070.02720.39
5.6.00.0000.03320.18
5.5.380.0000.07317.66
5.5.370.0000.03317.61
5.5.360.0030.06717.50
5.5.350.0070.02717.65
5.5.340.0000.03317.86
5.5.330.0000.06018.17
5.5.320.0030.06718.01
5.5.310.0000.05718.14
5.5.300.0030.03017.84
5.5.290.0030.03318.16
5.5.280.0000.03318.09
5.5.270.0030.03018.26
5.5.260.0000.03718.01
5.5.250.0000.03317.97
5.5.240.0000.03017.48
5.5.230.0000.03317.38
5.5.220.0070.06317.47
5.5.210.0030.05317.54
5.5.200.0070.05717.61
5.5.190.0070.06317.21
5.5.180.0030.04717.36
5.5.160.0000.06717.21
5.5.150.0070.05317.44
5.5.140.0030.04017.46
5.5.130.0030.03017.33
5.5.120.0070.03017.19
5.5.110.0000.03717.48
5.5.100.0000.03317.16
5.5.90.0000.03017.25
5.5.80.0000.03017.11
5.5.70.0070.02717.41
5.5.60.0000.03717.49
5.5.50.0000.03317.37
5.5.40.0000.03017.01
5.5.30.0000.03017.40
5.5.20.0030.03017.11
5.5.10.0000.03317.09
5.5.00.0100.02317.13
5.4.450.0030.04719.35
5.4.440.0000.03319.27
5.4.430.0000.03719.41
5.4.420.0000.03319.25
5.4.410.0030.03019.29
5.4.400.0000.03019.08
5.4.390.0030.04719.15
5.4.380.0030.06718.93
5.4.370.0030.04319.11
5.4.360.0030.07019.26
5.4.350.0030.05718.95
5.4.340.0000.03319.11
5.4.320.0000.07319.07
5.4.310.0070.05019.00
5.4.300.0030.03718.94
5.4.290.0000.03319.26
5.4.280.0030.03319.26
5.4.270.0000.04019.09
5.4.260.0000.03019.09
5.4.250.0000.03019.10
5.4.240.0030.03018.94
5.4.230.0030.03018.93
5.4.220.0070.03318.93
5.4.210.0030.03019.17
5.4.200.0000.03019.07
5.4.190.0000.03019.10
5.4.180.0030.02719.08
5.4.170.0000.03019.10
5.4.160.0000.03018.92
5.4.150.0000.03319.09
5.4.140.0000.03016.56
5.4.130.0000.03016.16
5.4.120.0000.05716.55
5.4.110.0000.06716.52
5.4.100.0070.05016.22
5.4.90.0000.04716.50
5.4.80.0070.06016.25
5.4.70.0030.04716.48
5.4.60.0030.05716.48
5.4.50.0030.04716.47
5.4.40.0070.04016.15
5.4.30.0030.06316.45
5.4.20.0030.03316.25
5.4.10.0030.04316.50
5.4.00.0070.04715.65
5.3.290.0030.05714.45
5.3.280.0030.02714.45
5.3.270.0000.03314.39
5.3.260.0030.03014.55
5.3.250.0000.03014.52
5.3.240.0070.02314.45
5.3.230.0000.04014.61
5.3.220.0000.06014.48
5.3.210.0000.06014.63
5.3.200.0030.05714.35
5.3.190.0030.03314.35
5.3.180.0030.05714.39
5.3.170.0030.04714.56
5.3.160.0030.05714.62
5.3.150.0030.05014.57
5.3.140.0070.05714.45
5.3.130.0000.05314.43
5.3.120.0000.06014.48
5.3.110.0000.07014.33
5.3.100.0000.05013.92
5.3.90.0000.05313.84
5.3.80.0030.05713.93
5.3.70.0000.06714.03
5.3.60.0070.05013.79
5.3.50.0070.06013.73
5.3.40.0030.05314.01
5.3.30.0070.04313.83
5.3.20.0070.04313.59
5.3.10.0030.06013.43
5.3.00.0070.06013.73
5.2.170.0070.03711.29
5.2.160.0030.04711.07
5.2.150.0030.05710.93
5.2.140.0000.05710.92
5.2.130.0030.04311.16
5.2.120.0100.04710.89
5.2.110.0030.05010.99
5.2.100.0000.04011.00
5.2.90.0000.04710.88
5.2.80.0000.03311.09
5.2.70.0000.05711.16
5.2.60.0030.05310.94
5.2.50.0030.05310.98
5.2.40.0030.05010.88
5.2.30.0070.05310.98
5.2.20.0000.05710.88
5.2.10.0000.05010.93
5.2.00.0070.04710.70
5.1.60.0030.0439.98
5.1.50.0030.0409.98
5.1.40.0030.03710.14
5.1.30.0070.04010.28
5.1.20.0000.05010.30
5.1.10.0000.05010.02
5.1.00.0000.05010.23
5.0.50.0030.0309.79
5.0.40.0070.0309.79
5.0.30.0000.0479.79
5.0.20.0070.0279.79
5.0.10.0000.0379.79
5.0.00.0000.0579.79
4.4.90.0000.0279.79
4.4.80.0000.0309.79
4.4.70.0000.0279.79
4.4.60.0030.0209.79
4.4.50.0030.0239.79
4.4.40.0000.0479.79
4.4.30.0030.0239.79
4.4.20.0070.0239.79
4.4.10.0000.0239.79
4.4.00.0030.0439.79
4.3.110.0000.0279.79
4.3.100.0000.0309.79
4.3.90.0000.0239.79
4.3.80.0000.0479.79
4.3.70.0000.0309.79
4.3.60.0000.0239.79
4.3.50.0030.0309.79
4.3.40.0000.0479.79
4.3.30.0030.0239.79
4.3.20.0000.0239.79
4.3.10.0000.0309.79
4.3.00.0000.0309.79