3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cidr='127.0.0.1/9'; $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.60.0100.01016.86
8.3.50.0150.01517.38
8.3.40.0160.01019.18
8.3.30.0210.01019.14
8.3.20.0130.00019.28
8.3.10.0040.01119.13
8.3.00.0090.00319.63
8.2.180.0160.01617.00
8.2.170.0270.00322.96
8.2.160.0210.00919.21
8.2.150.0060.00624.18
8.2.140.0130.00024.66
8.2.130.0120.00826.16
8.2.120.0170.00320.92
8.2.110.0200.00422.39
8.2.100.0170.00819.76
8.2.90.0100.00718.16
8.2.80.0070.00719.04
8.2.70.0110.00417.75
8.2.60.0060.00618.05
8.2.50.0050.01118.07
8.2.40.0110.00318.03
8.2.30.0120.00918.02
8.2.20.0130.00317.85
8.2.10.0000.01918.04
8.2.00.0060.00917.99
8.1.280.0240.01525.92
8.1.270.0090.00623.99
8.1.260.0150.00326.35
8.1.250.0230.01928.09
8.1.240.0220.00920.41
8.1.230.0070.01317.89
8.1.220.0030.01317.74
8.1.210.0070.00718.77
8.1.200.0070.00717.48
8.1.190.0100.01017.60
8.1.180.0060.00618.10
8.1.170.0080.00618.75
8.1.160.0060.01119.09
8.1.150.0070.00718.84
8.1.140.0080.00317.63
8.1.130.0090.00917.73
8.1.120.0130.00817.65
8.1.110.0080.00817.77
8.1.100.0030.00717.75
8.1.90.0090.00617.71
8.1.80.0070.00717.78
8.1.70.0000.01417.70
8.1.60.0180.00417.93
8.1.50.0090.00417.79
8.1.40.0140.00917.71
8.1.30.0040.01417.89
8.1.20.0100.00517.88
8.1.10.0030.01517.88
8.1.00.0070.00717.68
8.0.300.0060.00318.77
8.0.290.0040.01116.75
8.0.280.0050.00918.48
8.0.270.0030.01417.28
8.0.260.0090.00916.98
8.0.250.0040.01217.13
8.0.240.0170.00417.10
8.0.230.0060.00616.93
8.0.220.0000.01517.01
8.0.210.0060.01116.95
8.0.200.0110.00316.95
8.0.190.0110.00517.05
8.0.180.0130.00617.09
8.0.170.0050.00517.02
8.0.160.0040.00717.08
8.0.150.0050.00517.01
8.0.140.0040.01317.00
8.0.130.0040.01213.67
8.0.120.0090.01317.02
8.0.110.0060.01217.11
8.0.100.0000.01617.16
8.0.90.0100.00316.98
8.0.80.0160.04217.06
8.0.70.0030.01017.11
8.0.60.0060.01216.88
8.0.50.0150.00417.08
8.0.30.0280.00317.40
8.0.20.0420.03417.50
8.0.10.0040.00816.97
8.0.00.0260.03416.83
7.4.330.0080.00313.35
7.4.320.0080.01216.66
7.4.300.0040.01316.63
7.4.290.0070.00716.67
7.4.280.0130.00716.70
7.4.270.0090.00916.64
7.4.260.0120.00613.66
7.4.250.0040.00816.67
7.4.240.0040.00816.87
7.4.230.0230.01916.55
7.4.220.0340.04416.70
7.4.210.0100.02916.63
7.4.200.0100.01016.83
7.4.190.0030.01016.47
7.4.160.0290.03916.43
7.4.150.0500.03516.61
7.4.140.0360.06616.67
7.4.130.0660.02916.89
7.4.120.0260.03316.63
7.4.110.0760.04416.79
7.4.100.0580.05916.82
7.4.90.0220.02816.76
7.4.80.0460.05916.79
7.4.70.0720.05016.70
7.4.60.0670.02416.67
7.4.50.0070.00316.72
7.4.40.0030.01916.43
7.4.30.0860.03916.74
7.3.330.0050.01613.58
7.3.320.0060.01113.57
7.3.310.0070.00416.63
7.3.300.0110.00516.29
7.3.290.0090.02516.43
7.3.280.0150.04516.51
7.3.270.0230.05216.73
7.3.260.0550.02516.77
7.3.250.0360.04916.60
7.3.240.0480.01816.74
7.3.230.0220.03516.81
7.3.210.0510.03016.73
7.3.200.0690.07919.39
7.3.190.0140.03716.70
7.3.180.0200.02316.41
7.3.170.0590.04116.49
7.3.160.0460.03416.44
7.2.330.0640.03516.82
7.2.320.0140.01716.95
7.2.310.0150.04716.96
7.2.300.0210.05716.71
7.2.290.0220.04716.79
7.2.100.0230.01415.00
7.2.90.1540.01914.98
7.2.80.1480.01315.03
7.2.70.1460.01515.39
7.2.60.0550.01415.42
7.2.50.1350.01715.21
7.2.40.0730.01715.07
7.2.30.0490.01615.14
7.2.20.1070.01415.04
7.2.10.1120.02515.27
7.2.00.0350.01415.16
7.1.220.1370.01613.86
7.1.210.1450.02414.14
7.1.200.1580.01314.30
7.1.190.1740.02113.91
7.1.180.2750.01314.00
7.1.170.0900.02814.14
7.1.160.0780.01614.11
7.1.150.1110.00914.04
7.1.140.1040.02514.18
7.1.130.0870.01814.27
7.1.120.0450.01513.95
7.1.110.1780.01814.18
7.1.100.1460.01514.36
7.1.90.0940.01414.26
7.1.80.0560.01114.33
7.1.70.1770.01313.97
7.1.60.1100.02032.42
7.1.50.1150.02732.06
7.1.40.1080.01632.18
7.1.30.0580.02232.33
7.1.20.0730.01032.09
7.1.10.0280.00814.30
7.1.00.0710.01913.90
7.0.310.1600.02313.92
7.0.300.1040.01913.35
7.0.290.1060.02213.60
7.0.280.1850.02513.52
7.0.270.1050.02513.48
7.0.260.0720.02313.89
7.0.250.1240.01914.00
7.0.240.0730.01913.31
7.0.230.0920.03013.87
7.0.220.0730.03014.00
7.0.210.0780.01113.68
7.0.200.0760.02113.76
7.0.190.0720.02514.05
7.0.180.0360.02313.86
7.0.170.0700.02113.98
7.0.160.0380.02813.94
7.0.150.0950.02314.06
7.0.140.0890.00913.63
7.0.130.0650.03313.86
7.0.120.0350.02013.89
7.0.110.0970.02113.73
7.0.100.0840.02013.86
7.0.90.0530.01413.91
7.0.80.1070.01813.92
7.0.70.1160.02113.85
7.0.60.0560.01913.96
7.0.50.0160.01313.89
7.0.40.0900.01013.83
5.6.380.0360.02514.59
5.6.370.0150.02414.44
5.6.360.0270.02714.80
5.6.350.0150.00914.59
5.6.340.0320.03214.83
5.6.330.0250.03414.50
5.6.320.0260.02614.78
5.6.310.0110.01814.87
5.6.300.0270.03414.68
5.6.290.0180.01514.73
5.6.280.0250.02114.29
5.6.270.0330.01314.48
5.6.260.0160.03114.58
5.6.250.0170.01114.70
5.6.240.0260.01514.32
5.6.230.0190.03414.23
5.6.220.0200.02314.53
5.6.210.0130.02814.50
5.6.200.0230.03014.55
5.6.190.0240.02414.50
5.5.380.0320.01112.45
5.5.370.0230.01812.45
5.5.360.0170.02112.45
5.5.350.0260.01712.45
5.5.340.0230.02312.45
5.5.330.0110.01112.45

preferences:
51.03 ms | 401 KiB | 5 Q