3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $s = 12.5555555555555555955555555; public function __toString(){return (string)$this->s;} } $a = new A;echo $a;
based on 0jeHW

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.0rc40.0140.00598.97
7.3.0rc30.0170.01015.77
7.3.0beta10.0000.00512.50
7.2.00.0090.01119.20
7.1.200.0060.00615.78
7.1.100.0100.00017.70
7.1.70.0040.00717.04
7.1.60.0090.01519.40
7.1.50.0000.02416.78
7.1.00.0100.07022.28
7.0.200.0040.00416.68
7.0.140.0000.07722.00
7.0.60.0070.05019.82
7.0.50.0170.07017.77
7.0.40.0130.08320.20
7.0.30.0370.06320.33
7.0.20.0200.07720.15
7.0.10.0170.05720.30
7.0.00.0030.04720.18
5.6.280.0030.07320.93
5.6.210.0170.06720.50
5.6.200.0070.07318.20
5.6.190.0100.05720.48
5.6.180.0200.06020.42
5.6.170.0400.06720.71
5.6.160.0030.08020.54
5.6.150.0100.08318.14
5.6.140.0070.04318.14
5.6.130.0070.05018.15
5.6.120.0070.07321.04
5.6.110.0200.06320.99
5.6.100.0100.07020.98
5.6.90.0100.07021.02
5.6.80.0100.03720.41
5.6.70.4500.04020.28
5.5.350.0330.07320.42
5.5.340.0070.05017.99
5.5.330.0030.07720.32
5.5.320.0300.05020.30
5.5.310.0230.04320.42
5.5.300.0070.03718.04
5.5.290.0000.05717.96
5.5.280.0070.08720.79
5.5.270.0170.07020.79
5.5.260.0170.07720.88
5.5.250.0030.06320.77
5.5.240.0200.08020.04
5.4.450.0270.04719.34
5.4.440.0830.04719.55
5.4.430.0730.06019.48
5.4.420.0570.07019.54
5.4.410.0900.04719.29
5.4.400.0800.05319.18
5.4.390.0800.05319.24
5.4.380.0070.06018.77
5.4.370.0130.04318.68
5.4.360.0100.03718.60
5.4.350.0120.06812.02
5.4.340.0060.04612.02
5.4.320.0070.03612.50
5.4.310.0070.03912.50
5.4.300.0100.04012.50
5.4.290.0040.04012.50
5.4.280.0040.03912.40
5.4.270.0070.03512.40
5.4.260.0060.03712.40
5.4.250.0040.03912.40
5.4.240.0060.03512.40
5.4.230.0050.03812.39
5.4.220.0030.04012.39
5.4.210.0070.03812.39
5.4.200.0060.04112.39
5.4.190.0080.04412.39
5.4.180.0080.03812.39
5.4.170.0100.03712.40
5.4.160.0090.03712.39
5.4.150.0080.03612.39
5.4.140.0050.03912.07
5.4.130.0060.04012.06
5.4.120.0050.03912.02
5.4.110.0060.03412.01
5.4.100.0040.03612.01
5.4.90.0060.03712.01
5.4.80.0040.03812.01
5.4.70.0060.03412.01
5.4.60.0030.03712.01
5.4.50.0040.04412.01
5.4.40.0040.03612.00
5.4.30.0080.03512.00
5.4.20.0070.03411.99
5.4.10.0030.03712.00
5.4.00.0070.03511.48
5.3.290.0050.04512.80
5.3.280.0090.03712.71
5.3.270.0070.03712.73
5.3.260.0080.04012.72
5.3.250.0050.03812.72
5.3.240.0070.03512.72
5.3.230.0090.04512.70
5.3.220.0050.04512.68
5.3.210.0050.04112.68
5.3.200.0040.03812.68
5.3.190.0030.03912.68
5.3.180.0060.04312.68
5.3.170.0090.03812.67
5.3.160.0050.03712.67
5.3.150.0060.03612.67
5.3.140.0080.04112.66
5.3.130.0050.04212.66
5.3.120.0060.03912.66
5.3.110.0070.03712.66
5.3.100.0060.04212.12
5.3.90.0060.03812.10
5.3.80.0030.04112.09
5.3.70.0060.03712.09
5.3.60.0100.03812.08
5.3.50.0060.04012.04
5.3.40.0080.03712.02
5.3.30.0040.03711.98
5.3.20.0110.03011.78
5.3.10.0070.03411.73
5.3.00.0070.03411.71
5.2.170.0030.0329.22
5.2.160.0050.0289.22
5.2.150.0070.0279.22
5.2.140.0070.0279.22
5.2.130.0090.0299.18
5.2.120.0050.0349.18
5.2.110.0060.0319.18
5.2.100.0080.0279.18
5.2.90.0070.0279.17
5.2.80.0050.0319.18
5.2.70.0060.0359.17
5.2.60.0060.0299.13
5.2.50.0060.0319.10
5.2.40.0050.0289.07
5.2.30.0030.0319.05
5.2.20.0030.0309.04
5.2.10.0040.0288.96
5.2.00.0050.0288.82
5.1.60.0040.0318.11
5.1.50.0030.0268.10
5.1.40.0030.0268.08
5.1.30.0040.0268.43
5.1.20.0030.0318.45
5.1.10.0060.0248.18
5.1.00.0080.0248.18
5.0.50.0060.0226.66
5.0.40.0050.0186.51
5.0.30.0050.0296.33
5.0.20.0020.0206.31
5.0.10.0010.0226.29
5.0.00.0020.0316.28
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0030.0174.75
4.4.60.0050.0124.75
4.4.50.0020.0154.77
4.4.40.0000.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0040.0184.85
4.4.00.0030.0264.75
4.3.110.0010.0174.67
4.3.100.0010.0164.67
4.3.90.0040.0134.63
4.3.80.0030.0294.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0010.0164.63
4.3.40.0020.0244.54
4.3.30.0030.0153.30
4.3.20.0020.0163.28
4.3.10.0030.0143.24
4.3.00.0430.0237.12