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"); } $revrogers = strrev($rogers); $pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($rogers); echo("\n"); echo($revrogers); //$rogers = substr($rogers, $pos + 2); //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.70.0090.00618.43
8.3.60.0080.00818.30
8.3.50.0130.00921.99
8.3.40.0160.00618.71
8.3.30.0030.01318.95
8.3.20.0000.00820.34
8.3.10.0050.00221.71
8.3.00.0040.00419.18
8.2.190.0110.00716.58
8.2.180.0120.00918.26
8.2.170.0080.00622.96
8.2.160.0070.00720.35
8.2.150.0000.01524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.25
8.2.110.0050.00519.18
8.2.100.0080.00417.75
8.2.90.0080.00019.16
8.2.80.0090.00017.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00718.07
8.2.40.0060.00319.95
8.2.30.0000.00718.08
8.2.20.0050.00317.61
8.2.10.0070.00018.13
8.2.00.0040.00417.63
8.1.280.0130.00725.92
8.1.270.0090.00618.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.84
8.1.230.0080.00417.42
8.1.220.0040.00417.77
8.1.210.0030.00618.77
8.1.200.0070.00317.22
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0030.00620.39
8.1.160.0000.00722.07
8.1.150.0080.00018.96
8.1.140.0040.00417.46
8.1.130.0030.00317.76
8.1.120.0000.00717.38
8.1.110.0000.00717.48
8.1.100.0000.00817.33
8.1.90.0040.00417.35
8.1.80.0040.00417.39
8.1.70.0030.00317.38
8.1.60.0030.00517.52
8.1.50.0000.00817.53
8.1.40.0040.00417.54
8.1.30.0080.00017.67
8.1.20.0000.00717.50
8.1.10.0040.00417.53
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0070.00018.32
8.0.270.0030.00517.12
8.0.260.0000.00717.31
8.0.250.0030.00316.97
8.0.240.0040.00416.89
8.0.230.0040.00416.97
8.0.220.0050.00216.78
8.0.210.0070.00016.87
8.0.200.0030.00317.00
8.0.190.0070.00016.87
8.0.180.0030.00616.83
8.0.170.0000.00716.78
8.0.160.0030.00416.91
8.0.150.0040.00416.82
8.0.140.0070.00016.91
8.0.130.0050.00013.34
8.0.120.0040.00416.89
8.0.110.0040.00416.97
8.0.100.0000.00716.93
8.0.90.0000.00716.77
8.0.80.0090.00616.93
8.0.70.0040.00416.96
8.0.60.0040.00417.02
8.0.50.0040.00416.96
8.0.30.0080.01317.07
8.0.20.0170.00217.40
8.0.10.0040.00416.93
8.0.00.0090.01216.83
7.4.330.0000.00515.15
7.4.320.0030.00516.38
7.4.300.0030.00316.53
7.4.290.0000.00716.47
7.4.280.0080.00016.51
7.4.270.0030.00316.66
7.4.260.0070.00016.55
7.4.250.0070.00016.54
7.4.240.0030.00416.54
7.4.230.0000.00716.39
7.4.220.0080.01116.48
7.4.210.0090.00616.71
7.4.200.0070.00016.36
7.4.160.0110.00416.48
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0070.01116.49
7.4.120.0110.00916.38
7.4.110.0100.00716.64
7.4.100.0060.00916.61
7.4.90.0150.00316.38
7.4.80.0120.00919.39
7.4.70.0120.00616.52
7.4.60.0000.01816.54
7.4.50.0050.00316.19
7.4.40.0060.01816.45
7.4.30.0180.00016.51
7.4.00.0030.01215.13
7.3.330.0070.00013.11
7.3.320.0000.01213.07
7.3.310.0030.00316.33
7.3.300.0030.00316.18
7.3.290.0050.01116.25
7.3.280.0100.00716.31
7.3.270.0210.01117.40
7.3.260.0070.01616.29
7.3.250.0050.01216.33
7.3.240.0100.00716.28
7.3.230.0120.00916.57
7.3.210.0110.01116.36
7.3.200.0150.00616.35
7.3.190.0090.00616.50
7.3.180.0080.01116.19
7.3.170.0130.01016.38
7.3.160.0120.00416.39
7.2.330.0080.00816.40
7.2.320.0070.01016.39
7.2.310.0150.00316.33
7.2.300.0100.00716.45
7.2.290.0120.00616.38
7.2.00.0040.01219.48
7.1.200.0050.00815.85
7.1.100.0030.01017.98
7.1.70.0080.00016.87
7.1.60.0120.01219.50
7.1.50.0030.02016.86
7.1.00.0030.07322.40
7.0.200.0690.00314.89
7.0.140.0030.03722.05
7.0.60.0100.08019.85
7.0.50.0100.08317.86
7.0.40.0030.09320.04
7.0.30.0330.07320.09
7.0.20.0130.05320.14
7.0.10.0270.08720.16
7.0.00.0030.09320.16
5.6.280.0070.07021.10
5.6.210.0130.07320.50
5.6.200.0030.07318.17
5.6.190.0100.09020.41
5.6.180.0230.04320.43
5.6.170.0200.08020.50
5.6.160.0070.07320.33
5.6.150.0170.04718.12
5.6.140.0070.08318.11
5.6.130.0030.06018.20
5.6.120.0000.04721.00
5.6.110.0030.04721.01
5.6.100.0030.07720.96
5.6.90.0130.07721.08
5.6.80.0030.07320.48
5.6.70.0270.07720.37
5.5.350.0130.08320.43
5.5.340.0000.05317.91
5.5.330.0200.06720.45
5.5.320.0200.05720.43
5.5.310.0300.07020.12
5.5.300.0070.08317.89
5.5.290.0100.07017.88
5.5.280.0100.07020.73
5.5.270.0200.07020.88
5.5.260.0030.06720.85
5.5.250.0100.07720.68
5.5.240.0030.08020.25
5.4.450.0570.06719.49
5.4.440.0870.05019.50
5.4.430.0470.05319.42
5.4.420.0730.05019.48
5.4.410.0900.05319.45
5.4.400.0200.06018.54
5.4.390.0230.05718.50
5.4.380.0100.06318.62
5.4.370.0300.05718.71
5.4.360.0130.05318.53
5.4.350.0130.06318.70
5.4.340.0270.06018.51
5.4.320.0200.05318.77
5.4.310.0300.06718.71
5.4.300.0270.07018.52
5.4.290.0300.07018.67
5.4.280.0130.06318.70
5.4.270.0370.03718.62
5.4.260.0230.05718.53
5.4.250.0070.07318.58
5.4.240.0300.05318.60
5.4.230.0430.03018.71
5.4.220.0200.06018.78
5.4.210.0270.05318.55
5.4.200.0170.05316.55
5.4.190.0270.04718.66
5.4.180.0330.05318.48
5.4.170.0270.05318.66
5.4.160.0270.05318.46
5.4.150.0300.04318.43
5.4.140.0230.05016.18
5.4.130.0300.04716.23
5.4.120.0230.05316.27
5.4.110.0270.04016.32
5.4.100.0270.04316.20
5.4.90.0370.03316.07
5.4.80.0170.05316.24
5.4.70.0230.04716.20
5.4.60.0130.05716.09
5.4.50.0130.05016.03
5.4.40.0100.06716.39
5.4.30.0230.04716.03
5.4.20.0300.05016.28
5.4.10.0170.05316.21
5.4.00.0130.05715.70
5.3.290.0370.06314.71
5.3.280.0270.06714.57
5.3.270.0270.07014.59
5.3.260.0170.05314.52
5.3.250.0200.05314.68
5.3.240.0200.05014.70
5.3.230.0070.06314.67
5.3.220.0200.05014.61
5.3.210.0170.05714.68
5.3.200.0200.04714.48
5.3.190.0300.04014.56
5.3.180.0170.05014.49
5.3.170.0130.05314.61
5.3.160.0130.05314.52
5.3.150.0170.05314.61
5.3.140.0200.06714.45
5.3.130.0200.05714.46
5.3.120.0200.07714.51
5.3.110.0270.06714.58
5.3.100.0200.06013.96
5.3.90.0170.05014.07
5.3.80.0200.04713.99
5.3.70.0230.04714.00
5.3.60.0330.04013.95
5.3.50.0300.05713.87
5.3.40.0200.06013.87
5.3.30.0200.05713.85
5.3.20.0200.06313.79
5.3.10.0330.05713.59
5.3.00.0170.05013.61
5.2.170.0070.06011.21
5.2.160.0170.04311.13
5.2.150.0130.05011.10
5.2.140.0230.03711.18
5.2.130.0100.05011.16
5.2.120.0030.05011.03
5.2.110.0270.03011.15
5.2.100.0170.05311.15
5.2.90.0200.05311.06
5.2.80.0200.04711.24
5.2.70.0170.04011.07
5.2.60.0130.04311.01
5.2.50.0200.04311.06
5.2.40.0170.04710.91
5.2.30.0130.05011.01
5.2.20.0270.03710.99
5.2.10.0130.04310.88
5.2.00.0170.03710.73
5.1.60.0100.04010.09
5.1.50.0100.04310.11
5.1.40.0130.04310.02
5.1.30.0130.04710.42
5.1.20.0200.04310.32
5.1.10.0200.03010.18
5.1.00.0070.04310.10
5.0.50.0100.0278.61
5.0.40.0070.0308.47
5.0.30.0030.0538.22
5.0.20.0070.0378.23
5.0.10.0100.0378.30
5.0.00.0070.0478.20
4.4.90.0000.0307.52
4.4.80.0130.0177.52
4.4.70.0100.0307.52
4.4.60.0070.0277.52
4.4.50.0030.0337.52
4.4.40.0070.0377.52
4.4.30.0100.0237.52
4.4.20.0100.0277.52
4.4.10.0100.0237.52
4.4.00.0070.0437.52
4.3.110.0100.0277.52
4.3.100.0070.0237.52
4.3.90.0100.0177.52
4.3.80.0100.0337.52
4.3.70.0200.0237.52
4.3.60.0100.0177.52
4.3.50.0030.0307.52
4.3.40.0130.0337.52
4.3.30.0030.0307.52
4.3.20.0000.0277.52
4.3.10.0030.0237.52
4.3.00.0100.0206.82

preferences:
47.79 ms | 401 KiB | 5 Q