3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; $ok = true; while ( $i < 90000 ) { $i = $i + 1; $tmp="http://www.newgrounds.com/audio/listen/".$i; if (!URLIsValid($tmp)) { print $i; 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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.61.5910.30917.27
7.2.01.9270.52319.66
7.1.201.6160.28516.04
7.1.101.9350.52118.46
7.1.70.0070.00517.61
7.1.60.0040.01919.40
7.1.50.0000.02217.46
7.1.01.8830.60722.71
7.0.200.0190.00814.84
7.0.141.8570.62322.39
7.0.121.8900.58322.48
7.0.81.9930.48720.39
7.0.71.8030.68020.39
7.0.61.8600.62720.32
7.0.51.8370.64720.75
7.0.41.8770.60320.59
7.0.31.8600.62320.52
7.0.21.8000.68320.43
7.0.11.8330.65020.54
7.0.01.8070.68020.54
5.6.281.8600.62021.33
5.6.231.8030.68020.85
5.6.221.7830.70021.04
5.6.211.7730.71021.04
5.6.201.7630.72321.54
5.6.191.7970.68721.39
5.6.181.7870.69721.50
5.6.171.7730.71321.39
5.6.161.8400.64721.36
5.6.151.8800.60721.30
5.6.141.7770.70721.31
5.6.131.8800.60321.31
5.6.121.7530.73021.40
5.6.111.8870.59321.50
5.6.101.7630.72021.38
5.6.91.8500.63321.38
5.6.81.8470.63720.70
5.6.71.7430.74320.97
5.6.61.7630.72320.88
5.6.51.8000.68720.88
5.6.41.8170.66320.86
5.6.31.7900.69320.84
5.6.21.8770.60720.59
5.6.11.8330.65320.88
5.6.01.7670.72020.70
5.5.371.8600.53020.88
5.5.361.8570.56021.05
5.5.351.9030.55320.89
5.5.341.8530.52721.36
5.5.331.8200.58021.20
5.5.321.9270.55021.16
5.5.311.8370.56321.26
5.5.301.7970.64321.27
5.5.291.9000.51321.33
5.5.281.8670.55321.23
5.5.271.7900.61721.25
5.5.261.8570.58021.22
5.5.251.8330.59021.09
5.5.241.8500.59020.46
5.5.231.8070.57320.55
5.5.221.8230.56720.55
5.5.211.8030.65720.75
5.5.201.8870.51720.52
5.5.191.7970.61020.55
5.5.181.9000.55720.51
5.5.161.8530.55720.64
5.5.151.8800.51020.65
5.5.141.7030.62320.57
5.5.131.8300.61320.42
5.5.121.8070.60020.72
5.5.111.8370.58020.64
5.5.101.8700.58320.49
5.5.91.6700.48020.46
5.5.81.5800.45320.61
5.5.71.6900.57020.43
5.5.61.7700.54320.55
5.5.51.7370.58020.49
5.5.41.7930.64720.38
5.5.31.9170.55320.61
5.5.21.7670.66720.37
5.5.11.8830.55020.36
5.5.01.7770.64720.38
5.4.451.8130.60319.65
5.4.441.8530.56019.62
5.4.431.8870.58319.63
5.4.421.8530.55719.92
5.4.411.7970.64019.53
5.4.401.7730.61019.30
5.4.391.7570.59719.31
5.4.381.8370.61719.36
5.4.371.8700.52719.33
5.4.361.8370.58019.32
5.4.351.8630.61019.20
5.4.341.8970.55319.17
5.4.321.9300.51319.60
5.4.311.8530.57719.39
5.4.301.8370.59019.36
5.4.291.8630.51319.33
5.4.281.8000.63719.41
5.4.271.8170.59319.35
5.4.261.8200.60019.40
5.4.251.8470.53319.36
5.4.241.4770.39719.35
5.4.231.5170.42019.30
5.4.221.8830.54319.35
5.4.211.8730.55019.30
5.4.201.7730.60719.35
5.4.191.9330.48719.37
5.4.181.9130.53019.43
5.4.171.7900.62019.36
5.4.161.8400.55019.46
5.4.151.8830.56019.19
5.4.141.8870.52716.78
5.4.131.9470.49316.79
5.4.121.7300.42016.76
5.4.111.1000.28316.75
5.4.101.3030.34016.82
5.4.91.4930.48016.75
5.4.81.6300.41016.64
5.4.71.4570.47716.82
5.4.61.5300.53316.82
5.4.51.4700.45316.71
5.4.41.8900.54016.58
5.4.31.8730.56316.80
5.4.21.8530.55016.73
5.4.11.8670.57716.68
5.4.01.7500.65316.24
5.3.291.8670.55014.88
5.3.281.8800.54714.66
5.3.271.8830.54314.63
5.3.261.8100.66014.68
5.3.251.9070.53714.66
5.3.241.8970.52314.64
5.3.231.9030.52314.58
5.3.221.3900.44714.68
5.3.211.0900.38714.59
5.3.200.9570.36014.57
5.3.191.4970.46714.63
5.3.181.3470.44314.72
5.3.171.5030.53314.77
5.3.161.4770.50014.58
5.3.151.5800.50014.49
5.3.141.7300.47014.62
5.3.131.8700.59014.60
5.3.121.8670.56314.61
5.3.111.9130.50314.62
5.3.101.8830.51714.05
5.3.91.8700.54014.05
5.3.81.8300.59314.02
5.3.71.8370.54714.07
5.3.61.8400.60013.91
5.3.51.8370.60014.09
5.3.41.8800.55713.96
5.3.31.8000.61313.83
5.3.21.9330.53713.77
5.3.11.8030.60713.58
5.3.01.7930.61313.73
5.2.171.8430.58311.28
5.2.161.8470.57011.19
5.2.151.8000.59311.16
5.2.141.8070.59711.18
5.2.131.8770.53711.11
5.2.121.8430.55011.13
5.2.111.8570.59311.17
5.2.101.9070.53311.12
5.2.91.8670.57311.29
5.2.81.8270.61311.07
5.2.71.8530.61711.14
5.2.61.8570.56311.07
5.2.51.9070.50711.06
5.2.41.8900.54710.98
5.2.31.8630.54710.95
5.2.21.8170.60710.99
5.2.11.7930.62310.92
5.2.01.8500.54310.76
5.1.61.8430.60010.21
5.1.51.8470.61010.00
5.1.41.8970.53710.13
5.1.31.8630.56010.34
5.1.21.8500.60710.39
5.1.11.8870.55710.18
5.1.01.7430.64010.15
5.0.51.8500.6208.63
5.0.41.7600.4878.41
5.0.31.4900.4738.23
5.0.21.5370.6738.25
5.0.11.7700.6678.22
5.0.01.7370.6878.05
4.4.90.0030.01311.52
4.4.80.0000.03311.52
4.4.70.0000.0339.31
4.4.60.0030.0339.31
4.4.50.0000.0279.31
4.4.40.0000.0539.31
4.4.30.0000.0379.31
4.4.20.0000.0479.31
4.4.10.0030.0209.33
4.4.00.0070.0509.34
4.3.110.0070.0309.34
4.3.100.0000.0379.36
4.3.90.0030.0139.37
4.3.80.0000.0239.38
4.3.70.0000.0139.38
4.3.60.0030.0139.38
4.3.50.0000.0139.38
4.3.40.0000.0209.38
4.3.30.0030.0139.38
4.3.20.0000.0179.38
4.3.10.0000.0179.38
4.3.00.0000.0139.38