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'; }

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.0110.01116.63
8.3.50.0130.00723.00
8.3.40.0130.00318.92
8.3.30.0090.01218.96
8.3.20.0150.00420.15
8.3.10.0060.01323.53
8.3.00.0030.01717.63
8.2.180.0120.00625.92
8.2.170.0080.01122.96
8.2.160.0120.00920.53
8.2.150.0120.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00926.16
8.2.120.0000.00721.08
8.2.110.0000.01019.30
8.2.100.0080.00418.03
8.2.90.0050.00318.03
8.2.80.0000.00917.97
8.2.70.0000.00717.93
8.2.60.0070.00018.05
8.2.50.0000.00818.10
8.2.40.0060.00620.53
8.2.30.0050.00218.09
8.2.20.0070.00017.69
8.2.10.0040.00418.20
8.2.00.0020.00517.80
8.1.280.0090.00625.92
8.1.270.0040.00423.85
8.1.260.0060.01226.35
8.1.250.0070.01028.09
8.1.240.0040.00423.98
8.1.230.0110.00020.95
8.1.220.0000.00917.74
8.1.210.0040.00419.04
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0000.00818.71
8.1.160.0000.00921.96
8.1.150.0050.00318.92
8.1.140.0040.00417.63
8.1.130.0030.00317.91
8.1.120.0070.00017.57
8.1.110.0040.00417.61
8.1.100.0000.00717.61
8.1.90.0000.00717.61
8.1.80.0000.00817.55
8.1.70.0040.00417.54
8.1.60.0030.00717.77
8.1.50.0040.00417.70
8.1.40.0030.00617.59
8.1.30.0040.00417.84
8.1.20.0040.00417.65
8.1.10.0020.00517.64
8.1.00.0040.00417.47
8.0.300.0000.00719.84
8.0.290.0050.00316.88
8.0.280.0030.00518.42
8.0.270.0030.00317.32
8.0.260.0030.00317.14
8.0.250.0000.00717.00
8.0.240.0000.00717.07
8.0.230.0070.00017.11
8.0.220.0000.00716.89
8.0.210.0030.00316.98
8.0.200.0050.00217.05
8.0.190.0080.00017.00
8.0.180.0070.00017.00
8.0.170.0040.00416.99
8.0.160.0000.00716.86
8.0.150.0040.00316.90
8.0.140.0030.00716.96
8.0.130.0000.00813.44
8.0.120.0040.00416.98
8.0.110.0000.00716.92
8.0.100.0000.00716.97
8.0.90.0050.00316.97
8.0.80.0070.01317.03
8.0.70.0040.00416.92
8.0.60.0020.00517.07
8.0.50.0040.00416.87
8.0.30.0070.01517.21
8.0.20.0110.00817.40
8.0.10.0050.00317.01
8.0.00.0090.01116.74
7.4.330.0050.00015.00
7.4.320.0000.00616.75
7.4.300.0030.00316.78
7.4.290.0040.00416.81
7.4.280.0000.00816.77
7.4.270.0040.00416.70
7.4.260.0040.00416.78
7.4.250.0070.00016.68
7.4.240.0020.00516.75
7.4.230.0050.00316.79
7.4.220.0060.01316.79
7.4.210.0090.00616.88
7.4.200.0050.00216.51
7.4.160.0060.00916.59
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0100.00716.53
7.4.120.0110.00716.53
7.4.110.0120.00616.64
7.4.100.0100.00716.77
7.4.90.0100.01316.76
7.4.80.0100.01219.39
7.4.70.0100.01516.71
7.4.60.0110.01116.68
7.4.50.0000.00716.80
7.4.40.0030.01316.47
7.4.30.0120.00316.67
7.4.00.0070.00715.20
7.3.330.0000.00613.32
7.3.320.0000.00513.24
7.3.310.0030.00316.57
7.3.300.0000.00616.40
7.3.290.0070.00816.40
7.3.280.0110.00716.41
7.3.270.0100.00717.40
7.3.260.0170.00716.80
7.3.250.0090.00716.62
7.3.240.0090.00616.88
7.3.230.0060.01116.62
7.3.210.0080.00816.64
7.3.200.0060.01616.75
7.3.190.0080.00916.30
7.3.180.0060.00916.36
7.3.170.0060.01016.70
7.3.160.0130.00316.46
7.3.00.0000.01616.90
7.2.330.0100.00716.97
7.2.320.0140.00716.62
7.2.310.0100.00716.75
7.2.300.0120.01116.85
7.2.290.0190.00316.62
7.2.130.0080.00617.11
7.2.120.0000.01717.09
7.2.110.0070.00717.03
7.2.100.0080.00417.22
7.2.90.0030.01017.17
7.2.80.0110.00416.90
7.2.70.0060.00917.05
7.2.60.0030.01017.12
7.2.50.0090.00316.92
7.2.40.0090.00917.00
7.2.30.0090.00616.99
7.2.20.0030.01017.07
7.2.10.0070.00417.16
7.2.00.0030.00718.42
7.1.250.0070.00715.81
7.1.240.0030.00715.84
7.1.230.0060.00915.97
7.1.220.0100.00315.91
7.1.210.0030.01216.16
7.1.200.0060.00615.80
7.1.190.0030.00915.88
7.1.180.0040.00815.80
7.1.170.0030.00616.05
7.1.160.0060.00616.00
7.1.150.0060.00615.92
7.1.140.0100.00316.02
7.1.130.0030.01316.11
7.1.120.0140.00015.94
7.1.110.0040.01216.07
7.1.100.0100.00517.25
7.1.90.0040.01115.69
7.1.80.0040.00815.74
7.1.70.0020.00916.65
7.1.60.0040.01517.65
7.1.50.0080.00816.51
7.1.40.0110.00615.61
7.1.30.0040.01116.08
7.1.20.0080.00316.15
7.1.10.0030.00616.15
7.1.00.0030.04319.13
7.0.330.0070.00415.56
7.0.320.0070.00415.09
7.0.310.0030.00615.39
7.0.300.0040.00815.38
7.0.290.0060.01015.65
7.0.280.0060.00915.24
7.0.270.0030.01015.54
7.0.260.0100.00015.48
7.0.250.0130.00015.55
7.0.240.0030.01015.59
7.0.230.0030.01315.59
7.0.220.0060.00615.37
7.0.210.0030.00715.63
7.0.200.0460.00714.97
7.0.190.0090.00315.11
7.0.180.0000.01215.36
7.0.170.0070.00715.40
7.0.160.0070.00715.48
7.0.150.0070.00715.76
7.0.140.0000.04318.65
7.0.130.0000.00715.40
7.0.120.0030.00815.41
7.0.110.0030.00915.28
7.0.100.0100.00315.61
7.0.90.0110.00015.48
7.0.80.0000.01415.39
7.0.70.0000.00815.26
7.0.60.0160.02617.61
7.0.50.0030.02516.65
7.0.40.0020.04216.63
7.0.30.0160.03316.89
7.0.20.0150.02916.90
7.0.10.0050.03216.85
7.0.00.0050.02716.87
5.6.380.0070.00713.91
5.6.370.0130.00014.29
5.6.360.0050.00314.36
5.6.350.0100.00314.23
5.6.340.0130.00014.22
5.6.330.0070.00714.44
5.6.320.0080.00413.82
5.6.310.0030.01014.39
5.6.300.0100.00614.09
5.6.290.0030.00614.04
5.6.280.0020.04217.68
5.6.270.0000.01814.25
5.6.260.0060.00614.39
5.6.250.0000.00814.03
5.6.240.0030.01014.67
5.6.230.0060.00614.54
5.6.220.0040.00814.38
5.6.210.0080.02317.49
5.6.200.0080.03916.31
5.6.190.0030.02317.35
5.6.180.0200.03217.53
5.6.170.0150.03217.28
5.6.160.0060.03317.34
5.6.150.0050.02116.22
5.6.140.0050.02316.12
5.6.130.0020.04216.23
5.6.120.0070.04117.66
5.6.110.0060.02317.70
5.6.100.0080.04117.66
5.6.90.0120.04217.58
5.6.80.0100.03717.53
5.6.70.0030.01014.46
5.6.60.0060.00914.34
5.6.50.0070.00314.08
5.6.40.0060.00314.16
5.6.30.0040.00914.01
5.6.20.0040.00714.05
5.6.10.0040.00914.46
5.6.00.0000.01714.32
5.5.380.0000.00710.91
5.5.370.0000.00611.02
5.5.360.0090.00311.00
5.5.350.0050.04415.68
5.5.340.0030.04714.34
5.5.330.0020.02715.63
5.5.320.0210.03315.69
5.5.310.0150.04415.68
5.5.300.0100.04214.57
5.5.290.0080.02314.54
5.5.280.0040.02015.97
5.5.270.0030.04015.92
5.5.260.0070.03815.96
5.5.250.0070.03315.90
5.5.240.0130.04115.67
5.5.230.0060.00311.22
5.5.220.0070.00311.18
5.5.210.0030.00711.02
5.5.200.0040.00810.82
5.5.190.0030.00811.06
5.5.180.0060.00011.23
5.5.170.0050.00510.78
5.5.160.0000.01210.82
5.5.150.0090.00310.95
5.5.140.0030.00710.89
5.5.130.0040.00410.88
5.5.120.0030.00711.26
5.5.110.0000.01111.25
5.5.100.0060.00610.91
5.5.90.0030.00711.04
5.5.80.0030.00611.16
5.5.70.0110.00010.77
5.5.60.0030.00710.89
5.5.50.0060.00010.97
5.5.40.0050.00510.70
5.5.30.0000.00711.02
5.5.20.0040.00811.06
5.5.10.0030.00710.99
5.5.00.0060.00611.18
5.4.450.0160.02615.17
5.4.440.0130.02815.30
5.4.430.0140.02915.33
5.4.420.0160.02515.35
5.4.410.0120.02415.16
5.4.400.0120.02215.03
5.4.390.0260.04014.96
5.4.380.0210.04314.79
5.4.370.0240.03514.94
5.4.360.0170.03014.79
5.4.350.0250.02814.92
5.4.340.0130.03314.87
5.4.330.0030.00710.74
5.4.320.0070.01911.74
5.4.310.0040.02611.66
5.4.300.0040.02211.70
5.4.290.0030.02511.60
5.4.280.0070.01711.71
5.4.270.0060.02211.70
5.4.260.0040.02411.68
5.4.250.0050.02711.47
5.4.240.0060.02111.66
5.4.230.0040.02211.65
5.4.220.0040.02211.56
5.4.210.0040.02111.61
5.4.200.0040.02311.65
5.4.190.0070.01911.72
5.4.180.0050.02011.68
5.4.170.0060.01911.64
5.4.160.0050.02211.68
5.4.150.0040.02311.68
5.4.140.0050.02111.62
5.4.130.0060.02011.55
5.4.120.0040.02111.38
5.4.110.0060.01911.54
5.4.100.0040.02311.61
5.4.90.0040.02111.47
5.4.80.0050.02111.46
5.4.70.0050.01911.54
5.4.60.0040.02211.53
5.4.50.0040.02311.54
5.4.40.0080.02211.38
5.4.30.0030.02411.56
5.4.20.0080.01711.52
5.4.10.0020.02111.51
5.4.00.0030.02311.18
5.3.290.0040.02311.59
5.3.280.0020.02311.66
5.3.270.0040.02211.51
5.3.260.0030.02211.65
5.3.250.0060.02011.60
5.3.240.0090.01811.59
5.3.230.0040.02011.60
5.3.220.0060.02011.51
5.3.210.0030.02811.54
5.3.200.0050.02311.52
5.3.190.0020.02711.59
5.3.180.0070.01911.61
5.3.170.0060.02111.61
5.3.160.0060.02111.63
5.3.150.0060.01911.53
5.3.140.0060.02211.60
5.3.130.0080.02711.51
5.3.120.0030.03111.62
5.3.110.0040.02611.55
5.3.100.0050.03011.32
5.3.90.0050.02111.29
5.3.80.0060.02011.16
5.3.70.0030.02211.15
5.3.60.0020.02411.31
5.3.50.0030.02411.12
5.3.40.0040.02211.17
5.3.30.0050.01911.19
5.3.20.0050.02211.09
5.3.10.0060.01910.97
5.3.00.0050.02210.96
5.2.170.0070.0209.71
5.2.160.0020.0179.71
5.2.150.0030.0199.71
5.2.140.0050.0219.71
5.2.130.0040.0179.69
5.2.120.0050.0149.69
5.2.110.0040.0219.70
5.2.100.0060.0169.69
5.2.90.0070.0179.69
5.2.80.0070.0169.69
5.2.70.0060.0229.69
5.2.60.0070.0209.67
5.2.50.0060.0189.65
5.2.40.0020.0209.64
5.2.30.0020.0189.63
5.2.20.0040.0179.62
5.2.10.0020.0189.58
5.2.00.0040.0199.51
5.1.60.0020.0159.15
5.1.50.0040.0149.14
5.1.40.0010.0179.14
5.1.30.0050.0159.31
5.1.20.0040.0159.32
5.1.10.0060.0149.19
5.1.00.0020.0189.19
5.0.50.0050.0098.43
5.0.40.0050.0098.35
5.0.30.0060.0158.26
5.0.20.0040.0108.25
5.0.10.0040.0108.23
5.0.00.0020.0188.23
4.4.90.0020.0107.51
4.4.80.0010.0117.50
4.4.70.0020.0097.49
4.4.60.0040.0087.50
4.4.50.0010.0107.50
4.4.40.0020.0167.47
4.4.30.0040.0097.50
4.4.20.0010.0107.54
4.4.10.0010.0097.54
4.4.00.0030.0147.50
4.3.110.0040.0077.45
4.3.100.0020.0097.45
4.3.90.0050.0077.44
4.3.80.0030.0157.41
4.3.70.0010.0107.43
4.3.60.0010.0117.43
4.3.50.0030.0107.43
4.3.40.0020.0147.39
4.3.30.0030.0096.76
4.3.20.0010.0106.75
4.3.10.0010.0116.73
4.3.00.0000.01113.13

preferences:
46.71 ms | 401 KiB | 5 Q