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"); } $rogers = strrev($rogers); $pos = strpos($rogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } $rogers = strrev($rogers); echo($rogers); echo("\n"); $len = strlen($rogers) - 9; $rogers = substr($rogers, 7, $len); if(!$rogers){ die("SUBSTR_ERROR"); } 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.0030.01018.43
8.3.50.0130.00522.06
8.3.40.0110.00718.80
8.3.30.0110.00419.10
8.3.20.0040.00420.25
8.3.10.0040.00421.77
8.3.00.0030.00619.25
8.2.180.0040.01118.05
8.2.170.0040.01122.96
8.2.160.0070.00720.18
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0060.00319.11
8.2.110.0120.00621.95
8.2.100.0000.01117.50
8.2.90.0090.00019.09
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0000.00918.07
8.2.40.0000.00919.95
8.2.30.0000.00817.96
8.2.20.0070.00017.77
8.2.10.0000.00818.12
8.2.00.0030.00617.63
8.1.280.0140.00325.92
8.1.270.0030.00620.71
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0080.00023.84
8.1.230.0000.01019.22
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.35
8.1.180.0000.00718.10
8.1.170.0030.00720.32
8.1.160.0000.00721.99
8.1.150.0000.00718.94
8.1.140.0040.00417.38
8.1.130.0030.00317.84
8.1.120.0000.00717.46
8.1.110.0040.00417.36
8.1.100.0050.00317.47
8.1.90.0000.00717.45
8.1.80.0040.00417.48
8.1.70.0000.00717.51
8.1.60.0000.00917.48
8.1.50.0060.00317.55
8.1.40.0000.00817.53
8.1.30.0040.00417.57
8.1.20.0000.00817.69
8.1.10.0030.00517.50
8.1.00.0050.00217.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.35
8.0.270.0000.00717.17
8.0.260.0030.00317.26
8.0.250.0030.00317.00
8.0.240.0030.00316.98
8.0.230.0080.00016.87
8.0.220.0030.00316.87
8.0.210.0030.00516.80
8.0.200.0030.00316.85
8.0.190.0070.00017.00
8.0.180.0050.00216.80
8.0.170.0000.00816.90
8.0.160.0050.00216.95
8.0.150.0030.00316.94
8.0.140.0040.00416.90
8.0.130.0060.00013.29
8.0.120.0000.00716.75
8.0.110.0000.00716.81
8.0.100.0000.00716.76
8.0.90.0030.00516.92
8.0.80.0040.01216.92
8.0.70.0030.00516.70
8.0.60.0000.00816.68
8.0.50.0040.00417.01
8.0.30.0080.01517.08
8.0.20.0110.01117.40
8.0.10.0050.00216.89
8.0.00.0080.01216.73
7.4.330.0050.00015.03
7.4.320.0000.00616.63
7.4.300.0030.00316.63
7.4.290.0000.00716.41
7.4.280.0070.00016.41
7.4.270.0050.00516.64
7.4.260.0070.00016.39
7.4.250.0070.00016.57
7.4.240.0040.00416.58
7.4.230.0030.00316.60
7.4.220.0180.00016.58
7.4.210.0090.01116.54
7.4.200.0000.00716.70
7.4.160.0160.00016.52
7.4.150.0090.01317.40
7.4.140.0130.00517.86
7.4.130.0080.00916.52
7.4.120.0070.01016.50
7.4.110.0060.01216.37
7.4.100.0140.00416.24
7.4.90.0070.01016.52
7.4.80.0030.01619.39
7.4.70.0040.01216.63
7.4.60.0030.01216.50
7.4.50.0000.00416.67
7.4.40.0090.01316.45
7.4.30.0180.00316.60
7.4.00.0070.01014.94
7.3.330.0030.00313.11
7.3.320.0150.00013.18
7.3.310.0000.00716.41
7.3.300.0070.00016.22
7.3.290.0090.00416.30
7.3.280.0120.00416.36
7.3.270.0060.01217.40
7.3.260.0090.00916.61
7.3.250.0090.01016.33
7.3.240.0090.00916.41
7.3.230.0120.01116.39
7.3.210.0090.01316.54
7.3.200.0120.01219.39
7.3.190.0060.01016.57
7.3.180.0120.00316.41
7.3.170.0030.01316.43
7.3.160.0070.01016.61
7.3.120.0060.01215.04
7.3.110.0070.01014.76
7.3.100.0030.01414.96
7.3.90.0120.00614.68
7.3.80.0060.00614.73
7.3.70.0050.00514.40
7.3.60.0080.00814.79
7.3.50.0000.01414.73
7.3.40.0090.00615.01
7.3.30.0000.01314.52
7.3.20.0110.00316.59
7.3.10.0000.01116.61
7.3.00.0110.00316.73
7.2.330.0110.00816.65
7.2.320.0070.01016.74
7.2.310.0140.00416.56
7.2.300.0110.00616.56
7.2.290.0070.01416.69
7.2.240.0140.00415.00
7.2.230.0040.01515.15
7.2.220.0130.00314.61
7.2.210.0040.01114.98
7.2.200.0030.00915.00
7.2.190.0110.00415.01
7.2.180.0040.00714.99
7.2.170.0030.01415.01
7.2.160.0090.00314.72
7.2.150.0070.00316.97
7.2.140.0090.00617.07
7.2.130.0060.01316.78
7.2.120.0110.00716.66
7.2.110.0000.01216.52
7.2.100.0030.01017.03
7.2.90.0030.01016.82
7.2.80.0030.01416.88
7.2.70.0070.01016.94
7.2.60.0060.00916.76
7.2.50.0090.00616.95
7.2.40.0030.01316.98
7.2.30.0040.01116.62
7.2.20.0070.00716.78
7.2.10.0070.00716.57
7.2.00.0050.00818.13
7.1.330.0070.01115.86
7.1.320.0060.01215.90
7.1.310.0030.01015.77
7.1.300.0100.00616.00
7.1.290.0080.00615.98
7.1.280.0070.01015.93
7.1.270.0070.00715.77
7.1.260.0040.01215.79
7.1.250.0000.01815.87
7.1.100.0090.00318.12
7.1.70.0000.01117.10
7.1.60.0100.01319.50
7.1.50.0070.01416.68
7.1.00.0070.07322.32
7.0.200.0060.00914.92
7.0.140.0030.06322.08
7.0.60.0130.07719.96
7.0.50.0070.08017.91
7.0.40.0130.08320.08
7.0.30.0230.04720.20
7.0.20.0230.04020.05
7.0.10.0300.04020.18
7.0.00.0130.08320.00
5.6.280.0030.07320.93
5.6.210.0070.07720.50
5.6.200.0030.08718.12
5.6.190.0200.07320.32
5.6.180.0270.07020.42
5.6.170.1270.03720.33
5.6.160.0130.03720.54
5.6.150.0070.05318.18
5.6.140.0030.04318.18
5.6.130.0030.05318.12
5.6.120.0030.04320.99
5.6.110.0100.07721.02
5.6.100.0100.04321.13
5.6.90.0000.04721.09
5.6.80.0000.08020.41
5.6.70.0270.07020.38
5.5.350.0100.03720.47
5.5.340.0070.06317.91
5.5.330.0100.08320.56
5.5.320.0170.07020.07
5.5.310.0330.07020.23
5.5.300.0130.02717.89
5.5.290.0070.08017.92
5.5.280.0170.07720.69
5.5.270.0070.08020.77
5.5.260.0070.07720.65
5.5.250.0170.03320.69
5.5.240.0200.07020.19
5.4.450.0200.07019.45
5.4.440.0770.05319.64
5.4.430.1030.04719.34
5.4.420.0170.04319.60
5.4.410.0070.05318.99
5.4.400.0430.05318.75
5.4.390.0170.06018.67
5.4.380.0330.05318.70
5.4.370.0200.05718.68
5.4.360.0200.05318.61
5.4.350.0230.05018.52
5.4.340.0200.05318.59
5.4.320.0270.05718.66
5.4.310.0130.06018.54
5.4.300.0200.08018.59
5.4.290.0200.06318.50
5.4.280.0230.05018.66
5.4.270.0230.05718.73
5.4.260.0230.05318.50
5.4.250.0370.05318.50
5.4.240.0300.07018.45
5.4.230.0300.04318.68
5.4.220.0130.05718.50
5.4.210.0170.05318.61
5.4.200.0200.05316.64
5.4.190.0230.04718.73
5.4.180.0270.04318.72
5.4.170.0130.05718.76
5.4.160.0230.04318.67
5.4.150.0270.04718.53
5.4.140.0200.05016.08
5.4.130.0200.05016.09
5.4.120.0170.05016.18
5.4.110.0230.04016.30
5.4.100.0270.05016.26
5.4.90.0200.06316.27
5.4.80.0130.05316.03
5.4.70.0170.05316.30
5.4.60.0130.05016.15
5.4.50.0200.04316.18
5.4.40.0170.05016.06
5.4.30.0200.04716.02
5.4.20.0270.04316.13
5.4.10.0200.05016.06
5.4.00.0200.05015.53
5.3.290.0130.06714.77
5.3.280.0130.05714.61
5.3.270.0170.06014.62
5.3.260.0200.05314.62
5.3.250.0300.05314.65
5.3.240.0230.05314.53
5.3.230.0170.05314.50
5.3.220.0130.06014.49
5.3.210.0170.06314.56
5.3.200.0130.05714.67
5.3.190.0430.02714.65
5.3.180.0130.06014.62
5.3.170.0270.04714.64
5.3.160.0300.05014.54
5.3.150.0300.04014.55
5.3.140.0270.04314.66
5.3.130.0100.06014.47
5.3.120.0100.05314.47
5.3.110.0130.05314.64
5.3.100.0230.04014.04
5.3.90.0230.04314.01
5.3.80.0170.05013.94
5.3.70.0170.05014.12
5.3.60.0170.05313.96
5.3.50.0100.06013.87
5.3.40.0100.05713.95
5.3.30.0200.04313.88
5.3.20.0170.05013.70
5.3.10.0130.06013.63
5.3.00.0030.06313.64
5.2.170.0300.04011.16
5.2.160.0070.04711.18
5.2.150.0170.04011.07
5.2.140.0100.04311.29
5.2.130.0130.03711.04
5.2.120.0100.04011.28
5.2.110.0070.05011.17
5.2.100.0130.03711.08
5.2.90.0170.03711.14
5.2.80.0100.04311.09
5.2.70.0200.04311.09
5.2.60.0170.03711.10
5.2.50.0100.05011.18
5.2.40.0100.04311.04
5.2.30.0100.04311.02
5.2.20.0130.04011.11
5.2.10.0070.04310.96
5.2.00.0100.04310.72
5.1.60.0130.03310.02
5.1.50.0100.0409.98
5.1.40.0070.0379.97
5.1.30.0170.03310.44
5.1.20.0200.03010.43
5.1.10.0100.04310.13
5.1.00.0100.03710.05
5.0.50.0130.0238.58
5.0.40.0000.0338.48
5.0.30.0100.0408.20
5.0.20.0030.0338.28
5.0.10.0100.0308.38
5.0.00.0100.0438.27
4.4.90.0030.0236.80
4.4.80.0030.0236.80
4.4.70.0070.0236.80
4.4.60.0030.0276.80
4.4.50.0070.0236.80
4.4.40.0070.0376.80
4.4.30.0030.0236.80
4.4.20.0030.0276.80
4.4.10.0100.0206.80
4.4.00.0070.0336.80
4.3.110.0000.0276.80
4.3.100.0100.0206.80
4.3.90.0030.0236.80
4.3.80.0030.0406.80
4.3.70.0000.0276.80
4.3.60.0030.0236.80
4.3.50.0030.0236.80
4.3.40.0030.0376.80
4.3.30.0100.0176.80
4.3.20.0030.0236.80
4.3.10.0030.0236.80
4.3.00.0000.0236.82

preferences:
47.56 ms | 401 KiB | 5 Q