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"); } $revrogers = strrev($rogers); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } $revrogers = substr($revrogers, 0, $pos); if(!$revrogers){ die("SUBSTR_ERROR"); } $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.60.0040.01118.30
8.3.50.0060.00918.16
8.3.40.0110.00618.63
8.3.30.0070.00719.06
8.3.20.0080.00020.38
8.3.10.0070.00022.02
8.3.00.0040.00419.26
8.2.180.0070.00718.14
8.2.170.0150.00622.96
8.2.160.0100.00320.47
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0060.00319.23
8.2.110.0030.00619.11
8.2.100.0090.00317.78
8.2.90.0000.00819.40
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00718.05
8.2.30.0000.00718.01
8.2.20.0040.00417.75
8.2.10.0000.00818.03
8.2.00.0050.00317.82
8.1.280.0110.01125.92
8.1.270.0000.00820.50
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00920.87
8.1.230.0040.00817.46
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0080.00020.38
8.1.160.0050.00322.04
8.1.150.0040.00418.93
8.1.140.0040.00417.45
8.1.130.0000.00717.82
8.1.120.0030.00517.34
8.1.110.0000.00717.34
8.1.100.0040.00417.44
8.1.90.0000.00817.47
8.1.80.0000.00817.47
8.1.70.0040.00417.43
8.1.60.0060.00317.63
8.1.50.0040.00417.44
8.1.40.0030.00617.44
8.1.30.0040.00417.61
8.1.20.0040.00417.60
8.1.10.0000.00717.52
8.1.00.0000.00817.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0030.00316.87
8.0.240.0040.00416.87
8.0.230.0000.00616.95
8.0.220.0040.00316.87
8.0.210.0040.00416.89
8.0.200.0030.00316.90
8.0.190.0040.00416.88
8.0.180.0040.00416.79
8.0.170.0000.00816.91
8.0.160.0000.00716.85
8.0.150.0040.00416.90
8.0.140.0040.00416.77
8.0.130.0030.00313.35
8.0.120.0040.00416.78
8.0.110.0040.00416.92
8.0.100.0040.00416.78
8.0.90.0040.00416.89
8.0.80.0070.00716.90
8.0.70.0060.00316.78
8.0.60.0070.00016.74
8.0.50.0000.00716.80
8.0.30.0090.01217.02
8.0.20.0120.00917.40
8.0.10.0040.00416.95
8.0.00.0120.00616.81
7.4.330.0000.00615.03
7.4.320.0050.00216.60
7.4.300.0060.00016.43
7.4.290.0070.00016.39
7.4.280.0070.00016.49
7.4.270.0000.00716.61
7.4.260.0030.00316.50
7.4.250.0030.00516.54
7.4.240.0020.00616.52
7.4.230.0070.00016.70
7.4.220.0140.00616.66
7.4.210.0100.00716.58
7.4.200.0030.00316.42
7.4.160.0060.01016.46
7.4.150.0120.00417.40
7.4.140.0100.00917.86
7.4.130.0130.00716.49
7.4.120.0080.00816.43
7.4.110.0090.00916.47
7.4.100.0040.01316.43
7.4.90.0130.00316.45
7.4.80.0140.00719.39
7.4.70.0030.01316.52
7.4.60.0090.00616.63
7.4.50.0040.00416.39
7.4.40.0120.00616.31
7.4.30.0030.01416.57
7.4.00.0030.01014.77
7.3.330.0020.00213.15
7.3.320.0120.00413.08
7.3.310.0000.00716.34
7.3.300.0040.00416.15
7.3.290.0090.00616.24
7.3.280.0070.01116.27
7.3.270.0090.00917.40
7.3.260.0160.00616.36
7.3.250.0070.01116.47
7.3.240.0090.00916.28
7.3.230.0100.01316.39
7.3.210.0120.00316.46
7.3.200.0120.00316.61
7.3.190.0110.01116.56
7.3.180.0140.00716.28
7.3.170.0110.01116.32
7.3.160.0060.01516.37
7.3.10.0100.00316.81
7.3.00.0040.00816.39
7.2.330.0120.00616.74
7.2.320.0130.00316.76
7.2.310.0070.01016.42
7.2.300.0080.00816.50
7.2.290.0110.00716.41
7.2.130.0080.00416.88
7.2.120.0000.01316.99
7.2.110.0060.00916.60
7.2.100.0090.00316.91
7.2.90.0090.00616.95
7.2.80.0000.01116.72
7.2.70.0060.00617.00
7.2.60.0060.00616.50
7.2.50.0040.01216.66
7.2.40.0040.01117.02
7.2.30.0060.00916.48
7.2.20.0070.00717.00
7.2.10.0000.00917.03
7.2.00.0080.00618.06
7.1.250.0090.00015.84
7.1.100.0000.01418.23
7.1.70.0020.00516.87
7.1.60.0040.00717.32
7.1.50.0070.01416.70
7.1.00.0030.07722.54
7.0.200.0090.00616.83
7.0.140.0030.07022.18
7.0.60.0030.08019.86
7.0.50.0130.07317.81
7.0.40.0070.05320.06
7.0.30.0100.05020.18
7.0.20.0230.08020.20
7.0.10.0270.08019.97
7.0.00.0100.08320.12
5.6.280.0000.07721.10
5.6.210.0130.07720.68
5.6.200.0030.04318.19
5.6.190.0030.08020.56
5.6.180.0200.05720.32
5.6.170.0200.06020.60
5.6.160.0100.08020.52
5.6.150.0070.03718.21
5.6.140.0030.08018.17
5.6.130.0070.06318.15
5.6.120.0100.08321.13
5.6.110.0070.03721.01
5.6.100.0070.08021.08
5.6.90.0070.07721.01
5.6.80.0100.06320.48
5.6.70.0200.07720.50
5.5.350.0170.06720.39
5.5.340.0000.08717.92
5.5.330.0030.04320.21
5.5.320.0270.03720.21
5.5.310.0230.08020.34
5.5.300.0000.04017.86
5.5.290.0070.08017.90
5.5.280.0030.04020.76
5.5.270.0100.04020.88
5.5.260.0000.09720.95
5.5.250.0030.05320.58
5.5.240.0030.05720.35
5.4.450.0670.05319.63
5.4.440.1070.05319.52
5.4.430.1100.04719.62
5.4.420.0800.05019.54
5.4.410.1030.05019.11
5.4.400.0270.05018.77
5.4.390.0130.06318.71
5.4.380.0230.05318.73
5.4.370.0130.05718.50
5.4.360.0170.05718.70
5.4.350.0270.05718.74
5.4.340.0230.05318.47
5.4.320.0330.04718.69
5.4.310.0200.06018.58
5.4.300.0230.05018.77
5.4.290.0230.05318.66
5.4.280.0200.05318.68
5.4.270.0200.05318.68
5.4.260.0170.05718.68
5.4.250.0300.05718.62
5.4.240.0300.04318.62
5.4.230.0230.05318.43
5.4.220.0300.05318.55
5.4.210.0170.05718.51
5.4.200.0200.05016.50
5.4.190.0200.05318.45
5.4.180.0200.05718.57
5.4.170.0170.06018.44
5.4.160.0330.04018.50
5.4.150.0230.05018.63
5.4.140.0270.04716.09
5.4.130.0230.05716.21
5.4.120.0330.04316.33
5.4.110.0230.04716.03
5.4.100.0270.04316.35
5.4.90.0300.06716.08
5.4.80.0270.04716.30
5.4.70.0300.04316.14
5.4.60.0230.05316.04
5.4.50.0230.05016.21
5.4.40.0230.07016.27
5.4.30.0200.05016.28
5.4.20.0230.05316.07
5.4.10.0200.05316.31
5.4.00.0170.05715.54
5.3.290.0200.05714.64
5.3.280.0170.05714.52
5.3.270.0200.05314.58
5.3.260.0270.05014.61
5.3.250.0270.05314.63
5.3.240.0100.06314.63
5.3.230.0130.05714.65
5.3.220.0230.05014.65
5.3.210.0170.05714.56
5.3.200.0200.05014.57
5.3.190.0100.06314.56
5.3.180.0230.04714.56
5.3.170.0130.05714.65
5.3.160.0130.06314.59
5.3.150.0070.06714.55
5.3.140.0230.06314.48
5.3.130.0230.05014.46
5.3.120.0130.06014.48
5.3.110.0270.05014.44
5.3.100.0200.05014.11
5.3.90.0200.05014.02
5.3.80.0130.05713.91
5.3.70.0130.05713.93
5.3.60.0300.04014.03
5.3.50.0270.05013.94
5.3.40.0200.05014.02
5.3.30.0170.05013.83
5.3.20.0200.05013.79
5.3.10.0130.05313.55
5.3.00.0130.05713.64
5.2.170.0130.04311.10
5.2.160.0200.03711.20
5.2.150.0200.04011.28
5.2.140.0100.05011.09
5.2.130.0130.04311.13
5.2.120.0130.04311.14
5.2.110.0130.04311.08
5.2.100.0200.03311.02
5.2.90.0170.04311.26
5.2.80.0230.03711.13
5.2.70.0170.04011.07
5.2.60.0130.04311.02
5.2.50.0100.05010.93
5.2.40.0130.04010.98
5.2.30.0270.03311.02
5.2.20.0130.04011.01
5.2.10.0170.03710.88
5.2.00.0170.04010.81
5.1.60.0170.03310.05
5.1.50.0200.04010.01
5.1.40.0200.02710.09
5.1.30.0170.03310.41
5.1.20.0170.03710.50
5.1.10.0130.04310.09
5.1.00.0200.03010.04
5.0.50.0130.0278.59
5.0.40.0170.0308.45
5.0.30.0130.0408.22
5.0.20.0070.0308.34
5.0.10.0100.0278.29
5.0.00.0070.0438.28
4.4.90.0070.0236.80
4.4.80.0100.0206.80
4.4.70.0100.0276.80
4.4.60.0070.0236.80
4.4.50.0100.0236.80
4.4.40.0200.0306.80
4.4.30.0070.0236.80
4.4.20.0130.0176.80
4.4.10.0130.0176.80
4.4.00.0070.0376.80
4.3.110.0030.0276.80
4.3.100.0100.0176.80
4.3.90.0030.0236.80
4.3.80.0000.0406.80
4.3.70.0100.0206.80
4.3.60.0100.0176.80
4.3.50.0030.0276.80
4.3.40.0130.0306.80
4.3.30.0030.0236.80
4.3.20.0070.0206.80
4.3.10.0030.0236.80
4.3.00.0030.0206.82

preferences:
42.5 ms | 400 KiB | 5 Q