3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contenu_avant = "/* */ \n function truc( "; echo strripos($contenu_avant, "//") .">". strripos($contenu_avant, chr(10)); echo "***".strripos($contenu_avant, "//")."***"; if ((strripos($contenu_avant, "/*") !== FALSE && strripos($contenu_avant, "/*") > strripos($contenu_avant, "*/")) || (strripos($contenu_avant, "//") !== FALSE && strripos($contenu_avant, "//") > strripos($contenu_avant, chr(10)))) echo "en commentaire !"; else echo "ok";

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.00419.48
7.1.100.0030.00618.32
7.1.70.0070.00016.92
7.1.60.0080.00317.26
7.1.50.0080.01516.89
7.1.00.0030.03322.46
7.0.200.0030.01216.63
7.0.140.0070.07022.04
7.0.100.0030.04020.03
7.0.90.0070.04720.00
7.0.80.0030.04319.99
7.0.70.0170.02719.93
7.0.60.0100.07319.92
7.0.50.0130.07720.29
7.0.40.0130.07720.04
7.0.30.0070.08020.07
7.0.20.0130.07020.10
7.0.10.0070.07320.13
7.0.00.0130.08020.06
5.6.280.0000.07720.98
5.6.250.0030.05020.57
5.6.240.0070.04320.63
5.6.230.0000.04320.57
5.6.220.0070.04020.57
5.6.210.0070.04720.46
5.6.200.0130.07321.12
5.6.190.0130.08021.11
5.6.180.0130.07721.05
5.6.170.0130.07321.01
5.6.160.0100.06721.00
5.6.150.0100.08020.93
5.6.140.0100.04321.02
5.6.130.0030.08721.05
5.6.120.0000.05720.95
5.6.110.0100.08321.09
5.6.100.0070.07721.04
5.6.90.0130.06721.06
5.6.80.0170.07720.31
5.6.70.0030.08020.32
5.6.60.0100.07320.45
5.6.50.0170.07320.35
5.6.40.0200.06720.44
5.6.30.0100.07020.43
5.6.20.0070.07020.39
5.6.10.0030.08020.31
5.6.00.0070.08020.39
5.5.380.0100.05720.44
5.5.370.0030.03720.41
5.5.360.0000.04720.53
5.5.350.0030.04720.45
5.5.340.0100.08020.89
5.5.330.0130.04020.72
5.5.320.0100.08020.82
5.5.310.0070.09020.88
5.5.300.0030.05020.80
5.5.290.0170.07720.92
5.5.280.0030.08720.61
5.5.270.0100.07720.86
5.5.260.0000.05720.88
5.5.250.0000.08320.59
5.5.240.0170.06720.20
5.5.230.0070.08020.20
5.5.220.0130.07020.29
5.5.210.0130.07020.25
5.5.200.0030.08320.28
5.5.190.0170.07720.20
5.5.180.0030.08020.11
5.5.160.0070.07720.11
5.5.150.0070.07020.21
5.5.140.0070.07320.10
5.5.130.0100.07320.11
5.5.120.0030.04020.12
5.5.110.0030.08020.23
5.5.100.0100.07720.07
5.5.90.0100.04020.04
5.5.80.0070.07720.10
5.5.70.0130.03320.15
5.5.60.0130.07720.09
5.5.50.0100.07320.06
5.5.40.0030.08020.09
5.5.30.0000.07720.08
5.5.20.0000.04319.98
5.5.10.0070.04720.02
5.5.00.0030.08320.05
5.4.450.0030.04319.48
5.4.440.0070.07319.47
5.4.430.0030.05019.45
5.4.420.0130.07319.35
5.4.410.0030.08319.24
5.4.400.0070.07319.13
5.4.390.0100.05318.80
5.4.380.0070.07719.02
5.4.370.0030.07718.93
5.4.360.0030.08019.05
5.4.350.0100.07719.08
5.4.340.0030.05318.81
5.4.320.0070.08019.03
5.4.310.0070.06719.19
5.4.300.0070.05318.96
5.4.290.0030.04018.89
5.4.280.0100.07718.96
5.4.270.0100.03319.14
5.4.260.0170.06719.14
5.4.250.0030.08018.94
5.4.240.0100.07319.09
5.4.230.0130.07319.03
5.4.220.0100.07019.12
5.4.210.0100.07019.14
5.4.200.0030.07319.22
5.4.190.0070.06319.03
5.4.180.0130.06718.96
5.4.170.0070.07719.13
5.4.160.0100.06318.95
5.4.150.0030.05019.02
5.4.140.0100.07316.31
5.4.130.0070.07016.07
5.4.120.0070.07316.21
5.4.110.0070.07316.23
5.4.100.0100.07016.44
5.4.90.0070.06016.26
5.4.80.0100.06716.38
5.4.70.0030.08016.41
5.4.60.0070.06316.36
5.4.50.0100.03716.28
5.4.40.0070.07016.32
5.4.30.0070.07716.32
5.4.20.0070.04316.27
5.4.10.0100.04016.20
5.4.00.0070.06315.76
5.3.290.0100.07714.66
5.3.280.0100.07714.46
5.3.270.0170.07014.59
5.3.260.0130.07014.52
5.3.250.0070.07014.58
5.3.240.0100.06714.61
5.3.230.0030.04714.55
5.3.220.0070.05014.56
5.3.210.0030.05314.43
5.3.200.0100.07314.54
5.3.190.0170.06714.48
5.3.180.0070.05014.52
5.3.170.0070.07014.47
5.3.160.0030.07314.52
5.3.150.0070.07314.44
5.3.140.0130.06714.46
5.3.130.0070.06714.46
5.3.120.0100.06714.53
5.3.110.0100.07714.54
5.3.100.0100.07014.03
5.3.90.0100.07013.93
5.3.80.0130.04313.98
5.3.70.0130.07013.88
5.3.60.0070.07713.91
5.3.50.0030.08313.91
5.3.40.0030.05013.96
5.3.30.0070.06713.77
5.3.20.0130.06313.60
5.3.10.0030.07713.64
5.3.00.0030.07713.63
5.2.170.0000.07010.96
5.2.160.0030.04711.16
5.2.150.0000.04711.06
5.2.140.0070.06711.18
5.2.130.0070.05011.10
5.2.120.0000.06310.96
5.2.110.0070.06011.10
5.2.100.0070.06010.95
5.2.90.0070.05711.11
5.2.80.0000.06011.04
5.2.70.0000.06710.96
5.2.60.0070.06311.07
5.2.50.0070.06310.93
5.2.40.0030.06710.92
5.2.30.0000.04710.93
5.2.20.0070.06010.84
5.2.10.0070.06010.95
5.2.00.0030.04310.64
5.1.60.0070.05310.00
5.1.50.0030.0609.99
5.1.40.0030.04310.05
5.1.30.0030.04310.32
5.1.20.0070.05010.41
5.1.10.0100.04310.13
5.1.00.0000.03310.15
5.0.50.0100.0238.61
5.0.40.0000.0278.48
5.0.30.0100.0438.41
5.0.20.0070.0408.41
5.0.10.0030.0378.41
5.0.00.0070.0608.41
4.4.90.0070.0308.41
4.4.80.0070.0308.41
4.4.70.0000.0338.41
4.4.60.0100.0178.41
4.4.50.0030.0338.41
4.4.40.0030.0508.41
4.4.30.0030.0338.41
4.4.20.0000.0378.41
4.4.10.0030.0308.41
4.4.00.0030.0508.41
4.3.110.0000.0408.41
4.3.100.0030.0338.41
4.3.90.0100.0308.41
4.3.80.0000.0538.41
4.3.70.0070.0278.41
4.3.60.0030.0378.41
4.3.50.0000.0378.41
4.3.40.0030.0508.41
4.3.30.0030.0338.41
4.3.20.0030.0238.41
4.3.10.0000.0308.41
4.3.00.0000.0378.41