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"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n"); $revrogers = strrev($rogers); echo($revrogers); echo("\n"); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } $revrogers = substr($revrogers, 0, $pos); if(!$revrogers){ die("SUBSTR_ERROR"); } echo($revrogers); echo("\n"); $rogers = strrev($revrogers); echo($rogers); echo("\n");

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.70.0120.00318.30
8.3.60.0070.00718.43
8.3.50.0130.00721.96
8.3.40.0090.00918.75
8.3.30.0080.00819.04
8.3.20.0040.00420.09
8.3.10.0070.00021.89
8.3.00.0040.00419.25
8.2.190.0140.00316.58
8.2.180.0140.00718.41
8.2.170.0100.01022.96
8.2.160.0160.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0040.00419.36
8.2.110.0070.00319.32
8.2.100.0090.00317.63
8.2.90.0000.00818.93
8.2.80.0000.00817.97
8.2.70.0070.00417.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0100.00019.82
8.2.30.0040.00417.95
8.2.20.0040.00417.75
8.2.10.0030.00618.21
8.2.00.0000.00817.63
8.1.280.0180.00325.92
8.1.270.0000.00920.63
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00722.19
8.1.230.0060.00917.42
8.1.220.0080.00017.78
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0040.00417.36
8.1.180.0070.00418.10
8.1.170.0100.00018.62
8.1.160.0030.00622.02
8.1.150.0050.00318.76
8.1.140.0030.00517.50
8.1.130.0070.00017.81
8.1.120.0000.00817.44
8.1.110.0000.00817.49
8.1.100.0040.00417.36
8.1.90.0030.00317.36
8.1.80.0050.00317.50
8.1.70.0000.00817.41
8.1.60.0000.00917.46
8.1.50.0000.00817.59
8.1.40.0030.00517.41
8.1.30.0040.00417.60
8.1.20.0030.00617.55
8.1.10.0060.00317.50
8.1.00.0040.00417.28
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.49
8.0.270.0040.00417.20
8.0.260.0030.00317.31
8.0.250.0070.00016.89
8.0.240.0070.00016.97
8.0.230.0030.00316.89
8.0.220.0000.00616.95
8.0.210.0070.00016.80
8.0.200.0070.00016.88
8.0.190.0040.00416.98
8.0.180.0040.00416.90
8.0.170.0000.00716.95
8.0.160.0030.00316.94
8.0.150.0000.00716.94
8.0.140.0040.00416.81
8.0.130.0000.00613.36
8.0.120.0040.00416.73
8.0.110.0040.00416.91
8.0.100.0040.00416.95
8.0.90.0000.00716.88
8.0.80.0090.00616.94
8.0.70.0060.00316.94
8.0.60.0000.00816.76
8.0.50.0030.00316.96
8.0.30.0080.01117.05
8.0.20.0140.00717.40
8.0.10.0070.00016.96
8.0.00.0090.00916.92
7.4.330.0000.00515.15
7.4.320.0030.00316.41
7.4.300.0030.00316.52
7.4.290.0030.00316.44
7.4.280.0000.00716.40
7.4.270.0040.00416.61
7.4.260.0040.00416.36
7.4.250.0050.00316.49
7.4.240.0030.00516.45
7.4.230.0000.00716.39
7.4.220.0120.00616.62
7.4.210.0080.00816.56
7.4.200.0030.00316.50
7.4.160.0180.00016.46
7.4.150.0180.00017.40
7.4.140.0130.00917.86
7.4.130.0070.01016.53
7.4.120.0090.00816.45
7.4.110.0190.00416.49
7.4.100.0110.00716.52
7.4.90.0120.00616.34
7.4.80.0100.01419.39
7.4.70.0140.00416.59
7.4.60.0070.01016.57
7.4.50.0000.00416.39
7.4.40.0080.01016.50
7.4.30.0100.01016.50
7.4.00.0060.01214.79
7.3.330.0020.00212.99
7.3.320.0090.00613.10
7.3.310.0030.00316.19
7.3.300.0000.00716.23
7.3.290.0100.00516.22
7.3.280.0050.01016.26
7.3.270.0160.00617.40
7.3.260.0090.00816.59
7.3.250.0130.00416.33
7.3.240.0210.00316.46
7.3.230.0030.02016.39
7.3.210.0100.00716.35
7.3.200.0120.00619.39
7.3.190.0120.00616.30
7.3.180.0070.01416.32
7.3.170.0090.00916.38
7.3.160.0080.00816.36
7.2.330.0080.01116.29
7.2.320.0090.00916.64
7.2.310.0090.00916.70
7.2.300.0100.00716.56
7.2.290.0110.00616.46
7.2.00.0040.00819.41
7.1.100.0060.00618.02
7.1.70.0030.00517.13
7.1.60.0030.02019.50
7.1.50.0000.02116.86
7.1.00.0000.08022.48
7.0.200.0110.00715.02
7.0.140.0130.06322.18
7.0.60.0100.06019.97
7.0.50.0100.08317.86
7.0.40.0030.05020.02
7.0.30.0500.06720.09
7.0.20.0270.05320.13
7.0.10.0070.05720.16
7.0.00.0100.06720.32
5.6.280.0100.06321.12
5.6.210.0170.07020.63
5.6.200.0070.08318.08
5.6.190.0030.05020.61
5.6.180.0230.08020.57
5.6.170.0200.04020.44
5.6.160.0030.05720.52
5.6.150.0070.06018.21
5.6.140.0100.07318.22
5.6.130.0000.09018.10
5.6.120.0100.07021.12
5.6.110.0070.07021.14
5.6.100.0100.08021.00
5.6.90.0100.08021.00
5.6.80.0100.08020.40
5.6.70.4630.04020.27
5.5.350.0300.07720.45
5.5.340.0000.04318.05
5.5.330.0100.03720.28
5.5.320.0370.07320.17
5.5.310.0630.04020.21
5.5.300.0030.05318.02
5.5.290.0030.04717.88
5.5.280.0130.07720.76
5.5.270.0000.04720.74
5.5.260.0030.08720.76
5.5.250.0000.09020.65
5.5.240.0170.08020.37
5.4.450.0670.07019.55
5.4.440.0930.05019.60
5.4.430.0900.06019.49
5.4.420.0700.06019.47
5.4.410.0970.05319.35
5.4.400.0330.04018.61
5.4.390.0270.04718.70
5.4.380.0230.05318.53
5.4.370.0130.06018.77
5.4.360.0370.05318.58
5.4.350.0170.05318.63
5.4.340.0230.04718.69
5.4.320.0200.05318.71
5.4.310.0200.05018.50
5.4.300.0270.04718.71
5.4.290.0200.05018.58
5.4.280.0170.05718.70
5.4.270.0130.06018.55
5.4.260.0230.04718.67
5.4.250.0130.06318.52
5.4.240.0200.05718.77
5.4.230.0270.07018.76
5.4.220.0300.04318.61
5.4.210.0200.05018.75
5.4.200.0130.05716.52
5.4.190.0200.05318.50
5.4.180.0200.05318.76
5.4.170.0170.06018.55
5.4.160.0230.05318.66
5.4.150.0200.05718.71
5.4.140.0330.06016.18
5.4.130.0230.06716.23
5.4.120.0230.04716.09
5.4.110.0170.05316.08
5.4.100.0100.06316.31
5.4.90.0170.06016.25
5.4.80.0200.04716.07
5.4.70.0300.06716.23
5.4.60.0100.05716.14
5.4.50.0300.06316.02
5.4.40.0100.06016.29
5.4.30.0170.05016.18
5.4.20.0300.04016.11
5.4.10.0230.04316.19
5.4.00.0170.05015.70
5.3.290.0170.06014.66
5.3.280.0300.04314.52
5.3.270.0200.05314.59
5.3.260.0200.05314.62
5.3.250.0170.05314.68
5.3.240.0130.06014.70
5.3.230.0130.05714.51
5.3.220.0270.05714.50
5.3.210.0200.05314.55
5.3.200.0070.06314.59
5.3.190.0230.04714.54
5.3.180.0230.04714.50
5.3.170.0170.05314.54
5.3.160.0300.04314.54
5.3.150.0130.05714.49
5.3.140.0170.07314.52
5.3.130.0270.04314.58
5.3.120.0070.06314.55
5.3.110.0230.05014.48
5.3.100.0200.05314.00
5.3.90.0170.05714.00
5.3.80.0270.04014.00
5.3.70.0230.04313.95
5.3.60.0200.05013.95
5.3.50.0200.05313.84
5.3.40.0270.04313.89
5.3.30.0230.04713.86
5.3.20.0130.05713.68
5.3.10.0170.05013.75
5.3.00.0230.04313.71
5.2.170.0100.04711.06
5.2.160.0200.03311.14
5.2.150.0100.04711.09
5.2.140.0130.04311.30
5.2.130.0100.04311.08
5.2.120.0170.03711.09
5.2.110.0130.04311.14
5.2.100.0300.02711.24
5.2.90.0170.03711.16
5.2.80.0100.04311.14
5.2.70.0130.04311.25
5.2.60.0130.04311.03
5.2.50.0100.04310.98
5.2.40.0170.03711.05
5.2.30.0070.04710.90
5.2.20.0130.04011.07
5.2.10.0200.04010.83
5.2.00.0170.03710.69
5.1.60.0200.02710.03
5.1.50.0070.0379.96
5.1.40.0100.0379.95
5.1.30.0170.03710.45
5.1.20.0170.03710.42
5.1.10.0170.03310.08
5.1.00.0170.03310.09
5.0.50.0070.0308.55
5.0.40.0130.0238.47
5.0.30.0100.0508.36
5.0.20.0030.0338.29
5.0.10.0100.0278.28
5.0.00.0170.0338.29
4.4.90.0030.0236.80
4.4.80.0070.0206.80
4.4.70.0070.0206.80
4.4.60.0000.0306.80
4.4.50.0100.0206.80
4.4.40.0030.0376.80
4.4.30.0100.0236.80
4.4.20.0100.0206.80
4.4.10.0030.0236.80
4.4.00.0070.0336.80
4.3.110.0070.0206.80
4.3.100.0030.0236.80
4.3.90.0030.0236.80
4.3.80.0030.0376.80
4.3.70.0130.0136.80
4.3.60.0100.0176.80
4.3.50.0100.0236.80
4.3.40.0000.0406.80
4.3.30.0070.0206.80
4.3.20.0030.0236.80
4.3.10.0100.0206.80
4.3.00.0130.0236.82

preferences:
48.17 ms | 401 KiB | 5 Q