3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paths = array( 'invalid path', '/relative/path/image.jpg', 'http://myhost.com/image.jpg', 'https://mysslhost.com/image.jpg', ); foreach ($paths as $path) { $is_full_path = 0 !== preg_match('@^http(s)?:\/\/@', $path); echo sprintf("'%s' %s is a full path.\n", $path, ($is_full_path ? 'YES' : 'NO')); }

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.0160.00316.63
8.3.50.0110.00922.91
8.3.40.0120.00318.67
8.3.30.0090.01218.89
8.3.20.0180.00020.05
8.3.10.0000.01523.70
8.3.00.0140.00717.75
8.2.180.0080.00816.50
8.2.170.0130.00622.96
8.2.160.0150.00620.39
8.2.150.0060.00324.18
8.2.140.0070.00724.66
8.2.130.0080.00026.16
8.2.120.0060.01221.22
8.2.110.0060.00621.12
8.2.100.0040.00817.91
8.2.90.0040.00417.92
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0090.00018.07
8.2.40.0100.00018.02
8.2.30.0040.00418.09
8.2.20.0000.00717.84
8.2.10.0070.00018.03
8.2.00.0000.00817.81
8.1.280.0110.00325.92
8.1.270.0080.00024.01
8.1.260.0040.01526.35
8.1.250.0030.01628.09
8.1.240.0060.00322.46
8.1.230.0080.00421.01
8.1.220.0030.00517.74
8.1.210.0040.00418.84
8.1.200.0100.00317.35
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0000.00818.63
8.1.160.0060.00321.95
8.1.150.0040.00418.80
8.1.140.0070.00017.52
8.1.130.0070.00017.73
8.1.120.0020.00517.63
8.1.110.0040.00417.61
8.1.100.0070.00017.52
8.1.90.0000.00917.59
8.1.80.0000.00817.50
8.1.70.0030.00517.49
8.1.60.0060.00317.64
8.1.50.0030.00617.68
8.1.40.0040.00417.64
8.1.30.0000.00817.78
8.1.20.0070.00017.71
8.1.10.0030.00617.71
8.1.00.0000.00817.60
8.0.300.0000.00719.66
8.0.290.0040.00416.88
8.0.280.0040.00418.43
8.0.270.0050.00317.19
8.0.260.0060.00017.23
8.0.250.0030.00316.98
8.0.240.0030.00317.16
8.0.230.0040.00417.07
8.0.220.0070.00016.95
8.0.210.0040.00416.95
8.0.200.0030.00317.13
8.0.190.0000.00817.08
8.0.180.0000.00716.99
8.0.170.0000.00816.98
8.0.160.0050.00317.11
8.0.150.0050.00316.93
8.0.140.0110.00017.01
8.0.130.0030.00313.52
8.0.120.0030.00616.98
8.0.110.0080.00016.96
8.0.100.0040.00417.05
8.0.90.0080.00016.99
8.0.80.0090.00917.10
8.0.70.0040.00416.96
8.0.60.0040.00416.83
8.0.50.0050.00216.93
8.0.30.0100.00917.54
8.0.20.0170.00517.52
8.0.10.0000.00717.20
8.0.00.0100.01416.90
7.4.330.0000.00515.02
7.4.320.0030.00316.79
7.4.300.0030.00316.67
7.4.290.0030.00516.64
7.4.280.0060.00616.73
7.4.270.0040.00416.84
7.4.260.0040.00416.73
7.4.250.0000.00716.79
7.4.240.0020.00516.84
7.4.230.0030.00316.92
7.4.220.0120.00616.94
7.4.210.0080.00816.67
7.4.200.0030.00316.91
7.4.160.0150.00016.73
7.4.150.0070.01017.40
7.4.140.0200.00517.86
7.4.130.0100.01116.60
7.4.120.0060.01216.67
7.4.110.0100.00716.57
7.4.100.0070.01016.50
7.4.90.0130.00516.68
7.4.80.0080.00919.39
7.4.70.0160.00716.87
7.4.60.0070.01016.83
7.4.50.0000.00716.44
7.4.40.0130.01016.56
7.4.30.0120.00316.85
7.4.00.0050.01215.13
7.3.330.0000.00713.39
7.3.320.0050.00013.33
7.3.310.0040.00416.49
7.3.300.0000.00716.43
7.3.290.0150.00416.48
7.3.280.0090.00516.40
7.3.270.0080.00817.40
7.3.260.0070.01016.75
7.3.250.0080.00816.54
7.3.240.0140.00716.86
7.3.230.0090.00616.86
7.3.210.0080.01016.30
7.3.200.0130.01019.39
7.3.190.0070.01116.81
7.3.180.0110.00816.48
7.3.170.0060.01016.51
7.3.160.0100.00716.67
7.3.120.0040.01415.07
7.3.110.0030.01114.88
7.3.100.0060.00914.82
7.3.90.0120.00615.09
7.3.80.0040.01214.99
7.3.70.0000.01214.64
7.3.60.0120.00314.69
7.3.50.0000.01114.98
7.3.40.0030.00915.03
7.3.30.0120.00315.05
7.3.20.0140.00016.94
7.3.10.0060.00916.85
7.3.00.0100.00316.95
7.2.330.0070.01016.68
7.2.320.0040.01416.97
7.2.310.0090.00916.82
7.2.300.0070.01016.59
7.2.290.0150.00016.57
7.2.250.0110.00715.41
7.2.240.0080.00814.99
7.2.230.0000.01415.19
7.2.220.0120.00915.22
7.2.210.0030.01214.89
7.2.200.0070.00715.17
7.2.190.0060.00915.21
7.2.180.0070.00715.23
7.2.170.0090.00615.24
7.2.60.0030.01316.96
7.2.00.0040.01219.50
7.1.330.0040.01115.64
7.1.320.0080.00316.25
7.1.310.0060.00916.14
7.1.300.0070.00715.78
7.1.290.0070.00716.03
7.1.280.0110.00015.80
7.1.270.0120.00315.86
7.1.260.0030.01116.02
7.1.200.0030.00715.89
7.1.100.0050.00518.30
7.1.70.0030.00617.50
7.1.60.0080.01519.40
7.1.50.0100.01317.12
7.1.00.0000.08022.35
7.0.200.0290.01014.85
7.0.140.0200.06022.07
7.0.60.0100.08320.07
7.0.50.0100.04017.93
7.0.40.0130.07019.98
7.0.30.0270.08320.11
7.0.20.0200.04720.03
7.0.10.0070.08320.22
7.0.00.0030.08320.21
5.6.280.0030.07321.12
5.6.210.0100.04720.71
5.6.200.0000.06718.18
5.6.190.0100.05720.64
5.6.180.0230.03720.41
5.6.170.0200.05020.71
5.6.160.0000.09320.49
5.6.150.0100.06318.21
5.6.140.0070.08018.09
5.6.130.0100.08018.23
5.6.120.0000.09320.99
5.6.110.0070.09020.98
5.6.100.0100.08021.02
5.6.90.0100.05321.09
5.6.80.0100.07020.35
5.5.350.0170.08320.32
5.5.340.0100.05018.01
5.5.330.0070.05320.28
5.5.320.0100.07720.28
5.5.310.0370.03320.29
5.5.300.0130.07317.90
5.5.290.0100.07717.95
5.5.280.0170.07020.84
5.5.270.0130.07020.76
5.5.260.0100.08320.75
5.5.250.0030.07320.61
5.5.240.0170.06720.15
5.4.450.0130.04019.24
5.4.440.0130.05019.45
5.4.430.0170.04019.48
5.4.420.0100.05719.57
5.4.410.0270.03719.28
5.4.400.0130.04719.09
5.4.390.0030.05319.06
5.4.380.0400.07018.68
5.4.370.0230.06018.49
5.4.360.0370.05318.80
5.4.350.0400.07018.68
5.4.340.0300.05318.63
5.4.320.0080.03512.46
5.4.310.0050.03912.45
5.4.300.0080.03812.46
5.4.290.0060.03812.45
5.4.280.0040.03812.35
5.4.270.0050.03712.35
5.4.260.0050.04012.35
5.4.250.0080.03712.35
5.4.240.0050.03712.35
5.4.230.0090.03512.34
5.4.220.0070.03412.34
5.4.210.0040.03712.34
5.4.200.0050.03912.34
5.4.190.0060.03612.34
5.4.180.0040.04812.34
5.4.170.0130.03812.35
5.4.160.0070.03512.35
5.4.150.0070.03612.34
5.4.140.0080.03712.03
5.4.130.0040.04012.01
5.4.120.0060.03711.97
5.4.110.0060.03511.97
5.4.100.0070.03511.96
5.4.90.0050.03811.96
5.4.80.0030.03911.96
5.4.70.0040.03611.96
5.4.60.0060.05211.97
5.4.50.0090.03611.96
5.4.40.0060.04511.95
5.4.30.0100.03811.95
5.4.20.0060.03411.95
5.4.10.0050.04311.95
5.4.00.0030.03811.44
5.3.290.0070.03912.80
5.3.280.0040.04512.71
5.3.270.0030.04612.73
5.3.260.0030.04212.72
5.3.250.0080.04512.72
5.3.240.0050.03812.72
5.3.230.0060.03712.71
5.3.220.0070.04512.68
5.3.210.0050.03912.68
5.3.200.0070.04112.68
5.3.190.0110.04812.68
5.3.180.0070.04312.67
5.3.170.0070.03612.66
5.3.160.0090.04812.67
5.3.150.0100.05112.67
5.3.140.0160.04212.66
5.3.130.0070.03912.66
5.3.120.0070.04112.66
5.3.110.0060.03912.66
5.3.100.0050.03812.12
5.3.90.0040.03712.09
5.3.80.0070.03512.07
5.3.70.0040.03712.07
5.3.60.0060.03612.06
5.3.50.0060.04012.00
5.3.40.0060.03712.00
5.3.30.0090.03111.95
5.3.20.0060.04311.73
5.3.10.0030.03711.70
5.3.00.0080.04311.69
5.2.170.0040.0309.19
5.2.160.0090.0319.19
5.2.150.0070.0289.19
5.2.140.0040.0329.19
5.2.130.0040.0309.14
5.2.120.0050.0359.14
5.2.110.0060.0359.15
5.2.100.0050.0289.14
5.2.90.0040.0309.15
5.2.80.0090.0369.15
5.2.70.0050.0309.14
5.2.60.0100.0389.10
5.2.50.0080.0299.07
5.2.40.0040.0299.05
5.2.30.0030.0319.03
5.2.20.0030.0309.02
5.2.10.0060.0268.93
5.2.00.0050.0298.79
5.1.60.0070.0218.07
5.1.50.0030.0258.07
5.1.40.0050.0248.05
5.1.30.0070.0338.41
5.1.20.0030.0278.42
5.1.10.0060.0238.15
5.1.00.0050.0258.15
5.0.50.0050.0196.63
5.0.40.0050.0186.49
5.0.30.0040.0306.30
5.0.20.0020.0236.27
5.0.10.0030.0216.25
5.0.00.0050.0356.24
4.4.90.0020.0174.78
4.4.80.0030.0154.76
4.4.70.0050.0164.75
4.4.60.0020.0184.75
4.4.50.0000.0194.77
4.4.40.0030.0264.71
4.4.30.0020.0184.75
4.4.20.0020.0224.85
4.4.10.0070.0154.85
4.4.00.0060.0274.76
4.3.110.0040.0214.67
4.3.100.0050.0334.67
4.3.90.0040.0234.64
4.3.80.0030.0264.59
4.3.70.0030.0224.63
4.3.60.0040.0204.63
4.3.50.0040.0164.63
4.3.40.0060.0244.54
4.3.30.0060.0153.29
4.3.20.0030.0173.27
4.3.10.0030.0153.23
4.3.00.0030.01316.02

preferences:
44.62 ms | 401 KiB | 5 Q