3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$HOMEPAGE = FILE_GET_CONTENTS('WWW.ROGERS.COM'); $homepage = true; if(!$homepage){ die("FILE_GET_CONTENTS_ERROR"); } $rogers = "<a href=\"/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>"; $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n\r"); $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($rogers, "a<"); echo($pos);
based on GjSHi

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.3.10.0060.00916.57
7.3.00.0060.01216.39
7.2.130.0000.01616.61
7.2.120.0090.00916.77
7.2.110.0060.00316.99
7.2.100.0080.00816.89
7.2.90.0060.00616.67
7.2.80.0030.01216.94
7.2.70.0060.00917.04
7.2.60.0050.01016.81
7.2.50.0110.00716.98
7.2.40.0080.00816.75
7.2.30.0000.01416.73
7.2.20.0000.01016.66
7.2.10.0070.01016.89
7.2.00.0030.01018.03
7.1.250.0120.00615.68
7.1.200.0060.00615.66
7.1.100.0030.00918.06
7.1.70.0000.00817.27
7.1.60.0140.01119.50
7.1.50.0100.01316.88
7.1.00.0000.07722.33
7.0.200.0830.00414.88
7.0.140.0000.08022.07
7.0.60.0100.04319.85
7.0.50.0070.08317.77
7.0.40.0100.08020.40
7.0.30.0230.09020.09
7.0.20.0300.04720.00
7.0.10.0270.07020.17
7.0.00.0070.08020.12
5.6.280.0030.07321.06
5.6.210.0100.04320.65
5.6.200.0130.06318.21
5.6.190.0030.05320.43
5.6.180.0370.04320.43
5.6.170.0200.06020.50
5.6.160.0030.07020.38
5.6.150.0070.07018.09
5.6.140.0030.04718.21
5.6.130.0000.05018.23
5.6.120.0030.07020.98
5.6.110.0100.06020.86
5.6.100.0130.07020.98
5.6.90.0100.07721.11
5.6.80.0030.04720.41
5.6.70.0230.06020.50
5.5.350.0100.05020.46
5.5.340.0070.07717.97
5.5.330.0100.08720.29
5.5.320.0100.05020.23
5.5.310.0230.06320.34
5.5.300.0000.05317.92
5.5.290.0030.05317.98
5.5.280.0130.08320.87
5.5.270.0030.07020.64
5.5.260.0100.05720.88
5.5.250.0100.07320.66
5.5.240.0070.05720.04
5.4.450.0800.04719.55
5.4.440.0830.06019.63
5.4.430.0300.06019.09
5.4.420.0730.06019.62
5.4.410.0900.06019.50
5.4.400.0230.05718.75
5.4.390.0270.07018.71
5.4.380.0070.06718.71
5.4.370.0170.05718.71
5.4.360.0230.04718.66
5.4.350.0330.04318.68
5.4.340.0270.04318.53
5.4.320.0200.06318.68
5.4.310.0170.05718.71
5.4.300.0270.06318.59
5.4.290.0200.05718.74
5.4.280.0130.06018.71
5.4.270.0170.05718.50
5.4.260.0170.06018.68
5.4.250.0200.05318.50
5.4.240.0230.05718.58
5.4.230.0100.06018.45
5.4.220.0230.05318.72
5.4.210.0270.04318.64
5.4.200.0200.05016.73
5.4.190.0200.05718.69
5.4.180.0300.04718.66
5.4.170.0270.05018.45
5.4.160.0100.06718.50
5.4.150.0170.05718.56
5.4.140.0230.05016.18
5.4.130.0230.04716.13
5.4.120.0200.06716.04
5.4.110.0270.05716.21
5.4.100.0300.05716.12
5.4.90.0270.06016.27
5.4.80.0300.04016.14
5.4.70.0170.05315.98
5.4.60.0300.04316.28
5.4.50.0170.05316.27
5.4.40.0170.05316.32
5.4.30.0200.05016.16
5.4.20.0230.04716.03
5.4.10.0200.05316.10
5.4.00.0230.04715.52
5.3.290.0200.05314.67
5.3.280.0130.05314.55
5.3.270.0230.05314.60
5.3.260.0200.06014.55
5.3.250.0070.06314.54
5.3.240.0170.05714.69
5.3.230.0230.04714.63
5.3.220.0200.05314.53
5.3.210.0200.05314.64
5.3.200.0200.05314.60
5.3.190.0370.04014.60
5.3.180.0370.04014.49
5.3.170.0200.05014.47
5.3.160.0170.07714.57
5.3.150.0230.07014.64
5.3.140.0270.05014.53
5.3.130.0300.05314.55
5.3.120.0270.05314.47
5.3.110.0200.05314.47
5.3.100.0230.07714.02
5.3.90.0300.05313.99
5.3.80.0130.06013.94
5.3.70.0300.04014.13
5.3.60.0100.05714.07
5.3.50.0030.06313.89
5.3.40.0100.06314.06
5.3.30.0130.05713.87
5.3.20.0230.04713.69
5.3.10.0200.04713.60
5.3.00.0230.06013.66
5.2.170.0130.04311.14
5.2.160.0130.06011.18
5.2.150.0200.03311.19
5.2.140.0170.04011.13
5.2.130.0100.04711.09
5.2.120.0230.03311.15
5.2.110.0170.05011.03
5.2.100.0100.04711.13
5.2.90.0100.04311.07
5.2.80.0200.04011.03
5.2.70.0130.05011.15
5.2.60.0100.05311.04
5.2.50.0170.04011.01
5.2.40.0170.05011.03
5.2.30.0100.04311.01
5.2.20.0170.04011.11
5.2.10.0130.03710.95
5.2.00.0100.04310.82
5.1.60.0170.02710.04
5.1.50.0030.0439.99
5.1.40.0130.0379.99
5.1.30.0100.03710.38
5.1.20.0230.02710.37
5.1.10.0130.04010.04
5.1.00.0130.04310.08
5.0.50.0100.0308.61
5.0.40.0130.0208.54
5.0.30.0070.0538.34
5.0.20.0100.0278.21
5.0.10.0130.0238.38
5.0.00.0100.0438.37
4.4.90.0070.0206.56
4.4.80.0100.0206.56
4.4.70.0170.0136.56
4.4.60.0030.0236.56
4.4.50.0030.0236.56
4.4.40.0030.0406.56
4.4.30.0100.0206.56
4.4.20.0130.0176.56
4.4.10.0070.0206.56
4.4.00.0130.0376.56
4.3.110.0070.0306.56
4.3.100.0070.0206.56
4.3.90.0070.0276.56
4.3.80.0100.0306.56
4.3.70.0100.0206.56
4.3.60.0170.0176.56
4.3.50.0070.0236.56
4.3.40.0100.0306.56
4.3.30.0070.0236.56
4.3.20.0070.0236.56
4.3.10.0070.0206.56
4.3.00.0100.0206.82