3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRange($ip) { $split = explode('.',$ip); $final = array(); foreach ($split as $block) { $pos = strpos($block, '*'); if ($pos !== false) { $num = substr($block, 0, $pos); $l = strlen($block); $min = (int) min(255,str_pad($num,3,'0')); $max = (int) min(255,str_pad($num,3,'9')); $minip = $final; $minip[] = $min; $minip = array_pad($minip, 4, 0); $maxip = $final; $maxip[] = $max; $maxip = array_pad($maxip, 4, 255); return array(implode('.',$minip),implode('.',$maxip)); } $final[] = $block; } return array(implode('.',$final),implode('.',$final)); // No range found. } print_R(getRange("255.*"));

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.00918.18
8.3.50.0160.00622.04
8.3.40.0090.00618.84
8.3.30.0090.00619.07
8.3.20.0070.00020.29
8.3.10.0000.00822.09
8.3.00.0040.00422.43
8.2.180.0090.00616.50
8.2.170.0140.00322.96
8.2.160.0110.00420.94
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0040.00422.29
8.2.100.0040.00819.63
8.2.90.0080.00019.34
8.2.80.0000.00817.97
8.2.70.0000.01017.75
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0080.00018.28
8.2.30.0040.00418.13
8.2.20.0050.00317.66
8.2.10.0080.00019.57
8.2.00.0000.00717.75
8.1.280.0110.00725.92
8.1.270.0080.00022.06
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00324.01
8.1.230.0040.00819.08
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0030.00517.52
8.1.180.0030.00618.67
8.1.170.0040.00418.50
8.1.160.0030.00622.03
8.1.150.0040.00418.65
8.1.140.0070.00017.46
8.1.130.0040.00417.80
8.1.120.0000.00717.45
8.1.110.0030.00617.46
8.1.100.0000.00717.43
8.1.90.0030.00317.48
8.1.80.0030.00517.47
8.1.70.0000.00717.42
8.1.60.0040.00417.51
8.1.50.0040.00417.46
8.1.40.0060.00317.39
8.1.30.0030.00517.53
8.1.20.0000.00917.57
8.1.10.0040.00417.55
8.1.00.0020.00517.46
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0030.00318.34
8.0.270.0030.00317.20
8.0.260.0070.00016.75
8.0.250.0000.00716.96
8.0.240.0040.00316.95
8.0.230.0070.00016.95
8.0.220.0030.00316.86
8.0.210.0070.00016.79
8.0.200.0030.00316.97
8.0.190.0040.00416.88
8.0.180.0030.00416.83
8.0.170.0030.00616.84
8.0.160.0050.00316.89
8.0.150.0000.00916.86
8.0.140.0000.00816.87
8.0.130.0000.00613.32
8.0.120.0040.00416.90
8.0.110.0050.00316.79
8.0.100.0040.00416.79
8.0.90.0070.00016.70
8.0.80.0060.00916.79
8.0.70.0050.00216.75
8.0.60.0020.00516.74
8.0.50.0020.00516.73
8.0.30.0160.00816.96
8.0.20.0060.01217.40
8.0.10.0040.00416.90
8.0.00.0070.01316.62
7.4.330.0020.00215.00
7.4.320.0060.00016.62
7.4.300.0000.00616.41
7.4.290.0040.00416.50
7.4.280.0080.00016.49
7.4.270.0000.00716.53
7.4.260.0000.00716.59
7.4.250.0030.00516.58
7.4.240.0020.00616.55
7.4.230.0070.00016.69
7.4.220.0180.00016.55
7.4.210.0070.00716.60
7.4.200.0070.00016.54
7.4.190.0070.00016.39
7.4.160.0000.01616.36
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0100.01016.40
7.4.120.0050.01416.44
7.4.110.0080.01216.31
7.4.100.0110.00616.51
7.4.90.0130.00416.55
7.4.80.0030.01419.39
7.4.70.0110.00716.46
7.4.60.0090.00916.42
7.4.50.0030.00516.36
7.4.40.0070.01022.77
7.4.30.0070.01016.43
7.4.00.0060.01114.96
7.3.330.0030.00313.24
7.3.320.0050.00013.45
7.3.310.0040.00416.48
7.3.300.0030.00316.43
7.3.290.0130.00316.41
7.3.280.0050.00916.35
7.3.270.0170.00717.40
7.3.260.0120.00616.45
7.3.250.0080.01316.54
7.3.240.0110.00716.27
7.3.230.0140.00916.42
7.3.210.0110.00716.43
7.3.200.0040.01719.39
7.3.190.0110.00716.66
7.3.180.0070.00716.64
7.3.170.0120.00416.44
7.3.160.0070.01016.37
7.3.120.0050.01114.91
7.3.110.0030.01414.51
7.3.100.0030.01214.95
7.3.90.0000.01414.88
7.3.80.0000.01314.56
7.3.70.0060.00914.69
7.3.60.0030.00614.90
7.3.50.0030.00714.98
7.3.40.0030.00914.64
7.3.30.0050.00314.73
7.3.20.0060.00616.72
7.3.10.0040.00716.61
7.3.00.0100.00316.61
7.2.330.0080.00816.57
7.2.320.0060.01216.81
7.2.310.0070.01016.78
7.2.300.0140.00616.57
7.2.290.0100.01016.89
7.2.250.0110.00715.22
7.2.240.0040.01515.04
7.2.230.0000.01714.91
7.2.220.0000.01315.08
7.2.210.0100.00315.20
7.2.200.0060.00915.13
7.2.190.0080.00415.14
7.2.180.0120.00014.95
7.2.170.0060.00615.17
7.2.00.0080.00818.93
7.1.330.0040.00915.84
7.1.320.0100.00315.86
7.1.310.0100.00715.61
7.1.300.0040.00715.96
7.1.290.0000.01415.64
7.1.280.0000.00815.64
7.1.270.0080.00415.66
7.1.260.0070.00715.65
7.1.100.0040.00818.18
7.1.70.0000.01317.19
7.1.60.0060.01919.82
7.1.50.0070.01116.79
7.1.00.0030.07722.37
7.0.200.0030.01316.84
7.0.140.0000.07722.13
7.0.100.0130.07019.97
7.0.90.0100.07320.06
7.0.80.0230.06719.95
7.0.70.0100.07320.03
7.0.60.0130.04720.12
7.0.50.0070.06720.73
7.0.40.0170.07720.33
7.0.30.0100.05020.33
7.0.20.0070.07320.38
7.0.10.0030.04720.34
7.0.00.0100.06020.34
5.6.280.0030.07020.82
5.6.250.0100.04320.72
5.6.240.0000.08320.66
5.6.230.0030.09020.66
5.6.220.0030.07320.67
5.6.210.0030.08320.68
5.6.200.0170.07021.02
5.6.190.0200.07020.96
5.6.180.0100.07721.05
5.6.170.0130.06321.14
5.6.160.0200.06720.96
5.6.150.0130.06720.95
5.6.140.0100.08021.18
5.6.130.0000.09020.96
5.6.120.0030.08720.97
5.6.110.0030.08720.96
5.6.100.0070.06020.96
5.6.90.0130.07321.10
5.6.80.0030.08020.54
5.6.70.0130.07320.50
5.6.60.0070.07720.32
5.6.50.0030.08020.36
5.6.40.0030.08720.38
5.6.30.0170.07020.39
5.6.20.0070.07720.45
5.6.10.0100.07020.32
5.6.00.0100.08020.43
5.5.380.0070.05020.37
5.5.370.0230.04320.52
5.5.360.0170.07320.36
5.5.350.0030.09020.53
5.5.340.0070.07320.81
5.5.330.0170.07320.89
5.5.320.0130.07720.91
5.5.310.0100.06320.89
5.5.300.0130.07320.74
5.5.290.0200.07320.90
5.5.280.0070.08320.85
5.5.270.0130.05020.73
5.5.260.0130.07020.73
5.5.250.0170.07320.64
5.5.240.0000.07720.23
5.5.230.0000.08320.29
5.5.220.0100.08020.27
5.5.210.0100.06720.33
5.5.200.0130.07020.29
5.5.190.0070.07020.09
5.5.180.0170.06720.12
5.5.160.0100.07320.25
5.5.150.0100.07320.18
5.5.140.0200.06320.12
5.5.130.0070.07020.13
5.5.120.0100.08020.12
5.5.110.0070.07720.24
5.5.100.0070.08319.96
5.5.90.0070.07720.11
5.5.80.0130.07319.96
5.5.70.0000.06320.07
5.5.60.0100.07020.07
5.5.50.0030.05020.06
5.5.40.0100.07320.03
5.5.30.0030.07320.17
5.5.20.0070.07020.07
5.5.10.0030.05720.05
5.5.00.0070.08320.03
5.4.450.0100.08319.47
5.4.440.0130.07019.18
5.4.430.0100.07719.46
5.4.420.0130.07019.50
5.4.410.0070.06719.23
5.4.400.0000.08319.14
5.4.390.0030.08018.86
5.4.380.0100.05719.16
5.4.370.0070.08019.21
5.4.360.0170.06318.95
5.4.350.0070.07718.88
5.4.340.0070.08018.95
5.4.320.0130.06319.10
5.4.310.0070.07319.05
5.4.300.0070.07719.03
5.4.290.0030.08019.12
5.4.280.0130.07319.23
5.4.270.0070.07719.13
5.4.260.0070.04318.85
5.4.250.0100.06719.18
5.4.240.0030.07019.16
5.4.230.0030.04019.20
5.4.220.0130.06719.02
5.4.210.0170.06319.16
5.4.200.0030.08319.23
5.4.190.0100.07318.87
5.4.180.0130.07018.89
5.4.170.0070.04719.25
5.4.160.0100.06718.86
5.4.150.0130.04019.03
5.4.140.0130.06716.36
5.4.130.0030.04016.28
5.4.120.0100.07016.39
5.4.110.0030.05016.45
5.4.100.0070.07716.43
5.4.90.0070.07016.47
5.4.80.0070.06716.45
5.4.70.0030.07016.45
5.4.60.0030.07716.34
5.4.50.0070.06716.48
5.4.40.0170.03316.30
5.4.30.0030.07316.48
5.4.20.0100.06716.33
5.4.10.0100.07316.44
5.4.00.0130.06015.85
5.3.290.0070.06714.74
5.3.280.0170.06714.73
5.3.270.0000.04314.63
5.3.260.0030.08014.72
5.3.250.0070.07014.62
5.3.240.0070.07014.64
5.3.230.0070.07714.75
5.3.220.0170.06014.64
5.3.210.0030.07714.64
5.3.200.0030.08014.51
5.3.190.0100.07014.72
5.3.180.0030.07014.59
5.3.170.0100.07314.70
5.3.160.0030.07314.51
5.3.150.0070.07014.55
5.3.140.0030.06714.50
5.3.130.0070.08014.57
5.3.120.0230.05314.55
5.3.110.0070.07014.68
5.3.100.0100.07314.04
5.3.90.0070.07013.98
5.3.80.0100.07314.12
5.3.70.0070.07014.06
5.3.60.0100.07014.04
5.3.50.0030.07714.02
5.3.40.0100.04713.88
5.3.30.0030.04313.94
5.3.20.0030.07013.70
5.3.10.0100.07013.77
5.3.00.0100.06713.58
5.2.170.0030.06311.09
5.2.160.0000.05711.27
5.2.150.0000.06711.02
5.2.140.0070.06011.21
5.2.130.0100.06311.05
5.2.120.0000.04711.10
5.2.110.0100.05711.25
5.2.100.0070.05011.11
5.2.90.0030.06011.18
5.2.80.0000.07011.04
5.2.70.0070.04711.17
5.2.60.0130.05710.92
5.2.50.0030.04711.02
5.2.40.0030.05710.89
5.2.30.0100.06011.04
5.2.20.0100.05011.07
5.2.10.0100.05710.99
5.2.00.0070.05710.77
5.1.60.0030.05310.08
5.1.50.0030.0309.86
5.1.40.0070.05310.09
5.1.30.0100.04710.29
5.1.20.0070.05010.28
5.1.10.0000.05310.14
5.1.00.0030.03710.08
5.0.50.0030.0439.85
5.0.40.0070.0409.85
5.0.30.0030.0639.85
5.0.20.0070.0379.85
5.0.10.0070.0409.85
5.0.00.0000.0579.85
4.4.90.0030.0339.85
4.4.80.0000.0379.85
4.4.70.0000.0379.85
4.4.60.0100.0309.85
4.4.50.0030.0339.85
4.4.40.0000.0579.85
4.4.30.0100.0309.85
4.4.20.0000.0379.85
4.4.10.0000.0379.85
4.4.00.0000.0579.85
4.3.110.0030.0239.85
4.3.100.0030.0339.85
4.3.90.0070.0339.85
4.3.80.0070.0479.85
4.3.70.0000.0279.85
4.3.60.0070.0309.85
4.3.50.0030.0339.85
4.3.40.0030.0509.85
4.3.30.0000.0339.85
4.3.20.0000.0379.85
4.3.10.0000.0379.85
4.3.00.0000.0309.85

preferences:
48.11 ms | 401 KiB | 5 Q