3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pdo = new PDO("sqlite::memory:"); $ppdo = clone $pdo; echo $ppdo->query("select 1")->fetchColumn();

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.3.40.0070.00414.92
7.3.30.0080.01014.96
7.3.20.0080.00716.87
7.3.10.0100.00716.86
7.3.00.0080.00816.95
7.2.170.0060.00515.05
7.2.160.0100.00915.13
7.2.150.0090.00817.10
7.2.140.0070.00917.08
7.2.130.0100.00717.05
7.2.120.0100.01017.06
7.2.110.0110.00717.02
7.2.100.0120.00817.09
7.2.90.0080.00917.13
7.2.80.0090.00717.05
7.2.70.0100.00717.00
7.2.60.0060.00917.07
7.2.50.0110.00617.06
7.2.40.0080.00917.17
7.2.30.0100.00917.12
7.2.20.0080.00617.07
7.2.10.0090.00717.05
7.2.00.0070.00817.13
7.1.280.0120.00215.89
7.1.270.0080.00815.90
7.1.260.0080.00915.85
7.1.250.0060.00815.83
7.1.240.0100.00515.76
7.1.230.0100.00715.73
7.1.220.0110.00815.78
7.1.210.0070.00515.66
7.1.200.0080.00815.65
7.1.190.0130.00415.80
7.1.180.0100.00515.83
7.1.170.0120.00515.76
7.1.160.0090.00715.84
7.1.150.0120.00715.77
7.1.140.0100.00815.76
7.1.130.0070.01015.89
7.1.120.0120.00515.85
7.1.110.0100.00615.94
7.1.100.0130.00515.92
7.1.90.0090.00615.99
7.1.80.0090.00615.98
7.1.70.0090.00515.91
7.1.60.0110.00515.84
7.1.50.0120.00715.85
7.1.40.0090.00415.97
7.1.30.0080.00515.85
7.1.20.0050.01015.72
7.1.10.0080.00715.85
7.1.00.0100.00515.83
7.0.330.0080.01015.56
7.0.320.0090.00815.56
7.0.310.0100.00615.57
7.0.300.0090.00715.53
7.0.290.0060.00815.60
7.0.280.0090.00715.71
7.0.270.0070.00815.64
7.0.260.0110.00815.67
7.0.250.0110.00515.60
7.0.240.0080.00715.50
7.0.230.0110.00715.58
7.0.220.0130.00115.69
7.0.210.0070.00615.59
7.0.200.0130.00615.52
7.0.190.0110.00615.55
7.0.180.0090.00515.60
7.0.170.0100.00515.57
7.0.160.0080.00915.54
7.0.150.0040.01115.66
7.0.140.0080.00915.58
7.0.130.0080.00715.67
7.0.120.0090.00515.59
7.0.110.0060.01015.47
7.0.100.0080.00715.50
7.0.90.0100.00615.57
7.0.80.0090.00715.55
7.0.70.0110.00715.56
7.0.60.0090.00915.73
7.0.50.0070.01015.73
7.0.40.0130.00615.79
7.0.30.0160.00415.23
7.0.20.0130.00515.77
7.0.10.0110.00915.72
7.0.00.0100.00715.67
hhvm-3.22.00.1070.14390.22
hhvm-3.21.30.0980.14688.86
hhvm-3.21.00.0790.14888.75
hhvm-3.20.20.0870.13689.25
hhvm-3.19.20.0910.13388.54
hhvm-3.18.50.0920.12386.70
hhvm-3.18.40.0830.14186.92
hhvm-3.17.30.0730.13086.20
hhvm-3.15.40.0790.13883.95
hhvm-3.13.20.1170.16195.08
hhvm-3.12.140.0900.15094.17
hhvm-3.11.10.1140.17486.01
hhvm-3.10.10.1120.16583.34
5.6.400.0090.00714.49
5.6.390.0090.00814.53
5.6.380.0130.00514.63
5.6.370.0100.00814.51
5.6.360.0060.01214.53
5.6.350.0100.00614.61
5.6.340.0120.00414.63
5.6.330.0070.00814.56
5.6.320.0120.00814.70
5.6.310.0100.00714.48
5.6.300.0080.00614.58
5.6.290.0070.00914.67
5.6.280.0120.00614.46
5.6.270.0090.00814.50
5.6.260.0150.00514.67
5.6.250.0100.00714.40
5.6.240.0100.01014.57
5.6.230.0100.00714.65
5.6.220.0100.00714.60
5.6.210.0100.00914.57
5.6.200.0110.00914.64
5.6.190.0090.01014.56
5.6.180.0050.00914.65
5.6.170.0160.00414.54
5.6.160.0100.00514.58
5.6.150.0090.00514.66
5.6.140.0050.00714.39
5.6.130.0090.00614.42
5.6.120.0110.00614.51
5.6.110.0110.00514.61
5.6.100.0090.01314.61
5.6.90.0100.00914.56
5.6.80.0110.00714.46
5.6.70.0060.00814.50
5.6.60.0050.01314.54
5.6.50.0080.00814.59
5.6.40.0100.00814.50
5.6.30.0080.01014.49
5.6.20.0080.00914.63
5.6.10.0140.00514.35
5.6.00.0090.00914.47
5.5.380.0170.00514.67
5.5.370.0080.01114.61
5.5.360.0180.00814.60
5.5.350.0140.00714.49
5.5.340.0180.00814.49
5.5.330.0110.00814.63
5.5.320.0100.00714.64
5.5.310.0110.01014.60
5.5.300.0070.00914.42
5.5.290.0150.00714.51
5.5.280.0160.00814.62
5.5.270.0110.00714.56
5.5.260.0070.01214.64
5.5.250.0150.00714.48
5.5.240.0110.01014.46
5.5.230.0110.01014.41
5.5.220.0100.00614.43
5.5.210.0150.00914.45
5.5.200.0140.00714.38
5.5.190.0120.01214.46
5.5.180.0130.00714.56
5.5.170.0100.01114.49
5.5.160.0110.00714.55
5.5.150.0130.00614.46
5.5.140.0110.00614.60
5.5.130.0150.00314.46
5.5.120.0150.00414.38
5.5.110.0100.01314.54
5.5.100.0120.00614.54
5.5.90.0140.00614.54
5.5.80.0130.00714.44
5.5.70.0120.00814.53
5.5.60.0140.00714.44
5.5.50.0090.00814.36
5.5.40.0120.00914.44
5.5.30.0120.00714.38
5.5.20.0130.00914.35
5.5.10.0110.00714.38
5.5.00.0100.01014.33
5.4.450.0130.00411.28
5.4.440.0120.00411.23
5.4.430.0120.00411.30
5.4.420.0110.00511.16
5.4.410.0110.00511.09
5.4.400.0090.00511.06
5.4.390.0100.00411.04
5.4.380.0100.00411.06
5.4.370.0110.00511.04
5.4.360.0090.00611.04
5.4.350.0100.00611.13
5.4.340.0100.00511.20
5.4.330.0080.00611.13
5.4.320.0100.00411.06
5.4.310.0110.00611.13
5.4.300.0100.00411.17
5.4.290.0060.00611.04
5.4.280.0120.00410.99
5.4.270.0070.00711.10
5.4.260.0070.00711.02
5.4.250.0110.00411.13
5.4.240.0070.00711.12
5.4.230.0080.00511.06
5.4.220.0100.00311.06
5.4.210.0110.00211.08
5.4.200.0090.00711.08
5.4.190.0060.00510.93
5.4.180.0120.00311.03
5.4.170.0080.00411.03
5.4.160.0090.00310.94
5.4.150.0090.00511.13
5.4.140.0080.00711.15
5.4.130.0120.00511.19
5.4.120.0080.00611.13
5.4.110.0090.00811.08
5.4.100.0130.00311.22
5.4.90.0080.00511.17
5.4.80.0070.00811.16
5.4.70.0090.00511.16
5.4.60.0090.00511.02
5.4.50.0100.00511.16
5.4.40.0100.00611.15
5.4.30.0110.00611.12
5.4.20.0090.00411.10
5.4.10.0090.00411.12
5.4.00.0090.00611.19
5.3.290.0090.00510.88
5.3.280.0090.00410.77
5.3.270.0090.00510.79
5.3.260.0080.00510.74
5.3.250.0120.00310.80
5.3.240.0120.00410.68
5.3.230.0090.00610.70
5.3.220.0090.00510.72
5.3.210.0120.00510.64
5.3.200.0060.00710.70
5.3.190.0080.00410.74
5.3.180.0100.00510.71
5.3.170.0070.00710.79
5.3.160.0090.00610.77
5.3.150.0090.00410.85
5.3.140.0120.00410.74
5.3.130.0140.00410.74
5.3.120.0100.00110.74
5.3.110.0100.00610.78
5.3.100.0090.00710.58
5.3.90.0100.00710.74
5.3.80.0070.00410.57
5.3.70.0080.00610.67
5.3.60.0050.00710.65
5.3.50.0090.00310.55
5.3.40.0050.00710.51
5.3.30.0090.00510.56
5.3.20.0050.00910.46
5.3.10.0080.00710.44
5.3.00.0110.00410.32
5.2.170.0060.0049.45
5.2.160.0070.0039.43
5.2.150.0090.0019.41
5.2.140.0060.0069.28
5.2.130.0110.0029.38
5.2.120.0070.0059.22
5.2.110.0060.0049.27
5.2.100.0080.0079.28
5.2.90.0060.0049.34
5.2.80.0100.0049.20
5.2.70.0080.0059.25
5.2.60.0080.0059.05
5.2.50.0070.0049.29
5.2.40.0080.0059.29
5.2.30.0100.0019.18
5.2.20.0060.0059.16
5.2.10.0100.0019.02
5.2.00.0070.0069.04
5.1.60.0090.0038.53
5.1.50.0070.0048.47
5.1.40.0080.0038.55
5.1.30.0050.0078.55
5.1.20.0090.0038.55
5.1.10.0070.0038.55
5.1.00.0070.0028.47
5.0.50.0060.0058.47
5.0.40.0030.0068.47
5.0.30.0060.0058.47
5.0.20.0080.0008.47
5.0.10.0050.0048.47
5.0.00.0070.0058.47
4.4.90.0040.0048.47
4.4.80.0050.0028.47
4.4.70.0050.0028.47
4.4.60.0020.0058.47
4.4.50.0040.0038.47
4.4.40.0040.0058.47
4.4.30.0060.0038.47
4.4.20.0060.0018.47
4.4.10.0020.0048.47
4.4.00.0050.0048.47
4.3.110.0030.0028.47
4.3.100.0050.0038.47
4.3.90.0030.0048.47
4.3.80.0040.0048.47
4.3.70.0020.0058.47
4.3.60.0040.0018.47
4.3.50.0070.0028.47
4.3.40.0030.0068.47
4.3.30.0010.0078.47
4.3.20.0040.0048.47
4.3.10.0030.0068.47
4.3.00.0030.0048.47