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) 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.55*.0.1"));

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.63
8.3.50.0130.00517.39
8.3.40.0070.00718.70
8.3.30.0050.00918.51
8.3.20.0040.00418.83
8.3.10.0040.00420.52
8.3.00.0040.00417.63
8.2.180.0180.00016.75
8.2.170.0110.00422.96
8.2.160.0160.00021.93
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0040.00422.29
8.2.100.0130.00017.66
8.2.90.0000.00719.30
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0080.00018.02
8.2.20.0070.00017.79
8.2.10.0020.00517.63
8.2.00.0000.00817.73
8.1.280.0110.00425.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00817.52
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0070.00017.53
8.1.180.0040.00418.10
8.1.170.0040.00418.96
8.1.160.0000.00718.95
8.1.150.0000.00718.64
8.1.140.0040.00417.50
8.1.130.0000.00817.79
8.1.120.0000.00717.37
8.1.110.0000.00717.50
8.1.100.0090.00017.36
8.1.90.0000.00717.43
8.1.80.0040.00417.48
8.1.70.0030.00317.45
8.1.60.0000.00817.61
8.1.50.0000.00817.37
8.1.40.0000.00717.55
8.1.30.0000.00717.55
8.1.20.0030.00617.64
8.1.10.0000.00717.42
8.1.00.0070.00017.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.14
8.0.260.0070.00016.85
8.0.250.0040.00416.84
8.0.240.0040.00416.92
8.0.230.0030.00316.88
8.0.220.0070.00016.88
8.0.210.0040.00416.79
8.0.200.0000.00616.97
8.0.190.0040.00416.89
8.0.180.0050.00216.82
8.0.170.0000.00916.81
8.0.160.0040.00416.95
8.0.150.0060.00316.92
8.0.140.0120.00016.85
8.0.130.0050.00013.41
8.0.120.0000.00716.79
8.0.110.0000.00716.82
8.0.100.0000.00816.91
8.0.90.0040.00416.95
8.0.80.0080.00816.93
8.0.70.0040.00416.75
8.0.60.0050.00216.77
8.0.50.0070.00016.77
8.0.30.0080.01217.19
8.0.20.0150.00417.24
8.0.10.0040.00417.01
8.0.00.0150.00516.79
7.4.330.0050.00012.99
7.4.320.0030.00316.63
7.4.300.0040.00416.59
7.4.290.0000.00616.62
7.4.280.0000.00916.53
7.4.270.0050.00216.63
7.4.260.0030.00313.21
7.4.250.0030.00516.60
7.4.240.0030.00316.51
7.4.230.0000.00716.54
7.4.220.0150.00316.55
7.4.210.0070.00816.60
7.4.200.0070.00016.57
7.4.190.0030.00316.56
7.4.160.0110.00816.50
7.4.150.0060.01316.35
7.4.140.0120.00616.45
7.4.130.0090.00816.36
7.4.120.0130.00516.53
7.4.110.0130.00916.56
7.4.100.0110.00816.69
7.4.90.0060.01616.39
7.4.80.0070.01016.46
7.4.70.0100.01416.38
7.4.60.0060.01316.57
7.4.50.0000.00616.25
7.4.40.0000.01216.37
7.4.30.0150.00316.45
7.4.10.0130.00315.16
7.4.00.0110.00515.10
7.3.330.0030.00313.29
7.3.320.0030.00313.37
7.3.310.0000.00716.26
7.3.300.0000.00716.25
7.3.290.0070.00716.28
7.3.280.0100.00716.33
7.3.270.0140.00316.33
7.3.260.0140.01016.34
7.3.250.0110.01016.47
7.3.240.0100.00616.46
7.3.230.0070.01016.50
7.3.210.0030.01216.40
7.3.200.0130.00819.39
7.3.190.0090.01316.27
7.3.180.0120.00316.63
7.3.170.0110.00416.56
7.3.160.0060.00916.34
7.3.130.0040.01414.88
7.3.120.0070.01014.94
7.3.110.0110.00414.67
7.3.100.0200.00015.07
7.3.90.0000.01515.02
7.3.80.0030.00815.13
7.3.70.0030.00914.91
7.3.60.0070.01014.73
7.3.50.0030.00614.59
7.3.40.0030.00915.02
7.3.30.0090.00614.99
7.3.20.0030.00616.89
7.3.10.0110.00616.64
7.3.00.0110.00316.63
7.2.330.0090.00916.45
7.2.320.0090.00916.79
7.2.310.0090.01616.51
7.2.300.0130.00316.84
7.2.290.0050.01516.54
7.2.260.0070.01115.14
7.2.250.0040.01415.06
7.2.240.0040.01215.19
7.2.230.0090.00615.09
7.2.220.0120.00315.22
7.2.210.0030.01015.14
7.2.200.0060.00315.10
7.2.190.0000.01615.20
7.2.180.0030.01315.03
7.2.170.0070.01015.18
7.2.160.0130.00314.92
7.2.150.0040.00816.88
7.2.140.0090.00616.99
7.2.130.0100.00616.89
7.2.120.0050.01016.91
7.2.110.0070.00816.97
7.2.100.0060.00816.97
7.2.90.0090.00716.92
7.2.80.0090.00816.90
7.2.70.0090.00916.90
7.2.60.0080.00716.85
7.2.50.0060.01016.92
7.2.40.0120.00816.73
7.2.30.0060.00917.08
7.2.20.0070.00516.87
7.2.10.0060.00816.87
7.2.00.0120.00616.80
7.1.330.0040.01115.89
7.1.320.0070.01316.03
7.1.310.0030.01016.14
7.1.300.0060.00615.66
7.1.290.0130.00015.91
7.1.280.0070.00715.76
7.1.270.0120.00315.79
7.1.260.0080.00415.54
7.1.250.0070.00815.73
7.1.240.0060.00615.54
7.1.230.0090.00315.96
7.1.220.0030.00715.83
7.1.210.0070.01015.90
7.1.200.0060.00615.84
7.1.190.0070.00315.95
7.1.180.0030.00715.48
7.1.170.0100.00315.49
7.1.160.0030.01415.79
7.1.150.0090.00415.72
7.1.140.0070.00715.77
7.1.130.0060.00615.82
7.1.120.0070.00315.81
7.1.110.0060.00616.06
7.1.100.0090.00417.03
7.1.90.0060.01215.86
7.1.80.0030.00915.78
7.1.70.0050.00416.57
7.1.60.0030.01317.50
7.1.50.0120.01025.35
7.1.40.0030.01515.89
7.1.30.0120.00415.63
7.1.20.0040.01115.77
7.1.10.0000.01315.85
7.1.00.0090.03519.18
7.0.330.0100.00615.53
7.0.320.0000.01515.46
7.0.310.0060.00315.63
7.0.300.0040.01115.32
7.0.290.0070.00715.50
7.0.280.0030.00715.43
7.0.270.0090.00615.15
7.0.260.0110.00315.35
7.0.250.0090.00315.49
7.0.240.0000.01115.48
7.0.230.0110.00015.49
7.0.220.0030.00615.17
7.0.210.0060.00615.53
7.0.200.0110.00415.06
7.0.190.0040.01115.57
7.0.180.0050.00515.25
7.0.170.0080.00315.34
7.0.160.0070.00815.12
7.0.150.0060.00615.37
7.0.140.0020.04118.72
7.0.130.0070.01015.61
7.0.120.0050.03518.87
7.0.110.0070.00715.54
7.0.100.0040.01115.44
7.0.90.0030.01015.40
7.0.80.0030.00915.48
7.0.70.0090.00015.46
7.0.60.0050.03317.98
7.0.50.0080.04017.00
7.0.40.0100.02017.24
7.0.30.0150.02117.20
7.0.20.0120.02617.19
7.0.10.0210.03217.15
7.0.00.0080.02817.14
5.6.400.0040.00414.79
5.6.390.0040.01314.09
5.6.380.0060.01214.52
5.6.370.0070.00714.64
5.6.360.0000.01414.05
5.6.350.0030.01014.30
5.6.340.0040.01114.62
5.6.330.0080.00414.38
5.6.320.0080.00614.79
5.6.310.0070.00714.54
5.6.300.0090.00314.41
5.6.290.0040.01114.32
5.6.280.0090.04017.50
5.6.270.0100.00314.27
5.6.260.0030.00614.59
5.6.250.0030.01014.16
5.6.240.0070.00414.23
5.6.230.0000.00914.51
5.6.220.0030.00614.54
5.6.210.0080.04317.39
5.6.200.0000.03016.41
5.6.190.0100.03217.40
5.6.180.0220.04017.61
5.6.170.0150.02517.47
5.6.160.0020.05017.54
5.6.150.0000.03716.29
5.6.140.0070.04116.28
5.6.130.0020.04616.36
5.6.120.0040.02417.71
5.6.110.0050.04217.76
5.6.100.0120.03317.82
5.6.90.0030.02617.71
5.6.80.0070.04017.44
5.6.70.2000.02317.41
5.6.60.0030.01014.29
5.6.50.0040.01114.02
5.6.40.0030.00714.40
5.6.30.0100.00014.54
5.6.20.0000.01414.67
5.6.10.0000.01214.40
5.6.00.0030.00614.27
5.5.380.0060.00914.57
5.5.370.0110.00414.17
5.5.360.0040.00814.10
5.5.350.0200.04017.25
5.5.340.0020.02616.21
5.5.330.0040.04917.28
5.5.320.0170.04117.55
5.5.310.0150.03917.22
5.5.300.0030.02816.30
5.5.290.0080.02016.21
5.5.280.0070.02317.60
5.5.270.0120.03917.38
5.5.260.0080.04417.53
5.5.250.0070.04517.34
5.5.240.0070.03817.21
5.5.230.0030.01214.14
5.5.220.0060.00914.22
5.5.210.0060.00614.23
5.5.200.0060.00814.55
5.5.190.0060.00614.25
5.5.180.0070.00714.43
5.5.170.0090.00614.28
5.5.160.0060.00614.36
5.5.150.0080.00514.19
5.5.140.0080.00814.34
5.5.130.0000.01414.05
5.5.120.0030.01314.13
5.5.110.0130.00314.03
5.5.100.0110.00714.36
5.5.90.0110.00714.33
5.5.80.0070.00714.02
5.5.70.0100.00314.38
5.5.60.0060.01014.28
5.5.50.0070.00714.14
5.5.40.0060.00914.17
5.5.30.0040.00814.13
5.5.20.0030.01014.14
5.5.10.0060.00314.34
5.5.00.0120.00614.39
5.4.450.0070.04015.31
5.4.440.0080.03715.41
5.4.430.0000.02515.32
5.4.420.0070.03515.29
5.4.410.0050.04515.27
5.4.400.0030.02214.94
5.4.390.0080.01815.11
5.4.380.0050.02215.16
5.4.370.0060.02615.13
5.4.360.0040.02414.99
5.4.350.0110.03215.19
5.4.340.0050.03715.28
5.4.330.0040.00411.32
5.4.320.0030.02615.13
5.4.310.0030.02514.98
5.4.300.0020.04715.13
5.4.290.0050.02415.02
5.4.280.0040.04414.99
5.4.270.0100.03715.23
5.4.260.0020.02514.97
5.4.250.0110.01815.10
5.4.240.0000.02415.03
5.4.230.0010.02415.13
5.4.220.0020.02314.92
5.4.210.0170.01715.04
5.4.200.0030.02315.16
5.4.190.0060.02015.20
5.4.180.0080.02215.07
5.4.170.0050.02015.18
5.4.160.0030.02715.04
5.4.150.0050.02315.10
5.4.140.0030.02013.72
5.4.130.0050.02413.73
5.4.120.0040.02013.97
5.4.110.0050.02013.61
5.4.100.0030.02113.87
5.4.90.0050.01713.76
5.4.80.0070.01813.67
5.4.70.0040.02113.81
5.4.60.0120.01913.60
5.4.50.0030.02013.79
5.4.40.0020.02013.67
5.4.30.0030.01813.76
5.4.20.0110.01313.71
5.4.10.0100.02013.63
5.4.00.0050.02013.54
5.3.290.0050.04012.79
5.3.280.0020.02212.75
5.3.270.0030.02212.67
5.3.260.0020.02512.67
5.3.250.0000.02512.68
5.3.240.0030.02212.68
5.3.230.0040.02012.75
5.3.220.0000.02212.79
5.3.210.0020.02512.70
5.3.200.0060.01712.74
5.3.190.0030.02212.71
5.3.180.0070.01812.73
5.3.170.0020.02712.71
5.3.160.0070.01712.66
5.3.150.0020.02012.78
5.3.140.0030.02212.64
5.3.130.0050.01812.64
5.3.120.0020.02312.77
5.3.110.0020.02512.69
5.3.100.0010.03112.38
5.3.90.0020.02412.38
5.3.80.0090.03012.39
5.3.70.0020.04212.47
5.3.60.0050.02012.45
5.3.50.0020.03212.41
5.3.40.0050.02212.37
5.3.30.0050.02512.38
5.3.20.0080.02512.28
5.3.10.0000.04012.28
5.3.00.0020.03812.22
5.2.170.0030.04711.32
5.2.160.0000.03311.32
5.2.150.0100.04711.09
5.2.140.0130.06011.17
5.2.130.0000.03711.04
5.2.120.0100.04011.19
5.2.110.0000.05011.15
5.2.100.0030.05711.13
5.2.90.0070.05311.12
5.2.80.0030.03311.13
5.2.70.0030.03711.14
5.2.60.0030.03711.02
5.2.50.0000.06711.09
5.2.40.0000.06710.96
5.2.30.0000.04711.00
5.2.20.0030.05710.98
5.2.10.0030.03310.79
5.2.00.0000.03010.69
5.1.60.0030.0409.96
5.1.50.0000.0279.98
5.1.40.0030.0579.99
5.1.30.0030.04310.30
5.1.20.0100.02010.42
5.1.10.0100.02310.10
5.1.00.0000.03010.10
5.0.50.0070.0238.54
5.0.40.0030.0238.44
5.0.30.0070.0508.26
5.0.20.0100.0208.20
5.0.10.0030.0438.20
5.0.00.0000.0678.22
4.4.90.0030.0337.53
4.4.80.0030.0177.53
4.4.70.0000.0377.53
4.4.60.0000.0307.53
4.4.50.0000.0307.53
4.4.40.0000.0577.53
4.4.30.0030.0307.53
4.4.20.0030.0337.53
4.4.10.0000.0177.53
4.4.00.0030.0407.53
4.3.110.0030.0177.53
4.3.100.0100.0277.53
4.3.90.0100.0277.53
4.3.80.0000.0307.53
4.3.70.0000.0177.53
4.3.60.0000.0407.53
4.3.50.0070.0177.53
4.3.40.0000.0277.53
4.3.30.0030.0137.53
4.3.20.0030.0237.53
4.3.10.0000.0377.53
4.3.00.0000.0207.53

preferences:
37.78 ms | 401 KiB | 5 Q