3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cidr='200.74.240.0/21'; $rge = array(); $ips = array(); $cidr = explode('/', $cidr); $rge[0] = long2ip((ip2long($cidr[0])) & ((-1 << (32 - (int)$cidr[1])))); $rge[1] = long2ip((ip2long($cidr[0])) + pow(2, (32 - (int)$cidr[1])) - 1); $fip = ip2long($rge[0]); $lip = ip2long($rge[1]); $fip++; while($fip < $lip){ $ip = long2ip($fip); if(!preg_match('/\.0$/',$ip)){ echo "$ip\n"; } $fip++; }

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.40.0160.01319.26
8.3.30.0150.00419.50
8.3.20.0030.00720.41
8.3.10.0000.01023.73
8.3.00.0000.01119.94
8.2.170.0160.01022.96
8.2.160.0100.01022.33
8.2.150.0040.00724.18
8.2.140.0060.00324.66
8.2.130.0080.00326.16
8.2.120.0070.00321.02
8.2.110.0000.01122.51
8.2.100.0100.00719.82
8.2.90.0000.01019.35
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0050.00717.93
8.2.50.0080.00318.07
8.2.40.0000.01018.28
8.2.30.0030.00918.28
8.2.20.0070.00317.96
8.2.10.0000.00918.21
8.2.00.0000.01017.87
8.1.270.0030.00924.01
8.1.260.0070.00326.35
8.1.250.0070.00328.09
8.1.240.0080.00423.96
8.1.230.0110.00419.20
8.1.220.0100.00317.88
8.1.210.0060.00318.77
8.1.200.0060.00617.61
8.1.190.0030.00617.47
8.1.180.0050.00518.10
8.1.170.0030.01018.82
8.1.160.0090.00022.11
8.1.150.0050.00519.02
8.1.140.0030.00617.70
8.1.130.0000.00817.83
8.1.120.0000.01017.72
8.1.110.0030.00717.64
8.1.100.0090.00017.69
8.1.90.0060.00317.77
8.1.80.0030.00617.69
8.1.70.0030.00617.63
8.1.60.0070.00417.78
8.1.50.0030.00717.74
8.1.40.0070.00317.68
8.1.30.0030.00717.83
8.1.20.0030.00717.82
8.1.10.0030.00617.69
8.1.00.0070.00317.67
8.0.300.0050.00518.77
8.0.290.0060.00316.75
8.0.280.0030.00618.54
8.0.270.0030.00616.95
8.0.260.0000.00818.53
8.0.250.0040.00417.05
8.0.240.0030.00617.20
8.0.230.0090.00017.17
8.0.220.0040.00417.07
8.0.210.0030.00616.97
8.0.200.0080.00017.21
8.0.190.0030.00717.10
8.0.180.0000.00917.15
8.0.170.0080.00317.14
8.0.160.0000.00917.14
8.0.150.0030.00617.06
8.0.140.0040.00417.05
8.0.130.0000.00813.61
8.0.120.0000.00917.09
8.0.110.0000.01017.06
8.0.100.0030.00617.05
8.0.90.0040.00417.11
8.0.80.0070.01417.15
8.0.70.0060.00317.00
8.0.60.0060.00316.90
8.0.50.0000.00916.99
8.0.30.0110.02317.25
8.0.20.0120.02117.40
8.0.10.0030.00617.23
8.0.00.0140.01817.15
7.4.330.0030.00315.24
7.4.320.0030.00616.71
7.4.300.0080.00016.86
7.4.290.0070.00316.89
7.4.280.0040.00716.88
7.4.270.0000.00916.83
7.4.260.0000.00916.95
7.4.250.0050.00516.76
7.4.240.0050.00516.89
7.4.230.0060.00316.75
7.4.220.0160.01616.88
7.4.210.0090.01216.96
7.4.200.0030.00716.76
7.4.160.0180.00917.00
7.4.150.0240.01017.40
7.4.140.0200.01317.86
7.4.130.0090.02016.67
7.4.120.0210.00916.82
7.4.110.0120.01616.94
7.4.100.0090.02116.77
7.4.90.0100.01716.76
7.4.80.0060.02819.39
7.4.70.0100.02416.60
7.4.60.0100.02116.68
7.4.50.0070.00416.78
7.4.40.0060.02016.71
7.4.30.0160.01016.72
7.3.330.0040.00413.41
7.3.320.0000.00713.44
7.3.310.0030.00616.45
7.3.300.0080.00016.45
7.3.290.0150.00616.56
7.3.280.0100.01216.57
7.3.270.0120.01617.40
7.3.260.0160.01316.93
7.3.250.0130.01616.73
7.3.240.0130.01916.86
7.3.230.0130.01916.83
7.3.210.0140.01516.95
7.3.200.0100.01919.39
7.3.190.0150.01216.77
7.3.180.0160.01016.86
7.3.170.0090.01616.77
7.3.160.0060.02716.54
7.2.330.0170.01316.93
7.2.320.0130.01316.84
7.2.310.0120.01517.01
7.2.300.0140.01416.74
7.2.290.0100.01716.92
5.4.450.0070.05319.55
5.4.440.0070.08319.63
5.4.430.0000.04719.50
5.4.420.0030.04719.23
5.4.410.0070.04019.46
5.4.400.0100.06018.92
5.4.390.0100.05719.22
5.4.380.0100.07719.30
5.4.370.0100.07319.30
5.4.360.0000.08019.18
5.4.350.0000.05319.22
5.4.340.0030.06319.21
5.4.320.0070.05019.32
5.4.310.0170.05318.91
5.4.300.0100.08019.04
5.4.290.0000.05319.30
5.4.280.0070.04319.23
5.4.270.0030.05019.21
5.4.260.0100.07019.20
5.4.250.0100.05019.07
5.4.240.0130.08018.89
5.4.230.0070.04018.93
5.4.220.0070.08319.26
5.4.210.0130.05718.97
5.4.200.0170.07019.20
5.4.190.0070.07019.27
5.4.180.0030.04019.05
5.4.170.0070.06719.20
5.4.160.0100.06319.28
5.4.150.0100.05019.24
5.4.140.0070.06716.44
5.4.130.0070.06716.38
5.4.120.0130.05316.48
5.4.110.0100.09016.62
5.4.100.0030.07716.48
5.4.90.0070.07716.52
5.4.80.0070.04316.34
5.4.70.0030.04716.46
5.4.60.0100.07316.32
5.4.50.0070.07016.33
5.4.40.0100.04016.43
5.4.30.0130.03716.37
5.4.20.0130.06716.40
5.4.10.0130.06316.46
5.4.00.0030.06316.01
5.3.290.0070.04014.69
5.3.280.0130.05014.65
5.3.270.0100.06714.63
5.3.260.0100.04314.67
5.3.250.0100.04014.64
5.3.240.0100.06314.61
5.3.230.0070.08314.62
5.3.220.0100.07714.57
5.3.210.0000.06714.65
5.3.200.0030.05014.56
5.3.190.0030.08014.58
5.3.180.0100.07714.63
5.3.170.0100.06314.57
5.3.160.0070.04714.59
5.3.150.0000.05314.71
5.3.140.0030.05714.63
5.3.130.0100.05014.60
5.3.120.0100.04314.46
5.3.110.0070.08314.54
5.3.100.0070.04714.02
5.3.90.0030.03714.02
5.3.80.0070.03314.05
5.3.70.0000.06014.17
5.3.60.0100.05714.07
5.3.50.0100.07314.09
5.3.40.0070.07013.89
5.3.30.0030.05013.86
5.3.20.0070.04713.58
5.3.10.0070.06313.54
5.3.00.0130.04713.79

preferences:
29.33 ms | 400 KiB | 5 Q