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)
5.6.130.0100.06018.24
5.6.120.0030.05721.00
5.6.110.0030.05321.08
5.6.100.0030.08321.00
5.6.90.0100.06720.97
5.6.80.0100.07720.38
5.6.70.3970.04020.29
5.5.290.0030.08318.07
5.5.280.0130.07720.80
5.5.270.0030.09020.65
5.5.260.0030.08020.87
5.5.250.0200.07020.59
5.5.240.0300.07320.19
5.4.450.0600.06019.50
5.4.440.0850.05519.38
5.4.430.0380.05719.41
5.4.420.0370.05519.50
5.4.410.0530.05319.09
5.4.400.0350.05718.94
5.4.390.0380.05319.01
5.4.380.0470.06218.87
5.4.370.0420.04018.76
5.4.360.0420.04318.90
5.4.350.0360.04715.57
5.4.340.0460.04115.45
5.4.320.0450.05015.90
5.4.310.0460.04815.83
5.4.300.0380.04515.89
5.4.290.0360.05115.83
5.4.280.0370.04715.78
5.4.270.0330.05015.62
5.4.260.0360.04515.84
5.4.250.0280.05015.84
5.4.240.0390.04115.78
5.4.230.0400.04415.86
5.4.220.0440.04015.77
5.4.210.0460.04015.77
5.4.200.0380.04815.89
5.4.190.0310.04715.77
5.4.180.0260.05015.84
5.4.170.0300.04114.54
5.4.160.0330.04614.59
5.4.150.0390.07014.67
5.4.140.0210.04913.53
5.4.130.0320.04313.55
5.4.120.0270.04613.48
5.4.110.0240.04713.52
5.4.100.0280.03913.43
5.4.90.0220.05213.42
5.4.80.0130.04113.43
5.4.70.0270.05813.52
5.4.60.0350.04313.51
5.4.50.0350.04713.53
5.4.40.0240.04513.53
5.4.30.0170.04413.46
5.4.20.0100.04513.52
5.4.10.0260.06613.50
5.4.00.0310.05612.97
5.3.290.0170.04713.78
5.3.280.0070.04713.66
5.3.270.0200.04813.43
5.3.260.0240.04813.37
5.3.250.0280.06213.42
5.3.240.0260.04613.32
5.3.230.0310.04613.42
5.3.220.0310.05213.31
5.3.210.0230.05113.28
5.3.200.0200.04613.31
5.3.190.0110.04613.33
5.3.180.0250.04313.27
5.3.170.0340.05313.30
5.3.160.0600.06113.33
5.3.150.0370.04413.28
5.3.140.0300.05313.31
5.3.130.0400.06313.36
5.3.120.0280.05013.31
5.3.110.0350.04513.25
5.3.100.0280.04912.73
5.3.90.0260.04712.71
5.3.80.0310.04712.76
5.3.70.0330.04712.75
5.3.60.0260.04512.72
5.3.50.0280.04712.67
5.3.40.0320.04612.68
5.3.30.0320.04112.64
5.3.20.0240.04212.41
5.3.10.0330.05712.37
5.3.00.0310.04412.36

preferences:
140.59 ms | 1394 KiB | 7 Q