3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $ok = true; while ( $ok ) { $i = $i + 1; $tmp="http://www.newgrounds.com/audio/listen/".$i; if (URLIsValid($tmp)) { print $i; print"\n"; print $tmp; print"\n"; } } function URLIsValid($URL) { $exists = true; $file_headers = @get_headers($URL); $InvalidHeaders = array('404', '403', '500'); foreach($InvalidHeaders as $HeaderVal) { if(strstr($file_headers[0], $HeaderVal)) { $exists = false; break; } } return $exists; }

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.0060.01117.13
8.3.50.0270.00917.55
8.3.40.0310.01219.22
8.3.30.0400.01118.87
8.3.20.0060.00318.98
8.3.10.0030.00721.02
8.3.00.0160.00017.75
8.2.180.0130.00316.75
8.2.170.0040.01222.96
8.2.160.0070.00722.39
8.2.150.0060.00324.18
8.2.140.0130.00724.66
8.2.130.0100.01026.16
8.2.120.0030.00520.14
8.2.110.0090.00321.34
8.2.100.0130.00017.96
8.2.90.0060.00619.52
8.2.80.0100.00518.17
8.2.70.0090.00517.75
8.2.60.0030.00618.18
8.2.50.0030.00618.07
8.2.40.0140.00518.41
8.2.30.0060.00318.40
8.2.20.0040.00818.04
8.2.10.0070.00719.84
8.2.00.0090.00018.09
8.1.280.0250.00425.92
8.1.270.0100.00724.66
8.1.260.0240.00026.35
8.1.250.0060.00328.09
8.1.240.0180.00422.65
8.1.230.0140.00021.05
8.1.220.0060.00618.77
8.1.210.0090.00619.15
8.1.200.0120.00617.47
8.1.190.0050.00517.66
8.1.180.0000.01018.10
8.1.170.0060.00319.07
8.1.160.0060.01019.15
8.1.150.0130.00518.92
8.1.140.0160.00017.72
8.1.130.0050.00318.16
8.1.120.0060.00317.66
8.1.110.0030.00617.62
8.1.100.0090.00017.81
8.1.90.0080.00817.56
8.1.80.0050.00317.69
8.1.70.0030.00617.71
8.1.60.0030.00817.76
8.1.50.0000.00917.64
8.1.40.0000.00817.73
8.1.30.0070.00817.93
8.1.20.0030.00617.70
8.1.10.0030.00617.79
8.1.00.0000.00917.61
8.0.300.0080.00820.02
8.0.290.0050.01016.88
8.0.280.0060.01018.52
8.0.270.0080.00817.28
8.0.260.0000.01117.04
8.0.250.0160.00017.14
8.0.240.0090.00917.14
8.0.230.0000.00817.14
8.0.220.0060.00316.95
8.0.210.0060.00616.95
8.0.200.0090.00917.05
8.0.190.0110.00617.01
8.0.180.0050.00917.18
8.0.170.0150.00017.11
8.0.160.0070.00417.02
8.0.150.0000.01116.98
8.0.140.0110.00417.00
8.0.130.0060.01213.79
8.0.120.0120.00317.19
8.0.110.0210.00016.98
8.0.100.0070.01017.08
8.0.90.0140.00716.96
8.0.80.0300.01217.12
8.0.70.0140.00317.13
8.0.60.0170.00317.13
8.0.50.0110.00317.00
8.0.30.0700.02217.36
8.0.20.0580.03417.15
8.0.10.0070.00717.25
8.0.00.0520.03217.02
7.4.330.0090.00913.38
7.4.320.0100.00716.60
7.4.300.0000.00916.60
7.4.290.0000.01316.51
7.4.280.0050.00516.69
7.4.270.0080.00816.52
7.4.260.0090.00313.60
7.4.250.0130.00616.57
7.4.240.0180.00016.70
7.4.230.0030.01016.67
7.4.220.0310.03116.81
7.4.210.0350.01916.69
7.4.200.0100.01016.74
7.4.190.0100.01016.80
7.4.160.0800.02316.61
7.4.150.0630.02016.79
7.4.140.0710.02916.59
7.4.130.0710.04416.62
7.4.120.0710.02416.66
7.4.110.0400.03316.73
7.4.100.0470.00616.71
7.4.90.0770.02916.72
7.4.80.0400.03216.69
7.4.70.0910.03216.73
7.4.60.0360.03816.55
7.4.50.0140.01216.76
7.4.40.0190.00916.73
7.4.30.0920.02116.41
7.3.330.0100.00713.56
7.3.320.0110.01513.63
7.3.310.0330.01716.50
7.3.300.0350.00616.42
7.3.290.0910.02816.49
7.3.280.0820.03016.47
7.3.270.1280.03216.71
7.3.260.0950.05916.62
7.3.250.1550.04416.63
7.3.240.1390.02016.67
7.3.230.0960.04516.79
7.3.210.1070.05016.65
7.3.200.1130.03219.39
7.3.190.1140.04816.50
7.3.180.0870.03316.57
7.3.170.0980.03416.69
7.3.160.0810.03616.61
7.2.330.1140.04916.59
7.2.320.1230.05617.02
7.2.310.0940.04316.94
7.2.300.0890.03516.96
7.2.290.0750.04016.91
7.2.100.1390.04315.07
7.2.90.0930.03714.80
7.2.80.1850.02414.96
7.2.70.1690.02215.38
7.2.60.1180.04615.46
7.2.50.1210.04114.97
7.2.40.2260.04315.47
7.2.30.1610.03114.88
7.2.20.0960.02615.26
7.2.10.2870.04015.18
7.2.00.1470.05415.21
7.1.220.1480.02914.07
7.1.210.1580.04014.35
7.1.200.1530.03313.96
7.1.190.1480.02614.23
7.1.180.1580.03314.37
7.1.170.1790.01814.21
7.1.160.1190.03214.13
7.1.150.0840.03514.03
7.1.140.1560.03614.07
7.1.130.1360.02914.04
7.1.120.1320.03214.13
7.1.110.1710.03713.86
7.1.100.2010.04413.91
7.1.90.0910.02013.85
7.1.80.1480.03613.99
7.0.310.1530.03013.64
7.0.300.1390.03213.88
7.0.290.1290.02513.68
7.0.280.1690.04113.79
7.0.270.1480.02613.62
7.0.260.1720.03313.45
7.0.250.1510.03313.45
7.0.240.1450.03513.76
7.0.230.1650.02213.66
7.0.220.1810.03413.56
5.6.380.1020.03414.86
5.6.370.0910.02214.52
5.6.360.0760.03414.63
5.6.350.0740.03914.30
5.6.340.1200.03214.55
5.6.330.0910.03714.20
5.6.320.0870.03714.23

preferences:
43.66 ms | 401 KiB | 5 Q