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); //$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.60.0120.00318.43
8.3.50.0150.00521.97
8.3.40.0000.01918.71
8.3.30.0070.00718.95
8.3.20.0040.00420.34
8.3.10.0000.00921.76
8.3.00.0080.00019.26
8.2.180.0070.01118.16
8.2.170.0070.00722.96
8.2.160.0120.00321.93
8.2.150.0200.00024.18
8.2.140.0000.00824.66
8.2.130.0030.01226.16
8.2.120.0050.00319.13
8.2.110.0030.00620.83
8.2.100.0090.00317.72
8.2.90.0050.00320.55
8.2.80.0030.00620.53
8.2.70.0040.00417.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0080.00019.35
8.2.30.0040.00419.46
8.2.20.0040.00417.70
8.2.10.0030.00618.00
8.2.00.0000.00717.73
8.1.280.0100.00725.92
8.1.270.0130.00719.04
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0090.00022.14
8.1.230.0070.00420.79
8.1.220.0040.00417.74
8.1.210.0030.00518.89
8.1.200.0060.00317.23
8.1.190.0030.00517.13
8.1.180.0030.00718.10
8.1.170.0040.00417.64
8.1.160.0080.00018.89
8.1.150.0000.00718.90
8.1.140.0040.00417.47
8.1.130.0000.00717.71
8.1.120.0000.00817.39
8.1.110.0040.00417.47
8.1.100.0040.00417.43
8.1.90.0000.00717.39
8.1.80.0000.00717.46
8.1.70.0000.00817.39
8.1.60.0060.00317.61
8.1.50.0040.00417.60
8.1.40.0040.00417.45
8.1.30.0000.00817.66
8.1.20.0020.00517.70
8.1.10.0080.00017.53
8.1.00.0070.00017.40
8.0.300.0000.00720.09
8.0.290.0040.00416.63
8.0.280.0000.00818.01
8.0.270.0050.00217.21
8.0.260.0030.00317.26
8.0.250.0030.00717.03
8.0.240.0060.00016.95
8.0.230.0040.00316.96
8.0.220.0040.00416.83
8.0.210.0070.00016.94
8.0.200.0000.00616.80
8.0.190.0030.00516.85
8.0.180.0040.00416.83
8.0.170.0080.00016.94
8.0.160.0070.00017.01
8.0.150.0030.00316.86
8.0.140.0040.00416.71
8.0.130.0030.00313.39
8.0.120.0040.00416.89
8.0.110.0040.00416.75
8.0.100.0040.00416.84
8.0.90.0000.00716.92
8.0.80.0130.00316.97
8.0.70.0040.00416.79
8.0.60.0000.00816.94
8.0.50.0050.00216.93
8.0.30.0090.01417.33
8.0.20.0120.00717.40
8.0.10.0000.00716.88
8.0.00.0090.00716.91
7.4.330.0050.00015.14
7.4.320.0000.00716.53
7.4.300.0070.00016.43
7.4.290.0000.00916.51
7.4.280.0000.00816.60
7.4.270.0040.00416.63
7.4.260.0080.00016.48
7.4.250.0040.00416.55
7.4.240.0010.00616.61
7.4.230.0000.00716.57
7.4.220.0120.01216.58
7.4.210.0100.01016.68
7.4.200.0040.00416.69
7.4.160.0160.00016.45
7.4.150.0040.01417.40
7.4.140.0110.01117.86
7.4.130.0110.01116.48
7.4.120.0110.00616.52
7.4.110.0180.00416.56
7.4.100.0100.00716.53
7.4.90.0130.00616.61
7.4.80.0020.00619.39
7.4.70.0140.00316.50
7.4.60.0060.00916.47
7.4.50.0050.00316.57
7.4.40.0080.00416.70
7.4.30.0160.00616.48
7.4.00.0070.00414.91
7.3.330.0030.00313.10
7.3.320.0060.00613.21
7.3.310.0070.00016.16
7.3.300.0000.00716.18
7.3.290.0110.00316.28
7.3.280.0110.00716.31
7.3.270.0120.00917.40
7.3.260.0130.00316.28
7.3.250.0070.01116.43
7.3.240.0110.00716.59
7.3.230.0080.00916.46
7.3.210.0100.00716.50
7.3.200.0120.00919.39
7.3.190.0080.00816.26
7.3.180.0030.01216.34
7.3.170.0130.01016.36
7.3.160.0100.00716.30
7.2.330.0040.01516.38
7.2.320.0140.00616.29
7.2.310.0060.01716.50
7.2.300.0080.00916.64
7.2.290.0140.00316.46
7.2.00.0030.01019.40
7.1.100.0060.00318.07
7.1.70.0000.00917.22
7.1.60.0120.01219.50
7.1.50.0030.01417.00
7.1.00.0030.07722.31
7.0.200.0630.01014.79
7.0.140.0070.06322.09
7.0.60.0130.04719.97
7.0.50.0030.07317.88
7.0.40.0130.08020.26
7.0.30.0370.03320.28
7.0.20.0300.07019.99
7.0.10.0200.06720.30
7.0.00.0070.08320.17
5.6.280.0070.07021.12
5.6.210.0070.06320.60
5.6.200.0100.08318.12
5.6.190.0000.06720.45
5.6.180.0300.04320.43
5.6.170.0430.06720.51
5.6.160.0030.08320.54
5.6.150.0100.07318.14
5.6.140.0100.03318.17
5.6.130.0030.09018.21
5.6.120.0170.07721.01
5.6.110.0000.08721.13
5.6.100.0130.05020.98
5.6.90.0130.07321.07
5.6.80.0170.06320.50
5.6.70.0270.05720.39
5.5.350.0170.04020.42
5.5.340.0170.07017.92
5.5.330.0170.05020.40
5.5.320.0200.07720.42
5.5.310.0200.04320.30
5.5.300.0030.06018.02
5.5.290.0000.07017.88
5.5.280.0100.06720.69
5.5.270.0030.04720.79
5.5.260.0070.09020.83
5.5.250.0170.06720.68
5.5.240.0070.08020.23
5.4.450.0770.04719.47
5.4.440.0770.07319.60
5.4.430.0470.07319.24
5.4.420.0900.05019.47
5.4.410.0370.05719.39
5.4.400.0300.06718.53
5.4.390.0430.04318.57
5.4.380.0200.07718.50
5.4.370.0170.06018.71
5.4.360.0300.04318.71
5.4.350.0170.06018.74
5.4.340.0270.04718.78
5.4.320.0230.05318.57
5.4.310.0170.06318.46
5.4.300.0200.06318.40
5.4.290.0170.05318.56
5.4.280.0130.05718.74
5.4.270.0270.04318.70
5.4.260.0130.06018.68
5.4.250.0130.05718.40
5.4.240.0200.05718.71
5.4.230.0100.05718.60
5.4.220.0130.08018.48
5.4.210.0270.04718.67
5.4.200.0170.05316.53
5.4.190.0130.05318.64
5.4.180.0230.04718.59
5.4.170.0200.05318.45
5.4.160.0130.05318.47
5.4.150.0270.04318.47
5.4.140.0270.05016.18
5.4.130.0270.04016.09
5.4.120.0200.04716.04
5.4.110.0230.05316.16
5.4.100.0170.05716.35
5.4.90.0130.06316.30
5.4.80.0270.04716.20
5.4.70.0270.05316.11
5.4.60.0200.06716.03
5.4.50.0200.06716.16
5.4.40.0130.07316.23
5.4.30.0270.05316.10
5.4.20.0200.04716.13
5.4.10.0170.04716.32
5.4.00.0130.05715.71
5.3.290.0170.06014.57
5.3.280.0200.06314.70
5.3.270.0100.06714.52
5.3.260.0200.05314.64
5.3.250.0330.03714.50
5.3.240.0170.05314.51
5.3.230.0200.05014.52
5.3.220.0230.04714.46
5.3.210.0070.07014.60
5.3.200.0170.05314.48
5.3.190.0200.05014.54
5.3.180.0170.05014.65
5.3.170.0200.05014.54
5.3.160.0100.05714.56
5.3.150.0170.05314.47
5.3.140.0200.05014.55
5.3.130.0270.04714.44
5.3.120.0230.06014.46
5.3.110.0130.06014.53
5.3.100.0370.04713.93
5.3.90.0230.06313.98
5.3.80.0200.05713.96
5.3.70.0100.05713.93
5.3.60.0230.05013.93
5.3.50.0200.06013.86
5.3.40.0200.05713.98
5.3.30.0230.05013.82
5.3.20.0230.05713.79
5.3.10.0270.05713.64
5.3.00.0100.05713.58
5.2.170.0170.04311.13
5.2.160.0100.05011.30
5.2.150.0130.04011.12
5.2.140.0270.04311.13
5.2.130.0200.05311.13
5.2.120.0200.03711.15
5.2.110.0170.04311.03
5.2.100.0100.04311.07
5.2.90.0330.03711.06
5.2.80.0170.05711.13
5.2.70.0100.05011.05
5.2.60.0070.04711.09
5.2.50.0270.03711.15
5.2.40.0170.03710.95
5.2.30.0200.05310.93
5.2.20.0130.04011.07
5.2.10.0130.04310.81
5.2.00.0130.04310.74
5.1.60.0070.04310.00
5.1.50.0100.04310.02
5.1.40.0100.0379.93
5.1.30.0200.03710.30
5.1.20.0130.04010.45
5.1.10.0200.02710.08
5.1.00.0130.04310.09
5.0.50.0170.0308.67
5.0.40.0230.0178.47
5.0.30.0100.0408.34
5.0.20.0070.0308.23
5.0.10.0030.0308.19
5.0.00.0030.0478.25
4.4.90.0070.0206.69
4.4.80.0030.0236.69
4.4.70.0070.0206.69
4.4.60.0070.0276.69
4.4.50.0030.0306.69
4.4.40.0100.0436.69
4.4.30.0100.0236.69
4.4.20.0070.0236.69
4.4.10.0030.0336.69
4.4.00.0070.0406.69
4.3.110.0130.0206.69
4.3.100.0130.0136.69
4.3.90.0000.0336.69
4.3.80.0170.0276.69
4.3.70.0100.0206.69
4.3.60.0200.0206.69
4.3.50.0100.0236.69
4.3.40.0100.0336.69
4.3.30.0070.0276.69
4.3.20.0000.0276.69
4.3.10.0030.0236.69
4.3.00.0100.0236.82

preferences:
62.08 ms | 401 KiB | 5 Q