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 = "tttttttt<a href=\"/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>tttttttttt"; echo($rogers); echo("\n"); $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($rogers); echo("\n"); $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n"); $revrogers = strrev($rogers); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($rogers); echo("\n"); echo($revrogers); //$rogers = substr($rogers, 0, $pos); //if(!$rogers){ // die("SUBSTR_ERROR"); //}

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.0080.00816.50
8.3.50.0100.00821.95
8.3.40.0140.00718.66
8.3.30.0070.00719.05
8.3.20.0050.00320.39
8.3.10.0040.00421.73
8.3.00.0000.00819.24
8.2.180.0150.00618.26
8.2.170.0090.00622.96
8.2.160.0070.01020.35
8.2.150.0040.00425.66
8.2.140.0120.00324.66
8.2.130.0090.00626.16
8.2.120.0090.00019.24
8.2.110.0070.00320.93
8.2.100.0080.00417.84
8.2.90.0040.00419.15
8.2.80.0030.00817.97
8.2.70.0080.00017.50
8.2.60.0000.00817.90
8.2.50.0040.00718.10
8.2.40.0000.00919.94
8.2.30.0060.00318.14
8.2.20.0050.00217.62
8.2.10.0080.00018.14
8.2.00.0080.00017.64
8.1.280.0000.01425.92
8.1.270.0030.00624.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0090.00020.61
8.1.230.0080.00317.77
8.1.220.0080.00017.77
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00418.66
8.1.160.0070.00021.95
8.1.150.0000.00718.82
8.1.140.0000.00717.48
8.1.130.0000.00717.80
8.1.120.0000.00717.47
8.1.110.0080.00017.45
8.1.100.0040.00417.45
8.1.90.0080.00017.38
8.1.80.0080.00017.41
8.1.70.0000.00817.45
8.1.60.0030.00617.64
8.1.50.0080.00017.45
8.1.40.0000.00717.59
8.1.30.0030.00517.68
8.1.20.0040.00417.64
8.1.10.0040.00417.49
8.1.00.0000.00817.49
8.0.300.0040.00419.65
8.0.290.0060.00316.75
8.0.280.0050.00218.38
8.0.270.0000.00817.27
8.0.260.0030.00317.32
8.0.250.0000.00716.93
8.0.240.0040.00417.02
8.0.230.0040.00416.98
8.0.220.0040.00416.77
8.0.210.0000.00816.81
8.0.200.0030.00316.95
8.0.190.0070.00016.86
8.0.180.0080.00016.94
8.0.170.0000.00816.93
8.0.160.0030.00416.93
8.0.150.0050.00316.75
8.0.140.0050.00316.79
8.0.130.0000.00613.34
8.0.120.0040.00416.79
8.0.110.0000.00716.84
8.0.100.0090.00016.80
8.0.90.0030.00316.90
8.0.80.0120.00316.88
8.0.70.0070.00016.81
8.0.60.0000.00916.79
8.0.50.0040.00416.91
8.0.30.0170.00717.13
8.0.20.0140.00517.40
8.0.10.0040.00417.15
8.0.00.0110.00816.72
7.4.330.0020.00215.03
7.4.320.0030.00316.63
7.4.300.0060.00016.63
7.4.290.0040.00416.52
7.4.280.0050.00316.52
7.4.270.0000.00616.43
7.4.260.0030.00316.48
7.4.250.0000.00716.59
7.4.240.0000.00816.60
7.4.230.0030.00316.57
7.4.220.0160.00916.55
7.4.210.0100.01016.63
7.4.200.0030.00316.44
7.4.160.0130.00716.50
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0090.01016.43
7.4.120.0040.01216.59
7.4.110.0100.01316.50
7.4.100.0150.00916.59
7.4.90.0060.01116.53
7.4.80.0090.01319.39
7.4.70.0070.01016.49
7.4.60.0080.00816.62
7.4.50.0070.00016.31
7.4.40.0180.00716.47
7.4.30.0120.00616.59
7.4.00.0100.00814.74
7.3.330.0080.00013.02
7.3.320.0040.01113.14
7.3.310.0000.00616.15
7.3.300.0000.00616.32
7.3.290.0070.00616.26
7.3.280.0080.00916.28
7.3.270.0100.01017.40
7.3.260.0140.01016.51
7.3.250.0070.01616.46
7.3.240.0100.01316.59
7.3.230.0070.01016.39
7.3.210.0080.00816.45
7.3.200.0090.01419.39
7.3.190.0100.01316.25
7.3.180.0090.00616.62
7.3.170.0000.01616.36
7.3.160.0100.00616.44
7.3.120.0030.01714.82
7.3.110.0070.01314.49
7.3.100.0080.01114.96
7.3.90.0040.01414.65
7.3.80.0110.00614.96
7.3.70.0000.01314.84
7.3.60.0040.00814.84
7.3.50.0040.01114.99
7.3.40.0080.00414.71
7.3.30.0000.01714.81
7.3.20.0060.00916.59
7.3.10.0060.00616.76
7.3.00.0070.00716.67
7.2.330.0080.00816.70
7.2.320.0100.00716.44
7.2.310.0110.00616.34
7.2.300.0090.00916.59
7.2.290.0070.01716.73
7.2.250.0100.01015.01
7.2.240.0070.01515.13
7.2.230.0030.01614.67
7.2.220.0100.00314.81
7.2.210.0030.01314.85
7.2.200.0040.00814.88
7.2.190.0030.01415.10
7.2.180.0000.01814.84
7.2.170.0100.00715.02
7.2.60.0060.00616.68
7.2.00.0060.01019.51
7.1.330.0100.00315.78
7.1.320.0060.00315.85
7.1.310.0040.00815.94
7.1.300.0030.00815.63
7.1.290.0060.00615.71
7.1.280.0000.01615.54
7.1.270.0100.00715.67
7.1.260.0070.00715.84
7.1.200.0000.01115.62
7.1.100.0030.01318.24
7.1.70.0070.00017.27
7.1.60.0100.01419.50
7.1.50.0070.01016.99
7.1.00.0070.07022.48
7.0.200.0060.00615.04
7.0.140.0070.06322.01
7.0.60.0070.05020.05
7.0.50.0100.04017.89
7.0.40.0130.06720.23
7.0.30.0200.04020.13
7.0.20.0300.06320.12
7.0.10.0330.07720.17
7.0.00.0070.08720.17
5.6.280.0070.07021.02
5.6.210.0030.04320.65
5.6.200.0070.04018.12
5.6.190.0000.09320.60
5.6.180.0270.03720.59
5.6.170.0400.06320.38
5.6.160.0070.05020.40
5.6.150.0030.06718.12
5.6.140.0070.06018.20
5.6.130.0100.03718.04
5.6.120.0000.04721.09
5.6.110.0200.07020.99
5.6.100.0130.07721.00
5.6.90.0130.06720.96
5.6.80.0100.08320.36
5.6.70.0230.06020.39
5.5.350.0130.07720.46
5.5.340.0100.07718.01
5.5.330.0030.04320.13
5.5.320.0100.07320.23
5.5.310.0300.07320.41
5.5.300.0030.03718.00
5.5.290.0030.05717.88
5.5.280.0000.04720.88
5.5.270.0070.05320.79
5.5.260.0130.08020.79
5.5.250.0100.07720.70
5.5.240.0070.04720.35
5.4.450.0130.05719.32
5.4.440.0770.06019.49
5.4.430.0130.05019.63
5.4.420.0670.06019.13
5.4.410.0030.06019.28
5.4.400.0770.06018.77
5.4.390.0900.05718.72
5.4.380.0870.06018.50
5.4.370.0600.05718.70
5.4.360.0700.06718.50
5.4.350.0670.06018.51
5.4.340.0600.05318.61
5.4.320.0670.04718.61
5.4.310.0500.05718.65
5.4.300.0730.04318.78
5.4.290.0830.05318.52
5.4.280.0970.04718.53
5.4.270.0930.05318.46
5.4.260.0670.06018.70
5.4.250.0830.05318.71
5.4.240.0970.07318.77
5.4.230.0730.05018.57
5.4.220.1000.05018.61
5.4.210.1130.05318.57
5.4.200.0730.06716.37
5.4.190.0570.07018.64
5.4.180.0670.07018.71
5.4.170.0700.07718.52
5.4.160.0630.08018.71
5.4.150.0970.07318.63
5.4.140.0730.06716.29
5.4.130.0800.05316.08
5.4.120.0800.06016.22
5.4.110.0800.06016.13
5.4.100.0800.07016.26
5.4.90.1030.06716.30
5.4.80.0830.06316.03
5.4.70.0630.07316.11
5.4.60.1000.05316.22
5.4.50.0570.08016.11
5.4.40.0800.06716.19
5.4.30.0630.04716.09
5.4.20.0770.05716.13
5.4.10.0700.05016.13
5.4.00.0670.05015.52
5.3.290.0700.07714.74
5.3.280.0670.05314.59
5.3.270.0600.05714.62
5.3.260.0700.05014.58
5.3.250.0570.06314.52
5.3.240.0630.06014.61
5.3.230.0800.05714.52
5.3.220.0430.06014.52
5.3.210.0970.06014.46
5.3.200.0570.05314.50
5.3.190.0700.05714.55
5.3.180.0770.05714.52
5.3.170.0870.03714.53
5.3.160.0570.05314.47
5.3.150.0500.06714.54
5.3.140.0630.07714.45
5.3.130.0630.07314.58
5.3.120.0630.05714.44
5.3.110.0900.05714.48
5.3.100.0600.04313.96
5.3.90.0600.05314.02
5.3.80.0570.06014.00
5.3.70.0700.05314.10
5.3.60.0570.05313.93
5.3.50.0670.03013.86
5.3.40.0600.05013.92
5.3.30.0530.06313.98
5.3.20.0370.05713.68
5.3.10.0530.06013.61
5.3.00.0670.05013.67
5.2.170.0570.04711.11
5.2.160.0530.04011.06
5.2.150.0670.04011.30
5.2.140.0500.05311.11
5.2.130.0530.04311.14
5.2.120.0530.04011.11
5.2.110.0600.03711.07
5.2.100.0470.04011.07
5.2.90.0830.04311.09
5.2.80.0730.03311.10
5.2.70.0570.04711.05
5.2.60.0500.03711.02
5.2.50.0630.05010.95
5.2.40.0430.04310.96
5.2.30.0400.06010.88
5.2.20.0670.03710.92
5.2.10.0500.04710.89
5.2.00.0530.05010.75
5.1.60.0470.0339.94
5.1.50.0500.04310.13
5.1.40.0330.04010.02
5.1.30.0270.04710.30
5.1.20.0500.03710.32
5.1.10.0530.03310.09
5.1.00.0570.03710.05
5.0.50.0230.0278.67
5.0.40.0270.0308.49
5.0.30.0370.0378.20
5.0.20.0200.0378.39
5.0.10.0200.0408.30
5.0.00.0400.0508.34
4.4.90.0170.0336.79
4.4.80.0270.0406.79
4.4.70.0300.0206.79
4.4.60.0270.0336.79
4.4.50.0200.0336.79
4.4.40.0200.0376.79
4.4.30.0170.0306.79
4.4.20.0300.0236.79
4.4.10.0270.0306.79
4.4.00.0170.0406.79
4.3.110.0230.0236.79
4.3.100.0100.0276.79
4.3.90.0270.0276.79
4.3.80.0100.0376.79
4.3.70.0130.0336.79
4.3.60.0270.0276.79
4.3.50.0130.0236.79
4.3.40.0300.0406.79
4.3.30.0200.0236.79
4.3.20.0130.0276.79
4.3.10.0170.0276.79
4.3.00.0000.0276.82

preferences:
41.63 ms | 401 KiB | 5 Q