3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = "./"; // Öffnen eines bekannten Verzeichnisses und danach seinen Inhalt einlesen if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); }

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.320.0130.05319.25
5.4.310.0230.04318.93
5.4.300.0300.06719.15
5.4.290.0270.06718.93
5.4.280.0270.06718.81
5.4.270.0300.05718.81
5.4.260.0300.05718.95
5.4.250.0170.03718.93
5.4.240.0200.06019.08
5.4.230.0200.04719.21
5.4.220.0200.06019.08
5.4.210.0170.04719.15
5.4.200.0070.06719.16
5.4.190.0100.06319.08
5.4.180.0670.04719.13
5.4.170.0330.07318.95
5.4.160.0170.07319.23
5.4.150.0170.05019.11
5.4.140.0270.06016.33
5.4.130.0230.07016.43
5.4.120.0200.06316.26
5.4.110.0200.06716.45
5.4.100.0270.04716.39
5.4.90.0270.05716.22
5.4.80.0170.04716.53
5.4.70.0170.04716.33
5.4.60.0230.06016.37
5.4.50.0200.04016.30
5.4.40.0270.06316.41
5.4.30.0230.04016.43
5.4.20.0300.06316.04
5.4.10.0230.04316.46
5.4.00.0200.04015.63
5.3.290.0230.07014.52
5.3.280.0230.07714.58
5.3.270.0230.04014.47
5.3.260.0170.05014.56
5.3.250.0130.04014.45
5.3.240.0200.07714.62
5.3.230.0270.03714.55
5.3.220.0170.04714.40
5.3.210.0170.06714.41
5.3.200.0300.07014.42
5.3.190.0230.07314.55
5.3.180.0130.04014.41
5.3.170.0270.06714.52
5.3.160.0170.04714.40
5.3.150.0170.05014.58
5.3.140.0170.03714.61
5.3.130.0200.04714.40
5.3.120.0170.05714.39
5.3.110.0200.03714.57
5.3.100.0270.04014.00
5.3.90.0330.04313.88
5.3.80.0270.03713.93
5.3.70.0170.03713.96
5.3.60.0200.03313.99
5.3.50.0100.04313.91
5.3.40.0170.03313.90
5.3.30.0170.03313.77
5.3.20.0170.03313.64
5.3.10.0170.03313.49
5.3.00.0200.03013.59
5.2.170.0130.03011.31
5.2.160.0130.02711.20
5.2.150.0130.03011.23
5.2.140.0170.02711.00
5.2.130.0170.03011.05
5.2.120.0130.02710.94
5.2.110.0100.03710.93
5.2.100.0130.03010.95
5.2.90.0170.03711.05
5.2.80.0170.02711.04
5.2.70.0130.03010.98
5.2.60.0130.03010.93
5.2.50.0200.02710.89
5.2.40.0100.02710.83
5.2.30.0070.03310.81
5.2.20.0130.02710.82
5.2.10.0130.02311.04
5.2.00.0100.03010.67
5.1.60.0100.02310.16
5.1.50.0070.0379.97
5.1.40.0100.0239.97
5.1.30.0070.03010.23
5.1.20.0130.02310.37
5.1.10.0100.02710.08
5.1.00.0100.02710.14
5.0.50.0070.0208.57
5.0.40.0030.0208.39
5.0.30.0100.0308.13
5.0.20.0030.0238.18
5.0.10.0070.0208.07
5.0.00.0030.0338.24
4.4.90.0030.0208.05
4.4.80.0100.0178.05
4.4.70.0070.0138.05
4.4.60.0100.0108.05
4.4.50.0030.0178.05
4.4.40.0130.0178.05
4.4.30.0000.0208.05
4.4.20.0070.0138.05
4.4.10.0070.0208.05
4.4.00.0030.0278.05
4.3.110.0130.0138.05
4.3.100.0070.0138.05
4.3.90.0070.0138.05
4.3.80.0100.0208.05
4.3.70.0070.0138.05
4.3.60.0070.0138.05
4.3.50.0070.0138.05
4.3.40.0030.0238.05
4.3.30.0030.0138.05
4.3.20.0000.0208.05
4.3.10.0030.0138.05
4.3.00.0000.0138.05

preferences:
143.11 ms | 1394 KiB | 7 Q