3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace a; define('a\\true', false, true); define('a\\false', true); $a = true; var_dump($a); $b = false; var_dump($b);

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.10.0100.00516.20
7.3.00.0040.00816.61
7.2.130.0090.00416.63
7.2.120.0120.00516.54
7.2.110.0090.00416.47
7.2.100.0050.00616.49
7.2.90.0030.01116.41
7.2.80.0080.00816.35
7.2.70.0070.00716.50
7.2.60.0090.00716.57
7.2.50.0100.00616.48
7.2.40.0060.01016.66
7.2.30.0110.00416.48
7.2.20.0060.00916.58
7.2.10.0060.01016.59
7.2.00.0050.00717.26
7.1.250.0060.00815.47
7.1.240.0130.00315.72
7.1.230.0180.00015.47
7.1.220.0120.00015.68
7.1.210.0050.01015.48
7.1.200.0070.00615.61
7.1.190.0110.00615.38
7.1.180.0090.00915.64
7.1.170.0120.00015.59
7.1.160.0090.00715.75
7.1.150.0090.00315.71
7.1.140.0080.00815.77
7.1.130.0100.00615.38
7.1.120.0070.00715.50
7.1.110.0150.00415.52
7.1.100.0070.00616.79
7.1.90.0130.00015.52
7.1.80.0080.01215.44
7.1.70.0070.00416.40
7.1.60.0070.00817.47
7.1.50.0100.00716.27
7.1.40.0090.00615.78
7.1.30.0110.00015.57
7.1.20.0060.01315.76
7.1.10.0140.00015.48
7.1.00.0030.04018.94
7.0.320.0130.00315.32
7.0.310.0060.00915.22
7.0.300.0160.00015.41
7.0.290.0070.00715.32
7.0.280.0110.00415.18
7.0.270.0090.00615.25
7.0.260.0040.01315.06
7.0.250.0150.00015.36
7.0.240.0080.00815.30
7.0.230.0050.01015.43
7.0.220.0050.00915.46
7.0.210.0080.00815.36
7.0.200.0250.00315.15
7.0.190.0090.00615.30
7.0.180.0100.00315.40
7.0.170.0120.00315.45
7.0.160.0150.00015.29
7.0.150.0100.00515.45
7.0.140.0060.04018.74
7.0.130.0150.00315.16
7.0.120.0060.02018.69
7.0.110.0090.00715.38
7.0.100.0110.00715.44
7.0.90.0120.00315.35
7.0.80.0110.00415.33
7.0.70.0080.00815.37
7.0.60.0070.04517.72
7.0.50.0090.04216.68
7.0.40.0090.03016.76
7.0.30.0210.03816.65
7.0.20.0130.04316.64
7.0.10.0170.04516.85
7.0.00.0060.02616.75
hhvm-3.22.00.0930.10990.51
hhvm-3.21.30.0800.12290.25
hhvm-3.21.00.0730.13590.82
hhvm-3.20.20.0810.13489.85
hhvm-3.19.20.0590.14989.17
hhvm-3.18.50.0740.13788.63
hhvm-3.18.40.0770.11188.66
hhvm-3.17.30.0790.10287.06
hhvm-3.15.40.0600.10685.13
hhvm-3.13.20.0660.12796.42
hhvm-3.12.140.0880.09694.96
hhvm-3.11.10.0770.13787.54
hhvm-3.10.10.0720.11284.36
5.6.380.0120.00314.20
5.6.370.0110.00413.88
5.6.360.0070.00714.29
5.6.350.0110.00314.44
5.6.340.0100.00514.13
5.6.330.0110.00414.38
5.6.320.0120.00213.78
5.6.310.0110.00314.04
5.6.300.0080.00814.42
5.6.290.0080.00914.45
5.6.280.0060.03917.70
5.6.270.0080.00814.14
5.6.260.0130.00414.19
5.6.250.0090.00913.97
5.6.240.0140.00314.25
5.6.230.0110.00314.49
5.6.220.0090.00614.18
5.6.210.0100.02217.53
5.6.200.0120.04416.31
5.6.190.0130.04017.36
5.6.180.0200.01717.44
5.6.170.0190.04417.38
5.6.160.0050.03517.36
5.6.150.0060.04916.23
5.6.140.0050.02416.24
5.6.130.0040.03116.20
5.6.120.0050.04717.60
5.6.110.0080.02317.70
5.6.100.0060.04717.55
5.6.90.0050.03717.62
5.6.80.0090.04217.32
5.6.70.0140.02217.41
5.6.60.0100.01014.30
5.6.50.0090.00914.23
5.6.40.0070.01014.25
5.6.30.0120.00514.40
5.6.20.0110.00514.19
5.6.10.0050.01014.29
5.6.00.0070.01314.16
5.5.380.0060.00610.80
5.5.370.0090.00310.99
5.5.360.0110.00411.08
5.5.350.0180.04315.80
5.5.340.0090.04314.40
5.5.330.0110.01815.57
5.5.320.0050.02215.50
5.5.310.0190.04115.65
5.5.300.0050.02414.42
5.5.290.0080.04214.54
5.5.280.0080.02315.96
5.5.270.0080.02315.82
5.5.260.0130.01915.90
5.5.250.0080.02815.76
5.5.240.0040.04815.49
5.5.230.0070.00311.00
5.5.220.0120.00311.13
5.5.210.0090.00310.96
5.5.200.0120.00411.16
5.5.190.0000.01111.13
5.5.180.0150.00010.87
5.5.170.0110.00413.87
5.5.160.0070.00710.96
5.5.150.0040.00810.78
5.5.140.0050.00511.13
5.5.130.0040.00410.79
5.5.120.0040.00810.98
5.5.110.0040.00710.96
5.5.100.0100.00311.14
5.5.90.0070.00211.12
5.5.80.0090.00610.94
5.5.70.0070.00410.70
5.5.60.0110.00310.87
5.5.50.0080.00211.05
5.5.40.0110.00011.00
5.5.30.0070.00710.99
5.5.20.0060.00310.82
5.5.10.0120.00310.88
5.5.00.0060.00310.75
5.4.450.0050.04214.98
5.4.440.0060.02315.17
5.4.430.0100.03315.13
5.4.420.0070.02215.21
5.4.410.0070.02515.12
5.4.400.0100.01614.77
5.4.390.0100.03814.87
5.4.380.0100.02314.94
5.4.370.0040.03515.10
5.4.360.0050.04114.71
5.4.350.0050.03014.92
5.4.340.0080.03514.96
5.4.330.0110.00010.61
5.4.320.0120.03514.82
5.4.310.0130.03014.86
5.4.300.0050.04315.01
5.4.290.0030.02815.00
5.4.280.0060.04415.06
5.4.270.0100.01714.80
5.4.260.0090.02014.82
5.4.250.0070.02715.03
5.4.240.0070.03014.80
5.4.230.0080.02014.99
5.4.220.0050.04314.95
5.4.210.0160.03514.95
5.4.200.0060.02814.90
5.4.190.0070.02614.90
5.4.180.0080.03415.05
5.4.170.0070.04015.07
5.4.160.0070.03514.98
5.4.150.0100.02614.65
5.4.140.0120.03313.63
5.4.130.0060.03513.64
5.4.120.0080.02213.47
5.4.110.0090.04013.50
5.4.100.0060.03613.73
5.4.90.0100.03813.52
5.4.80.0110.02313.63
5.4.70.0050.02413.53
5.4.60.0080.03513.61
5.4.50.0060.03813.56
5.4.40.0100.02013.63
5.4.30.0070.04013.45
5.4.20.0070.02213.75
5.4.10.0090.03713.58
5.4.00.0080.03013.13
5.3.290.0060.03112.53
5.3.280.0050.04112.46
5.3.270.0100.02312.46
5.3.260.0110.03812.46
5.3.250.0070.03812.40
5.3.240.0050.02712.44
5.3.230.0080.02612.41
5.3.220.0050.03812.46
5.3.210.0070.03312.37
5.3.200.0080.01812.44
5.3.190.0090.03612.34
5.3.180.0030.04312.46
5.3.170.0070.04012.51
5.3.160.0070.03912.52
5.3.150.0120.03512.41
5.3.140.0100.01812.38
5.3.130.0050.04112.40
5.3.120.0050.02712.48
5.3.110.0000.03012.46
5.3.100.0120.03812.02
5.3.90.0050.03212.16
5.3.80.0070.03911.89
5.3.70.0040.03112.00
5.3.60.0100.02012.30
5.3.50.0080.01811.97
5.3.40.0040.02211.98
5.3.30.0070.01812.09
5.3.20.0040.02211.97
5.3.10.0000.02511.81
5.3.00.0040.02111.84
5.2.170.0000.01910.48
5.2.160.0050.01710.53
5.2.150.0050.01710.46
5.2.140.0030.01810.45
5.2.130.0040.01810.43
5.2.120.0020.02010.51
5.2.110.0030.01510.38
5.2.100.0060.01510.44
5.2.90.0010.01810.51
5.2.80.0070.02210.50
5.2.70.0020.02110.46
5.2.60.0100.01610.44
5.2.50.0040.01610.38
5.2.40.0060.01810.38
5.2.30.0070.03110.34
5.2.20.0050.02810.37
5.2.10.0000.02210.37
5.2.00.0020.01910.20
5.1.60.0020.0159.94
5.1.50.0000.0179.90
5.1.40.0070.0139.92
5.1.30.0040.01310.13
5.1.20.0040.01410.11
5.1.10.0020.0159.98
5.1.00.0000.0169.95
5.0.50.0020.0109.20
5.0.40.0020.0129.13
5.0.30.0050.0129.02
5.0.20.0030.0109.05
5.0.10.0040.0109.07
5.0.00.0020.0199.02
4.4.90.0010.0118.80
4.4.80.0000.0198.80
4.4.70.0030.0108.80
4.4.60.0000.0138.80
4.4.50.0030.0158.80
4.4.40.0020.0158.80
4.4.30.0030.0108.80
4.4.20.0040.0098.80
4.4.10.0020.0108.80
4.4.00.0000.0178.80
4.3.110.0030.0108.80
4.3.100.0020.0088.80
4.3.90.0030.0088.80
4.3.80.0010.0148.80
4.3.70.0020.0098.80
4.3.60.0040.0078.80
4.3.50.0020.0098.80
4.3.40.0020.0148.80
4.3.30.0000.0108.80
4.3.20.0000.0108.80
4.3.10.0020.0088.80
4.3.00.0020.0078.80