3v4l.org

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

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.01216.63
8.3.60.0190.00316.63
8.3.50.0110.00523.01
8.3.40.0080.00818.75
8.3.30.0160.00719.09
8.3.20.0150.00420.34
8.3.10.0160.00323.53
8.3.00.0150.00417.63
8.2.180.0140.00717.00
8.2.170.0080.01122.96
8.2.160.0070.01420.47
8.2.150.0130.00324.18
8.2.140.0130.00624.66
8.2.130.0060.01026.16
8.2.120.0040.00421.07
8.2.110.0030.00719.16
8.2.100.0040.00818.03
8.2.90.0030.00517.97
8.2.80.0050.00317.97
8.2.70.0000.00817.93
8.2.60.0060.00318.05
8.2.50.0080.00019.35
8.2.40.0030.00620.45
8.2.30.0000.00717.95
8.2.20.0000.00817.89
8.2.10.0050.00318.19
8.2.00.0000.00717.75
8.1.280.0100.01025.92
8.1.270.0040.00423.74
8.1.260.0070.01026.35
8.1.250.0120.00628.09
8.1.240.0130.01023.81
8.1.230.0060.00620.89
8.1.220.0000.00817.79
8.1.210.0000.00919.04
8.1.200.0060.00317.47
8.1.190.0000.00917.23
8.1.180.0030.00518.10
8.1.170.0000.00918.63
8.1.160.0110.00222.03
8.1.150.0030.00518.78
8.1.140.0000.00717.52
8.1.130.0000.00717.86
8.1.120.0070.00017.61
8.1.110.0000.00717.50
8.1.100.0000.00717.59
8.1.90.0000.00717.64
8.1.80.0080.00017.48
8.1.70.0000.00817.61
8.1.60.0060.00317.72
8.1.50.0040.00417.66
8.1.40.0080.00017.68
8.1.30.0040.00417.80
8.1.20.0040.00417.69
8.1.10.0020.00517.52
8.1.00.0000.00817.64
8.0.300.0000.00820.07
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0080.00017.28
8.0.260.0070.00017.32
8.0.250.0000.00716.98
8.0.240.0060.00017.06
8.0.230.0030.00317.05
8.0.220.0000.00716.93
8.0.210.0000.00716.93
8.0.200.0000.00717.09
8.0.190.0030.00616.96
8.0.180.0040.00417.02
8.0.170.0070.00017.04
8.0.160.0040.00416.88
8.0.150.0030.00316.92
8.0.140.0000.00917.04
8.0.130.0040.00413.46
8.0.120.0060.00317.02
8.0.110.0070.00016.90
8.0.100.0000.00716.92
8.0.90.0040.00416.90
8.0.80.0090.00917.02
8.0.70.0000.00816.89
8.0.60.0050.00317.06
8.0.50.0030.00516.96
8.0.30.0090.01017.09
8.0.20.0100.00817.40
8.0.10.0040.00417.05
8.0.00.0130.00516.96
7.4.330.0020.00215.18
7.4.320.0060.00016.61
7.4.300.0060.00016.81
7.4.290.0070.00016.63
7.4.280.0040.00716.79
7.4.270.0050.00216.72
7.4.260.0000.00716.79
7.4.250.0040.00416.70
7.4.240.0060.00216.64
7.4.230.0030.00316.90
7.4.220.0160.00916.67
7.4.210.0110.00316.91
7.4.200.0000.00716.70
7.4.160.0110.00616.54
7.4.150.0060.01317.40
7.4.140.0130.00717.86
7.4.130.0130.01016.77
7.4.120.0090.00916.86
7.4.110.0090.00916.65
7.4.100.0150.00416.66
7.4.90.0030.01416.57
7.4.80.0040.02219.39
7.4.70.0190.00316.58
7.4.60.0070.01616.73
7.4.50.0080.00016.75
7.4.40.0050.01116.70
7.4.30.0080.00816.71
7.4.00.0000.01515.07
7.3.330.0060.00013.15
7.3.320.0030.00313.34
7.3.310.0000.00716.41
7.3.300.0070.00016.25
7.3.290.0030.01316.38
7.3.280.0090.00716.41
7.3.270.0130.00317.40
7.3.260.0090.01216.86
7.3.240.0040.01216.57
7.3.230.0150.00616.71
7.3.210.0100.00716.41
7.3.200.0060.00919.39
7.3.190.0090.00816.82
7.3.180.0100.00616.43
7.3.170.0000.01516.67
7.3.160.0130.00316.62
7.2.330.0120.00816.65
7.2.320.0140.00316.86
7.2.310.0100.00716.95
7.2.300.0060.01016.81
7.2.290.0120.00916.80
7.2.60.0090.00617.13
7.1.200.0040.00815.77
7.1.100.0060.00318.32
7.1.70.0000.00817.54
7.1.60.0080.00819.40
7.1.50.0090.01617.28
7.1.00.0030.07722.37
7.0.200.0550.00414.46
7.0.140.0130.06322.01
7.0.60.0100.07719.93
7.0.50.0100.03717.93
7.0.40.0100.08720.23
7.0.30.0270.06020.18
7.0.20.0230.07020.11
7.0.10.0070.08720.18
7.0.00.0000.04720.11
5.6.280.0100.06721.14
5.6.210.0130.06720.65
5.6.200.0100.06318.16
5.6.190.0070.04320.77
5.6.180.0300.07020.41
5.6.170.0230.03720.49
5.6.160.0100.08320.72
5.6.150.0030.07718.21
5.6.140.0000.04018.21
5.6.130.0030.08018.07
5.6.120.0070.09021.11
5.6.110.0070.08020.97
5.6.100.0030.08320.98
5.6.90.0100.08321.10
5.6.80.0100.07720.41
5.5.350.0030.06320.43
5.5.340.0070.08317.98
5.5.330.0000.05720.13
5.5.320.0330.04720.24
5.5.310.0300.07320.12
5.5.300.0030.07718.01
5.5.290.0100.05317.92
5.5.280.0070.08720.85
5.5.270.0100.03320.62
5.5.260.0100.08020.72
5.5.250.0070.08020.70
5.5.240.0170.08020.26
5.4.450.0200.04319.41
5.4.440.0270.04319.39
5.4.430.0300.03719.25
5.4.420.0270.03719.13
5.4.410.0170.04719.41
5.4.400.0400.03718.81
5.4.390.0930.04719.06
5.4.380.0330.05018.79
5.4.370.0370.06018.55
5.4.360.0400.04718.68
5.4.350.0300.06018.57
5.4.340.0370.06018.70
5.4.320.0040.03712.45
5.4.310.0090.03512.45
5.4.300.0070.03612.45
5.4.290.0040.04012.45
5.4.280.0050.03612.35
5.4.270.0040.03812.35
5.4.260.0060.03612.35
5.4.250.0060.03712.35
5.4.240.0040.03712.35
5.4.230.0120.03112.34
5.4.220.0050.03712.34
5.4.210.0100.03112.34
5.4.200.0020.04112.34
5.4.190.0070.03412.34
5.4.180.0080.03312.34
5.4.170.0040.03712.35
5.4.160.0040.03912.34
5.4.150.0050.03612.34
5.4.140.0030.04012.03
5.4.130.0050.04212.02
5.4.120.0050.03511.97
5.4.110.0080.03611.97
5.4.100.0060.03511.96
5.4.90.0040.03811.96
5.4.80.0060.03611.97
5.4.70.0050.03411.96
5.4.60.0060.03411.96
5.4.50.0080.03211.96
5.4.40.0070.03311.96
5.4.30.0040.03711.95
5.4.20.0060.03511.95
5.4.10.0020.03811.95
5.4.00.0070.03411.44
5.3.290.0020.04312.80
5.3.280.0060.03712.71
5.3.270.0050.04012.73
5.3.260.0060.04312.72
5.3.250.0090.03412.72
5.3.240.0040.03812.72
5.3.230.0070.03612.71
5.3.220.0080.03512.68
5.3.210.0060.03912.68
5.3.200.0060.03712.68
5.3.190.0050.03812.68
5.3.180.0050.03712.67
5.3.170.0040.03912.67
5.3.160.0030.04012.68
5.3.150.0080.04312.67
5.3.140.0050.03712.66
5.3.130.0060.03812.66
5.3.120.0060.03812.66
5.3.110.0040.04212.66
5.3.100.0090.03612.12
5.3.90.0070.03612.08
5.3.80.0070.03512.08
5.3.70.0070.04112.07
5.3.60.0070.03512.07
5.3.50.0080.03412.00
5.3.40.0090.04512.00
5.3.30.0050.03511.96
5.3.20.0060.03511.74
5.3.10.0060.03411.70
5.3.00.0080.03311.69
5.2.170.0060.0299.19
5.2.160.0060.0289.19
5.2.150.0060.0299.19
5.2.140.0060.0309.19
5.2.130.0040.0319.14
5.2.120.0050.0299.15
5.2.110.0060.0299.16
5.2.100.0040.0309.15
5.2.90.0070.0289.15
5.2.80.0050.0319.15
5.2.70.0100.0249.15
5.2.60.0060.0299.10
5.2.50.0030.0329.07
5.2.40.0040.0309.05
5.2.30.0100.0339.02
5.2.20.0070.0399.02
5.2.10.0070.0378.92
5.2.00.0030.0308.78
5.1.60.0020.0298.06
5.1.50.0030.0278.06
5.1.40.0050.0258.04
5.1.30.0060.0288.39
5.1.20.0050.0298.41
5.1.10.0050.0278.14
5.1.00.0040.0258.14
5.0.50.0020.0226.61
5.0.40.0050.0206.48
5.0.30.0040.0316.29
5.0.20.0030.0206.26
5.0.10.0030.0236.24
5.0.00.0030.0376.22
4.4.90.0040.0164.78
4.4.80.0030.0154.75
4.4.70.0020.0164.75
4.4.60.0040.0154.75
4.4.50.0020.0164.77
4.4.40.0020.0264.70
4.4.30.0040.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0010.0174.66
4.3.90.0020.0154.63
4.3.80.0010.0264.59
4.3.70.0040.0154.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0010.0254.54
4.3.30.0040.0143.29
4.3.20.0010.0173.26
4.3.10.0020.0163.22
4.3.00.0030.01316.02

preferences:
74.29 ms | 401 KiB | 5 Q