3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir("/etc/php5"); echo "Handle: " . $d->handle . "\n"; echo "Path: " . $d->path . "\n"; while (false !== ($entry = $d->read())) {    echo $entry."\n"; } $d->close();

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.4.340.0370.06319.20
5.4.320.0170.04019.09
5.4.310.0270.03318.95
5.4.300.0270.07319.07
5.4.290.0170.06319.19
5.4.280.0170.07719.15
5.4.270.0170.04719.10
5.4.260.0130.04319.09
5.4.250.0130.04319.08
5.4.240.0270.07319.24
5.4.230.0200.04719.06
5.4.220.0200.04019.00
5.4.210.0270.05719.07
5.4.200.0300.05319.22
5.4.190.0300.07019.21
5.4.180.0330.04319.30
5.4.170.0100.05719.12
5.4.160.0200.04319.11
5.4.150.0270.04319.11
5.4.140.0300.06016.35
5.4.130.0430.05016.45
5.4.120.0200.07016.37
5.4.110.0170.08016.55
5.4.100.0270.04016.29
5.4.90.0330.06316.46
5.4.80.0230.06716.36
5.4.70.0200.03316.58
5.4.60.0300.06316.49
5.4.50.0200.05016.51
5.4.40.0230.07316.25
5.4.30.0330.06016.42
5.4.20.0230.04316.53
5.4.10.0230.07716.55
5.4.00.0200.04715.79
5.3.290.0200.04314.50
5.3.280.0270.05714.53
5.3.270.0270.04014.65
5.3.260.0270.07014.51
5.3.250.0170.06714.56
5.3.240.0300.04714.63
5.3.230.0200.06714.62
5.3.220.0200.04714.52
5.3.210.0270.06314.52
5.3.200.0270.06714.41
5.3.190.0300.07014.43
5.3.180.0230.07714.50
5.3.170.0170.08014.43
5.3.160.0200.07714.54
5.3.150.0200.07714.42
5.3.140.0230.07314.41
5.3.130.0300.06714.53
5.3.120.0200.04314.41
5.3.110.0300.03714.48
5.3.100.0200.05014.02
5.3.90.0270.05013.89
5.3.80.0230.04313.93
5.3.70.0230.04313.79
5.3.60.0230.04313.86
5.3.50.0230.04313.74
5.3.40.0230.04313.97
5.3.30.0130.05313.94
5.3.20.0230.04313.69
5.3.10.0200.04013.61
5.3.00.0170.03713.62
5.2.170.0170.04012.17
5.2.160.0300.03712.17
5.2.150.0200.03712.17
5.2.140.0130.04312.17
5.2.130.0170.04012.17
5.2.120.0070.03012.17
5.2.110.0100.03312.17
5.2.100.0100.03312.17
5.2.90.0200.02312.17
5.2.80.0170.06012.17
5.2.70.0100.03312.17
5.2.60.0170.06012.17
5.2.50.0200.05712.17
5.2.40.0170.06012.17
5.2.30.0170.05312.17
5.2.20.0130.04312.17
5.2.10.0230.05712.17
5.2.00.0170.05012.17
5.1.60.0170.05012.17
5.1.50.0100.05312.17
5.1.40.0200.04712.17
5.1.30.0170.04312.17
5.1.20.0170.03712.17
5.1.10.0130.04312.17
5.1.00.0130.05712.17
5.0.50.0130.04312.17
5.0.40.0100.03312.17
5.0.30.0070.06312.17
5.0.20.0070.03712.17
5.0.10.0100.04012.17
5.0.00.0070.06712.17
4.4.90.0070.03712.17
4.4.80.0070.02012.17
4.4.70.0130.02712.17
4.4.60.0030.03712.17
4.4.50.0100.03712.17
4.4.40.0070.05312.17
4.4.30.0170.01712.17
4.4.20.0130.03012.17
4.4.10.0100.03012.17
4.4.00.0130.04012.17
4.3.110.0100.02012.17
4.3.100.0100.03312.17
4.3.90.0100.03312.17
4.3.80.0070.04012.17
4.3.70.0100.03012.17
4.3.60.0130.02012.17
4.3.50.0130.03012.17
4.3.40.0100.03712.17
4.3.30.0070.03312.17
4.3.20.0030.03012.17
4.3.10.0030.04012.17
4.3.00.0070.02712.17

preferences:
143.75 ms | 1394 KiB | 7 Q