3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pdo = new PDO('sqlite::memory:'); $pdo->exec("CREATE TABLE foo( field1 INT, field2 INT, )"); var_dump($pdo->query("SELECT * FROM foo"));
based on ZMNPY

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.00.0060.00319.93
7.1.100.0000.01118.75
7.1.70.0040.00417.80
7.1.60.0070.01719.40
7.1.50.0040.00717.23
7.1.00.0000.08022.52
7.0.200.0460.00415.25
7.0.60.0400.06720.10
7.0.50.0230.03317.86
7.0.40.0070.04720.00
7.0.30.0270.08020.16
7.0.20.0200.04320.13
7.0.10.0070.07320.10
7.0.00.0030.08320.07
5.6.280.0030.04321.08
5.6.210.0000.05320.62
5.6.200.0100.04318.19
5.6.190.0030.07320.51
5.6.180.0300.07320.68
5.6.170.0430.07020.42
5.6.160.0000.05020.56
5.6.150.0100.03318.29
5.6.140.0070.05018.28
5.6.130.0030.08018.19
5.6.120.0070.03721.22
5.6.110.0070.04021.16
5.6.100.0030.08721.14
5.6.90.0130.07321.04
5.6.80.0100.04720.58
5.5.350.0200.08320.54
5.5.340.0070.05318.10
5.5.330.0070.05020.46
5.5.320.0470.04720.34
5.5.310.0200.08320.36
5.5.300.0070.04018.09
5.5.290.0070.06317.99
5.5.280.0030.06320.92
5.5.270.0170.04320.91
5.5.260.0030.08720.81
5.5.250.0130.07020.63
5.5.240.0230.08020.31
5.4.450.0700.04719.39
5.4.440.0670.07019.36
5.4.430.0700.05019.32
5.4.420.0630.05319.32
5.4.410.0770.05019.39
5.4.400.0730.04319.00
5.4.390.0900.05018.82
5.4.380.0830.05018.99
5.4.370.0970.04319.09
5.4.360.0770.05018.99
5.4.350.0800.05319.12
5.4.340.0730.04719.26
5.4.320.0730.04719.25
5.4.310.0700.05718.86
5.4.300.0670.05319.10
5.4.290.0700.05719.09
5.4.280.0700.05019.03
5.4.270.0830.05019.21
5.4.260.0830.05019.09
5.4.250.0800.05718.82
5.4.240.0730.04319.03
5.4.230.0630.05719.09
5.4.220.0670.06019.24
5.4.210.0730.04719.07
5.4.200.0900.04719.08
5.4.190.0900.05019.05
5.4.180.1000.03718.98
5.4.170.0630.05019.03
5.4.160.0930.04319.05
5.4.150.0870.05019.17
5.4.140.0970.04016.32
5.4.130.0270.06716.45
5.4.120.0070.05016.27
5.3.290.0900.06714.54
5.3.280.0630.05014.53
5.3.270.0770.05714.65
5.3.260.0870.05014.46
5.3.250.0830.05314.55
5.3.240.0770.06014.50
5.3.230.0170.04314.50
5.3.220.0330.04714.37