3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function showDecimals() {return constant("self::" . __FUNCTION__);} const showDecimals = 'showDecimals'; } //echo A::showDecimals; $a = new A; echo $a->showDecimals();
based on eRatS

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.0110.00416.59
7.3.00.0040.00916.31
7.2.130.0070.00616.80
7.2.120.0020.01216.90
7.2.110.0030.01016.66
7.2.100.0060.00716.94
7.2.90.0020.01016.60
7.2.80.0020.01016.69
7.2.70.0030.01016.71
7.2.60.0050.00716.84
7.2.50.0070.00316.81
7.2.40.0020.00716.67
7.2.30.0010.00816.68
7.2.20.0060.00716.84
7.2.10.0060.00817.00
7.2.00.0040.00717.57
7.1.250.0020.00915.51
7.1.240.0040.01115.82
7.1.230.0060.00615.75
7.1.220.0000.00915.60
7.1.210.0070.00715.60
7.1.200.0050.00715.62
7.1.190.0030.01015.58
7.1.180.0090.00615.55
7.1.170.0070.00015.46
7.1.160.0030.00915.68
7.1.150.0000.01515.51
7.1.140.0000.01415.68
7.1.130.0000.01115.57
7.1.120.0070.00715.80
7.1.110.0090.00315.83
7.1.100.0060.00616.83
7.1.90.0000.00815.64
7.1.80.0050.00315.59
7.1.70.0030.00616.29
7.1.60.0070.01017.29
7.1.50.0030.01615.99
7.1.40.0030.01015.76
7.1.30.0040.00715.36
7.1.20.0040.00415.65
7.1.10.0070.00715.48
7.1.00.0080.03819.11
7.0.330.0090.00314.88
7.0.320.0110.00015.47
7.0.310.0000.01015.11
7.0.300.0080.00615.04
7.0.290.0070.00315.34
7.0.280.0070.00715.39
7.0.270.0050.00215.31
7.0.260.0070.00715.38
7.0.250.0030.01015.24
7.0.240.0030.00915.31
7.0.230.0100.00315.09
7.0.220.0090.00014.98
7.0.210.0040.01114.93
7.0.200.0130.00915.93
7.0.190.0050.00315.07
7.0.180.0000.01115.32
7.0.170.0000.01115.32
7.0.160.0080.00615.43
7.0.150.0060.00315.14
7.0.140.0070.00715.48
7.0.130.0060.00914.93
7.0.120.0130.00015.45
7.0.110.0030.00915.41
7.0.100.0030.00915.35
7.0.90.0000.00915.39
7.0.80.0000.01215.38
7.0.70.0030.00615.25
7.0.60.0030.04018.35
7.0.50.0100.04316.69
7.0.40.0050.03116.67
7.0.30.0100.02716.77
7.0.20.0200.04116.76
7.0.10.0010.02916.83
7.0.00.0080.04516.66
5.6.380.0060.00914.29
5.6.370.0000.01014.04
5.6.360.0060.00714.27
5.6.350.0030.00614.48
5.6.340.0060.00614.51
5.6.330.0060.00314.03
5.6.320.0030.00514.27
5.6.310.0080.00614.18
5.6.300.0040.00714.32
5.6.290.0070.00714.37
5.6.280.0070.02017.60
5.6.270.0030.00714.03
5.6.260.0030.01014.23
5.6.250.0100.00314.11
5.6.240.0030.01014.08
5.6.230.0000.00814.32
5.6.220.0070.00714.23
5.6.210.0080.02017.52
5.6.200.0080.03116.10
5.6.190.0070.02617.31
5.6.180.0300.03817.28
5.6.170.0200.03817.23
5.6.160.0150.03517.37
5.6.150.0050.04116.37
5.6.140.0080.04016.26
5.6.130.0100.04516.17
5.6.120.0050.02417.62
5.6.110.0080.03017.79
5.6.100.0090.03317.71
5.6.90.0080.04317.67
5.6.80.0090.03717.19
5.6.70.0060.00314.36
5.6.60.0000.01214.51
5.6.50.0080.00414.38
5.6.40.0000.01214.11
5.6.30.0040.01114.07
5.6.20.0070.00714.30
5.6.10.0070.00714.30
5.6.00.0000.01614.22
5.5.380.0090.00311.18
5.5.370.0030.00711.29
5.5.360.0000.01011.18
5.5.350.0140.03915.80
5.5.340.0100.03814.64
5.5.330.0080.02715.74
5.5.320.0280.02115.73
5.5.310.0170.04115.76
5.5.300.0030.02214.57
5.5.290.0070.03714.57
5.5.280.0040.04316.04
5.5.270.0090.02816.00
5.5.260.0090.04116.02
5.5.250.0100.02915.88
5.5.240.0100.04015.69
5.5.230.0000.01211.18
5.5.220.0050.00511.18
5.5.210.0070.00311.18
5.5.200.0000.01111.32
5.5.190.0100.00011.18
5.5.180.0050.00511.18
5.5.170.0030.00611.18
5.5.160.0090.00311.18
5.5.150.0110.00011.27
5.5.140.0000.01111.26
5.5.130.0070.00011.18
5.5.120.0040.00711.18
5.5.110.0060.00611.26
5.5.100.0030.00611.18
5.5.90.0000.00611.18
5.5.80.0030.00311.18
5.5.70.0030.00611.18
5.5.60.0030.01011.18
5.5.50.0030.00911.23
5.5.40.0050.00311.18
5.5.30.0030.00611.18
5.5.20.0080.00311.18
5.5.10.0060.00011.18
5.5.00.0070.00311.18
5.4.450.0700.05319.50
5.4.440.0470.06319.63
5.4.430.0670.04319.57
5.4.420.0630.05019.53
5.4.410.0600.05019.37
5.4.400.0570.05318.95
5.4.390.0530.05719.30
5.4.380.0600.05718.95
5.4.370.0530.06319.30
5.4.360.0730.05319.17
5.4.350.0670.04719.13
5.4.340.0770.04718.93
5.4.320.0500.06019.17
5.4.310.0800.04019.25
5.4.300.0670.05319.20
5.4.290.0730.05019.17
5.4.280.0670.05719.21
5.4.270.0600.06019.21
5.4.260.0630.05719.23
5.4.250.0570.05319.14
5.4.240.0600.06018.93
5.4.230.0630.05719.20
5.4.220.0770.04319.13
5.4.210.0830.03719.16
5.4.200.0770.04318.93
5.4.190.0600.05319.20
5.4.180.0600.04719.27
5.4.170.0570.05019.08
5.4.160.0630.05019.25
5.4.150.0600.05018.92
5.4.140.0600.04716.49
5.4.130.0500.05716.50
5.4.120.0670.05316.48
5.4.110.0700.05316.50
5.3.290.0670.05714.70
5.3.280.0700.04714.58
5.3.270.0570.05314.60
5.3.260.0570.05314.75
5.3.250.0630.04314.76
5.3.240.0600.05014.59
5.3.230.0600.05314.54
5.3.220.0830.03714.55
5.3.210.0730.06314.71