3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0170.00316.50
8.3.50.0140.00717.87
8.3.40.0120.00618.76
8.3.30.0100.00318.97
8.3.20.0070.00020.09
8.3.10.0040.01121.77
8.3.00.0080.00019.26
8.2.180.0120.00316.38
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0160.00324.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0040.00419.24
8.2.110.0060.00319.23
8.2.100.0040.00717.50
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0060.00317.80
8.2.50.0070.00318.07
8.2.40.0000.00818.22
8.2.30.0040.00417.95
8.2.20.0040.00417.66
8.2.10.0000.00918.09
8.2.00.0040.00417.79
8.1.280.0110.00625.92
8.1.270.0040.00418.88
8.1.260.0080.00026.35
8.1.250.0040.01128.09
8.1.240.0060.00323.98
8.1.230.0070.00317.42
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0060.00320.22
8.1.160.0000.00721.91
8.1.150.0040.00418.79
8.1.140.0040.00417.42
8.1.130.0000.00717.82
8.1.120.0040.00417.47
8.1.110.0050.00317.32
8.1.100.0050.00217.35
8.1.90.0030.00317.48
8.1.80.0080.00017.34
8.1.70.0030.00317.37
8.1.60.0060.00317.54
8.1.50.0080.00017.45
8.1.40.0080.00017.45
8.1.30.0040.00417.64
8.1.20.0040.00417.53
8.1.10.0050.00217.40
8.1.00.0030.00517.30
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0020.00518.41
8.0.270.0030.00317.19
8.0.260.0070.00017.12
8.0.250.0020.00516.98
8.0.240.0030.00316.88
8.0.230.0040.00416.81
8.0.220.0000.00716.87
8.0.210.0050.00216.86
8.0.200.0030.00316.80
8.0.190.0090.00016.96
8.0.180.0000.00816.80
8.0.170.0030.00516.90
8.0.160.0040.00416.91
8.0.150.0000.00816.82
8.0.140.0050.00316.73
8.0.130.0000.00513.31
8.0.120.0060.00316.80
8.0.110.0080.00016.84
8.0.100.0000.00716.91
8.0.90.0070.00016.95
8.0.80.0100.01116.91
8.0.70.0040.00416.72
8.0.60.0030.00516.95
8.0.50.0030.00516.72
8.0.30.0130.01316.80
8.0.20.0130.01217.40
8.0.10.0030.00316.86
8.0.00.0160.00516.89
7.4.330.0020.00215.03
7.4.320.0070.00016.45
7.4.300.0000.00616.43
7.4.290.0040.00416.59
7.4.280.0040.00416.47
7.4.270.0040.00416.50
7.4.260.0050.00216.60
7.4.250.0080.00016.45
7.4.240.0050.00216.51
7.4.230.0000.00616.43
7.4.220.0080.01216.51
7.4.210.0110.00316.66
7.4.200.0030.00316.42
7.4.160.0090.00616.44
7.4.150.0060.01217.40
7.4.140.0100.01117.86
7.4.130.0070.01216.51
7.4.120.0080.01116.48
7.4.110.0090.00916.24
7.4.100.0070.01016.56
7.4.90.0070.01016.50
7.4.80.0090.01219.39
7.4.70.0100.00716.57
7.4.60.0030.01316.60
7.4.50.0030.00516.19
7.4.40.0070.01616.47
7.4.30.0070.01116.48
7.4.00.0050.01014.93
7.3.330.0000.00713.14
7.3.320.0120.00413.05
7.3.310.0000.00716.39
7.3.300.0030.00316.30
7.3.290.0110.00616.25
7.3.280.0100.00716.27
7.3.270.0100.00717.40
7.3.260.0210.00416.48
7.3.250.0090.01216.34
7.3.240.0100.00716.47
7.3.230.0120.00916.46
7.3.210.0060.00916.35
7.3.200.0030.01419.39
7.3.190.0180.00616.52
7.3.180.0070.01016.63
7.3.170.0160.00316.35
7.3.160.0060.01016.35
7.3.120.0080.00814.45
7.3.110.0110.00415.04
7.3.100.0030.00914.95
7.3.90.0030.01014.85
7.3.80.0120.00314.81
7.3.70.0080.00514.46
7.3.60.0060.00614.89
7.3.50.0120.00014.84
7.3.40.0100.00014.84
7.3.30.0090.00314.61
7.3.20.0070.00716.56
7.3.10.0060.00716.55
7.3.00.0050.01016.44
7.2.330.0040.01416.65
7.2.320.0060.01316.72
7.2.310.0110.01116.36
7.2.300.0070.01016.59
7.2.290.0130.00416.43
7.2.250.0060.00915.13
7.2.240.0060.01015.18
7.2.230.0090.00615.17
7.2.220.0030.01314.98
7.2.210.0000.01614.93
7.2.200.0130.00014.83
7.2.190.0040.00415.11
7.2.180.0060.00915.10
7.2.170.0070.00715.00
7.2.130.0060.00916.94
7.2.120.0070.00716.57
7.2.110.0000.01616.69
7.2.100.0100.00617.01
7.2.90.0030.00617.02
7.2.80.0100.00716.86
7.2.70.0030.01316.72
7.2.60.0070.00416.89
7.2.50.0100.00316.73
7.2.40.0060.00316.91
7.2.30.0080.01416.55
7.2.20.0120.00616.79
7.2.10.0160.00317.01
7.2.00.0050.01118.03
7.1.330.0030.01015.94
7.1.320.0100.00615.87
7.1.310.0040.01215.98
7.1.300.0030.00815.87
7.1.290.0030.01015.75
7.1.280.0070.01015.52
7.1.270.0070.01015.91
7.1.260.0000.01215.99
7.1.250.0030.00615.58
7.1.100.0060.00618.05
7.1.70.0040.00417.03
7.1.60.0070.01819.50
7.1.50.0000.02116.92
7.1.00.0070.07322.33
7.0.200.0690.00714.87
7.0.140.0030.07322.05
7.0.60.0070.08319.91
7.0.50.0100.03717.90
7.0.40.0070.08719.98
7.0.30.0300.07020.09
7.0.20.0370.04020.33
7.0.10.0330.07020.17
7.0.00.0100.08720.03
5.6.280.0000.07720.99
5.6.210.0170.05720.65
5.6.200.0170.07718.13
5.6.190.0200.07720.35
5.6.180.0330.06020.37
5.6.170.0270.06320.48
5.6.160.0130.07320.61
5.6.150.0070.07718.14
5.6.140.0070.03718.15
5.6.130.0000.08318.12
5.6.120.0070.08321.02
5.6.110.0100.08021.13
5.6.100.0030.07320.88
5.6.90.0130.08020.95
5.6.80.0200.06720.40
5.6.70.0270.07720.37
5.5.350.0130.04720.38
5.5.340.0070.07717.92
5.5.330.0130.07020.57
5.5.320.0100.04320.07
5.5.310.0330.07320.29
5.5.300.0070.07318.02
5.5.290.0070.08017.92
5.5.280.0130.03320.84
5.5.270.0100.06320.79
5.5.260.0070.08320.68
5.5.250.0070.07720.70
5.5.240.0130.05320.25
5.4.450.0830.06319.24
5.4.440.0670.06019.13
5.4.430.0070.06319.48
5.4.420.0900.05719.54
5.4.410.0970.05319.31
5.4.400.0130.05718.49
5.4.390.0200.05318.50
5.4.380.0330.06718.78
5.4.370.0330.04718.69
5.4.360.0230.04718.72
5.4.350.0130.06018.79
5.4.340.0170.06718.50
5.4.320.0200.06018.46
5.4.310.0270.04718.72
5.4.300.0270.05018.49
5.4.290.0230.05018.71
5.4.280.0070.06318.73
5.4.270.0130.05718.58
5.4.260.0230.05718.45
5.4.250.0370.05718.48
5.4.240.0170.06318.50
5.4.230.0170.05718.54
5.4.220.0300.04718.73
5.4.210.0230.05018.66
5.4.200.0270.04316.38
5.4.190.0300.06318.66
5.4.180.0170.05718.71
5.4.170.0230.05318.47
5.4.160.0200.05318.70
5.4.150.0270.04718.59
5.4.140.0130.06716.17
5.4.130.0230.05316.25
5.4.120.0130.05716.07
5.4.110.0300.04016.35
5.4.100.0230.05316.14
5.4.90.0170.07016.16
5.4.80.0200.07016.14
5.4.70.0230.05316.03
5.4.60.0270.05316.25
5.4.50.0130.06316.16
5.4.40.0200.05016.16
5.4.30.0270.06716.13
5.4.20.0200.05316.22
5.4.10.0070.06016.22
5.4.00.0300.04015.54
5.3.290.0330.05714.66
5.3.280.0270.05314.64
5.3.270.0230.05314.60
5.3.260.0370.06314.64
5.3.250.0300.04314.59
5.3.240.0200.05314.60
5.3.230.0230.05014.57
5.3.220.0170.05314.66
5.3.210.0070.06314.65
5.3.200.0230.05014.50
5.3.190.0200.05714.47
5.3.180.0170.05314.56
5.3.170.0200.05014.57
5.3.160.0270.04314.62
5.3.150.0270.06714.66
5.3.140.0130.05714.50
5.3.130.0300.04314.64
5.3.120.0170.06014.62
5.3.110.0170.05714.62
5.3.100.0200.05013.96
5.3.90.0300.04014.00
5.3.80.0200.05314.00
5.3.70.0270.05713.96
5.3.60.0200.05013.99
5.3.50.0270.04313.85
5.3.40.0230.05713.85
5.3.30.0200.04713.89
5.3.20.0100.06013.68
5.3.10.0130.05313.63
5.3.00.0200.04713.63
5.2.170.0030.05011.13
5.2.160.0070.05011.05
5.2.150.0070.04711.11
5.2.140.0130.04011.09
5.2.130.0170.03711.15
5.2.120.0130.04011.09
5.2.110.0070.04711.14
5.2.100.0100.05011.05
5.2.90.0100.04311.09
5.2.80.0100.05011.05
5.2.70.0100.04711.07
5.2.60.0130.04311.18
5.2.50.0100.04711.08
5.2.40.0170.03311.05
5.2.30.0170.04011.00
5.2.20.0070.04710.94
5.2.10.0200.03310.86
5.2.00.0070.04310.81
5.1.60.0170.0279.95
5.1.50.0070.04010.03
5.1.40.0100.03710.07
5.1.30.0070.04010.44
5.1.20.0030.04310.50
5.1.10.0100.03710.06
5.1.00.0200.02710.12
5.0.50.0070.0338.68
5.0.40.0170.0308.43
5.0.30.0130.0538.19
5.0.20.0130.0238.21
5.0.10.0100.0338.21
5.0.00.0100.0408.24
4.4.90.0030.0236.56
4.4.80.0030.0236.56
4.4.70.0070.0236.56
4.4.60.0030.0276.56
4.4.50.0030.0276.56
4.4.40.0000.0406.56
4.4.30.0030.0276.56
4.4.20.0000.0276.56
4.4.10.0070.0206.56
4.4.00.0070.0376.56
4.3.110.0030.0276.56
4.3.100.0130.0206.56
4.3.90.0000.0276.56
4.3.80.0070.0336.56
4.3.70.0100.0176.56
4.3.60.0030.0236.56
4.3.50.0030.0276.56
4.3.40.0100.0306.56
4.3.30.0030.0276.56
4.3.20.0070.0206.56
4.3.10.0070.0206.56
4.3.00.0130.0276.82

preferences:
44.04 ms | 400 KiB | 5 Q