3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_url = 'http://example.com/bla/bla/bla/file.ext'; if (stripos($user_url, 'http') === 0) { $user_url = substr($user_url, 5); } elseif (stripos($user_url, 'https') === 0) { $user_url = substr($user_url, 6); } echo $user_url;

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.0090.00616.25
8.3.50.0100.00922.89
8.3.40.0110.00418.67
8.3.30.0000.01518.95
8.3.20.0070.00020.18
8.3.10.0000.00723.46
8.3.00.0040.00417.38
8.2.180.0100.01016.63
8.2.170.0140.00722.96
8.2.160.0100.00321.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.22
8.2.110.0040.00422.27
8.2.100.0080.00417.78
8.2.90.0050.00319.26
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0070.00018.05
8.2.20.0060.00317.73
8.2.10.0040.00418.02
8.2.00.0000.00817.79
8.1.280.0070.00725.92
8.1.270.0000.00923.80
8.1.260.0040.00426.35
8.1.250.0080.00628.09
8.1.240.0000.00923.73
8.1.230.0070.00319.07
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0030.00718.45
8.1.160.0000.00821.99
8.1.150.0070.00018.80
8.1.140.0030.00617.37
8.1.130.0070.00017.87
8.1.120.0070.00017.30
8.1.110.0040.00417.36
8.1.100.0030.00317.30
8.1.90.0000.00817.38
8.1.80.0070.00017.36
8.1.70.0000.00617.35
8.1.60.0000.00917.53
8.1.50.0040.00417.51
8.1.40.0060.00317.48
8.1.30.0060.00317.63
8.1.20.0080.00017.50
8.1.10.0030.00617.53
8.1.00.0000.00817.44
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0080.00317.25
8.0.260.0040.00417.16
8.0.250.0000.00616.96
8.0.240.0030.00316.88
8.0.230.0030.00316.85
8.0.220.0070.00016.76
8.0.210.0080.00016.81
8.0.200.0000.00616.90
8.0.190.0040.00416.91
8.0.180.0000.00716.85
8.0.170.0000.00716.81
8.0.160.0000.00716.82
8.0.150.0000.00716.86
8.0.140.0040.00416.79
8.0.130.0030.00313.22
8.0.120.0000.00816.76
8.0.110.0030.00616.77
8.0.100.0000.00716.66
8.0.90.0070.00016.82
8.0.80.0090.00616.87
8.0.70.0070.00016.73
8.0.60.0070.00016.94
8.0.50.0070.00016.71
8.0.30.0100.00916.94
8.0.20.0180.00117.40
8.0.10.0000.00816.80
8.0.00.0090.00916.68
7.4.330.0050.00015.00
7.4.320.0000.00716.55
7.4.300.0000.00616.54
7.4.290.0030.00316.62
7.4.280.0050.00316.47
7.4.270.0000.00716.61
7.4.260.0060.00316.57
7.4.250.0040.00416.44
7.4.240.0050.00216.56
7.4.230.0070.00016.71
7.4.220.0150.00316.55
7.4.210.0070.00716.56
7.4.200.0060.00316.34
7.4.150.0060.01417.40
7.4.140.0120.00817.86
7.4.130.0130.00416.55
7.4.120.0130.00416.53
7.4.110.0120.00416.54
7.4.100.0070.01616.48
7.4.90.0180.00616.46
7.4.80.0130.00319.39
7.4.70.0140.00716.55
7.4.60.0090.00616.37
7.4.50.0000.00416.52
7.4.40.0100.01016.54
7.4.30.0030.01316.59
7.4.00.0070.01114.96
7.3.330.0000.00813.10
7.3.320.0050.00013.00
7.3.310.0030.00316.27
7.3.300.0040.00416.26
7.3.290.0070.00716.21
7.3.280.0110.00716.31
7.3.270.0110.00817.40
7.3.260.0210.00016.31
7.3.240.0100.01316.46
7.3.230.0100.00716.39
7.3.210.0130.00316.45
7.3.200.0100.00619.39
7.3.190.0130.00916.51
7.3.180.0060.00916.55
7.3.170.0110.01116.33
7.3.160.0060.01016.21
7.2.330.0080.01016.68
7.2.320.0130.00316.67
7.2.310.0100.00616.50
7.2.300.0070.01116.70
7.2.290.0090.00816.49
7.2.00.0000.01219.41
7.1.100.0030.00917.82
7.1.70.0000.00817.17
7.1.60.0070.00719.40
7.1.50.0100.00716.82
7.1.00.0000.08022.54
7.0.200.6530.00315.09
7.0.140.0030.07322.18
7.0.110.0000.04721.67
7.0.100.0100.03321.73
7.0.90.0070.05321.74
7.0.80.0030.04321.80
7.0.70.0000.08021.86
7.0.60.0070.07321.86
7.0.50.0030.06721.73
7.0.40.0070.08019.79
7.0.30.0000.05019.65
7.0.20.0030.06319.81
7.0.10.0030.07319.67
7.0.00.0070.07319.77
5.6.280.0030.07321.06
5.6.260.0070.05720.68
5.6.250.0070.07720.71
5.6.240.0070.03320.69
5.6.230.0000.04720.64
5.6.220.0100.06020.70
5.6.210.0000.03720.53
5.6.200.0000.07720.71
5.6.190.0030.03720.71
5.6.180.0030.08020.66
5.6.170.0030.04320.70
5.6.160.0000.04720.68
5.6.150.0070.04320.63
5.6.140.0000.08320.46
5.6.130.0030.03720.46
5.6.120.0000.05320.61
5.6.110.0070.04320.64
5.6.100.0030.04020.54
5.6.90.0030.05320.67
5.6.80.0070.05719.99
5.6.70.0030.07019.99
5.6.60.0000.09719.84
5.6.50.0070.07319.93
5.6.40.0030.07320.06
5.6.30.0030.09019.92
5.6.20.0100.06719.96
5.6.10.0000.04019.81
5.6.00.0000.03719.99
5.5.380.0070.04017.54
5.5.370.0070.05717.46
5.5.360.0100.07317.60
5.5.350.0000.04017.54
5.5.340.0030.07717.87
5.5.330.0000.08718.01
5.5.320.0030.07317.99
5.5.310.0070.04317.98
5.5.300.0070.05717.86
5.5.290.0070.03717.98
5.5.280.0030.04018.10
5.5.270.0000.04318.12
5.5.260.0000.06018.02
5.5.250.0030.05017.71
5.5.240.0000.04017.27
5.5.230.0070.03317.63
5.5.220.0030.07717.28
5.5.210.0000.08317.54
5.5.200.0000.05317.34
5.5.190.0000.05317.48
5.5.180.0030.03717.52
5.5.160.0100.06017.60
5.5.150.0000.07017.59
5.5.140.0000.04717.20
5.5.130.0000.05317.36
5.5.120.0000.03717.51
5.5.110.0000.04717.50
5.5.100.0030.06017.26
5.5.90.0000.03717.11
5.5.80.0030.04017.41
5.5.70.0000.04017.22
5.5.60.0030.07317.40
5.5.50.0000.04717.40
5.5.40.0030.05317.09
5.5.30.0070.03317.08
5.5.20.0030.03717.23
5.5.10.0000.06717.08
5.5.00.0000.03717.21
5.4.450.0070.05719.22
5.4.440.0000.04319.45
5.4.430.0070.03019.40
5.4.420.0000.04019.38
5.4.410.0070.07019.15
5.4.400.0100.07018.88
5.4.390.0000.06019.07
5.4.380.0030.07318.95
5.4.370.0070.05718.93
5.4.360.0070.04019.02
5.4.350.0000.05018.88
5.4.340.0030.04319.07
5.4.320.0070.07019.13
5.4.310.0000.05018.98
5.4.300.0000.07018.96
5.4.290.0030.06019.02
5.4.280.0000.03718.90
5.4.270.0070.04718.89
5.4.260.0030.03719.19
5.4.250.0000.04719.02
5.4.240.0000.03718.97
5.4.230.0000.05319.12
5.4.220.0030.03718.96
5.4.210.0000.03718.89
5.4.200.0000.03718.92
5.4.190.0030.03319.06
5.4.180.0000.03719.04
5.4.170.0000.03719.18
5.4.160.0030.04718.96
5.4.150.0000.05319.00
5.4.140.0000.04016.48
5.4.130.0000.04716.20
5.4.120.0000.03716.20
5.4.110.0030.03316.45
5.4.100.0030.03316.32
5.4.90.0000.03716.31
5.4.80.0000.03316.41
5.4.70.0100.04316.12
5.4.60.0070.05316.43
5.4.50.0000.03716.44
5.4.40.0000.04716.33
5.4.30.0000.05716.20
5.4.20.0000.03316.29
5.4.10.0000.04316.20
5.4.00.0000.03315.89
5.3.290.0000.04314.68
5.3.280.0000.03714.50
5.3.270.0030.04714.68
5.3.260.0030.04314.67
5.3.250.0070.04714.66
5.3.240.0000.03714.52
5.3.230.0070.03314.54
5.3.220.0000.03714.63
5.3.210.0000.05314.41
5.3.200.0100.07014.35
5.3.190.0030.03314.63
5.3.180.0030.03314.46
5.3.170.0000.04014.57
5.3.160.0000.03714.57
5.3.150.0030.03314.39
5.3.140.0000.03314.47
5.3.130.0000.03714.42
5.3.120.0030.06314.40
5.3.110.0030.03314.42
5.3.100.0030.03314.04
5.3.90.0030.03313.88
5.3.80.0000.04314.03
5.3.70.0030.06714.02
5.3.60.0070.03014.02
5.3.50.0030.03713.84
5.3.40.0000.07013.77
5.3.30.0000.04013.77
5.3.20.0070.03013.63
5.3.10.0030.04313.66
5.3.00.0030.07313.58
5.2.170.0000.03011.08
5.2.160.0030.02311.08
5.2.150.0030.05711.04
5.2.140.0000.03011.13
5.2.130.0030.02311.03
5.2.120.0000.04011.00
5.2.110.0000.02711.11
5.2.100.0000.03011.11
5.2.90.0000.03710.99
5.2.80.0070.02711.04
5.2.70.0000.03710.98
5.2.60.0000.03010.97
5.2.50.0030.04710.91
5.2.40.0000.03010.89
5.2.30.0000.03011.00
5.2.20.0030.03310.97
5.2.10.0000.02710.76
5.2.00.0000.03310.79
5.1.60.0000.02710.25
5.1.50.0030.0579.90
5.1.40.0000.02710.22
5.1.30.0000.02710.27
5.1.20.0000.03010.35
5.1.10.0000.06010.13
5.1.00.0030.02710.31
5.0.50.0000.0309.90
5.0.40.0000.0209.90
5.0.30.0030.0279.90
5.0.20.0030.0179.90
5.0.10.0000.0209.90
5.0.00.0000.0479.90
4.4.90.0030.0139.90
4.4.80.0000.0379.90
4.4.70.0000.0139.90
4.4.60.0000.0139.90
4.4.50.0000.0179.90
4.4.40.0000.0239.90
4.4.30.0000.0209.90
4.4.20.0000.0139.90
4.4.10.0000.0139.90
4.4.00.0000.0239.90
4.3.110.0000.0139.90
4.3.100.0000.0139.90
4.3.90.0000.0209.90
4.3.80.0000.0279.90
4.3.70.0000.0139.90
4.3.60.0030.0209.90
4.3.50.0030.0239.90
4.3.40.0000.0309.90
4.3.30.0030.0139.90
4.3.20.0000.0179.90
4.3.10.0000.0179.90
4.3.00.0000.0179.90

preferences:
40.42 ms | 401 KiB | 5 Q