3v4l.org

run code in 300+ PHP versions simultaneously
<?php async function getPage($url) { $fp = fopen($url, 'r'); await $fp; return stream_get_contents($fp); } $pages = await [ getPage('http://php.net'), getPage('http://example.com'), getPage('http://hhvm.com') ];

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.0300.05319.16
5.4.320.0230.07319.08
5.4.310.0200.06319.07
5.4.300.0230.04319.08
5.4.290.0170.07018.86
5.4.280.0330.03019.22
5.4.270.0300.05319.08
5.4.260.0230.07019.22
5.4.250.0230.07319.01
5.4.240.0170.06019.20
5.4.230.0200.06018.85
5.4.220.0300.06019.13
5.4.210.0200.06719.22
5.4.200.0270.06019.23
5.4.190.0300.07319.14
5.4.180.0300.04319.14
5.4.170.0200.07319.05
5.4.160.0230.07719.17
5.4.150.0170.07019.20
5.4.140.0330.06316.52
5.4.130.0270.05316.37
5.4.120.0230.06016.50
5.4.110.0330.06016.34
5.4.100.0170.04016.29
5.4.90.0230.04016.51
5.4.80.0270.03716.17
5.4.70.0170.03716.54
5.4.60.0200.03316.54
5.4.50.0230.04016.56
5.4.40.0330.05716.53
5.4.30.0230.05316.29
5.4.20.0270.05016.42
5.4.10.0270.06016.42
5.4.00.0200.07015.77
5.3.290.0300.06014.50
5.3.280.0200.04714.68
5.3.270.0200.06014.46
5.3.260.0200.06314.48
5.3.250.0270.07014.47
5.3.240.0170.05314.45
5.3.230.0170.06314.47
5.3.220.0200.08014.42
5.3.210.0200.04714.52
5.3.200.0370.04014.66
5.3.190.0270.07314.48
5.3.180.0200.04714.44
5.3.170.0100.04714.40
5.3.160.0170.04014.40
5.3.150.0330.06014.41
5.3.140.0330.05314.50
5.3.130.0230.06014.45
5.3.120.0330.04714.39
5.3.110.0230.06314.58
5.3.100.0270.07013.89
5.3.90.0330.06013.93
5.3.80.0200.05713.87
5.3.70.0230.03313.96
5.3.60.0130.04013.91
5.3.50.0200.03713.80
5.3.40.0370.05713.93
5.3.30.0270.07013.76
5.3.20.0200.03313.76
5.3.10.0100.03713.76
5.3.00.0170.04013.76
5.2.170.0170.06013.76
5.2.160.0270.05313.76
5.2.150.0170.06313.76
5.2.140.0170.04013.76
5.2.130.0200.02313.76
5.2.120.0100.03013.76
5.2.110.0130.03013.76
5.2.100.0130.03013.76
5.2.90.0100.03013.76
5.2.80.0130.03013.76
5.2.70.0100.03313.76
5.2.60.0170.02313.76
5.2.50.0200.02713.76
5.2.40.0130.03013.76
5.2.30.0070.03013.76
5.2.20.0100.03313.76
5.2.10.0130.04713.76
5.2.00.0100.03313.76
5.1.60.0200.03713.76
5.1.50.0130.05313.76
5.1.40.0100.02313.76
5.1.30.0100.02713.76
5.1.20.0130.02313.76
5.1.10.0170.02013.76
5.1.00.0070.03013.76
5.0.50.0070.02013.76
5.0.40.0100.01713.76
5.0.30.0070.03013.76
5.0.20.0030.02313.76
5.0.10.0030.02313.76
5.0.00.0030.03313.76
4.4.90.0030.01713.76
4.4.80.0030.01713.76
4.4.70.0070.01313.76
4.4.60.0070.02313.76
4.4.50.0030.01713.76
4.4.40.0030.03313.76
4.4.30.0030.02013.76
4.4.20.0030.01713.76
4.4.10.0070.01313.76
4.4.00.0030.02713.76
4.3.110.0070.01713.76
4.3.100.0070.01313.76
4.3.90.0030.01313.76
4.3.80.0070.02313.76
4.3.70.0070.01313.76
4.3.60.0030.01313.76
4.3.50.0070.01313.76
4.3.40.0000.02713.76
4.3.30.0070.01013.76
4.3.20.0030.01313.76
4.3.10.0030.01313.76
4.3.00.0000.01713.76

preferences:
138.41 ms | 1386 KiB | 7 Q