3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class e { protected $options = array( 'separator' => DIRECTORY_SEPARATOR ); public function getOptions() { return $this->options; } } $e = new e; var_dump($e);

Here you find the average performance (time & memory) of each version. A greyed 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.14
7.1.100.0080.00418.13
7.1.70.0080.00017.18
7.1.60.0130.01019.46
7.1.50.0040.00716.87
7.1.00.0130.06722.37
7.0.200.0000.00816.55
7.0.140.0000.07722.18
7.0.60.0000.04319.94
7.0.50.0100.06317.88
7.0.40.0100.08320.14
7.0.30.0270.04020.07
7.0.20.0230.06320.22
7.0.10.0100.04320.33
7.0.00.0100.08320.19
5.6.280.0030.07021.11
5.6.210.0070.06320.59
5.6.200.0070.06018.29
5.6.190.0100.04720.52
5.6.180.0130.05320.46
5.6.170.0230.03320.55
5.6.160.0070.08320.51
5.6.150.0100.04318.19
5.6.140.0170.07318.15
5.6.130.0100.05018.19
5.6.120.0070.05020.98
5.6.110.0070.07720.99
5.6.100.0100.07721.02
5.6.90.0070.07320.99
5.6.80.0000.08720.39
5.5.350.0100.07720.41
5.5.340.0070.08317.97
5.5.330.0100.05020.27
5.5.320.0270.04020.31
5.5.310.0400.06720.23
5.5.300.0130.07318.06
5.5.290.0030.06017.98
5.5.280.0100.08020.68
5.5.270.0030.08720.84
5.5.260.0070.06320.97
5.5.250.0100.06320.78
5.5.240.0270.03720.15
5.4.450.0900.06019.60
5.4.440.0900.05319.46
5.4.430.0700.08019.33
5.4.420.0130.05319.30
5.4.410.0800.05019.42
5.4.400.0730.05719.28
5.4.390.0100.06719.25
5.4.380.0300.05018.53
5.4.370.0270.05018.49
5.4.360.0400.06018.74
5.4.350.0400.05018.78
5.4.340.0430.03718.59
5.4.320.0070.03512.50
5.4.310.0050.03812.50
5.4.300.0090.03712.50
5.4.290.0080.04312.48
5.4.280.0140.04712.38
5.4.270.0070.06712.38
5.4.260.0080.04112.38
5.4.250.0070.04212.38
5.4.240.0090.03512.38
5.4.230.0080.04412.37
5.4.220.0070.04512.38
5.4.210.0100.03812.38
5.4.200.0100.04412.37
5.4.190.0130.03812.37
5.4.180.0100.05212.37
5.4.170.0110.06812.38
5.4.160.0070.04412.38
5.4.150.0090.04712.37
5.4.140.0110.03712.05
5.4.130.0060.04412.04
5.4.120.0080.03612.00
5.4.110.0100.03411.99
5.4.100.0090.03412.00
5.4.90.0230.06912.00
5.4.80.0100.03912.00
5.4.70.0080.03912.00
5.4.60.0030.05112.00
5.4.50.0080.03611.99
5.4.40.0080.03411.98
5.4.30.0090.04611.98
5.4.20.0090.03711.97
5.4.10.0040.03811.98
5.4.00.0050.03911.46
5.3.290.0070.03812.80
5.3.280.0090.03912.71
5.3.270.0140.04112.72
5.3.260.0070.04312.72
5.3.250.0140.03712.71
5.3.240.0100.04012.72
5.3.230.0170.05412.71
5.3.220.0150.05512.68
5.3.210.0090.04612.68
5.3.200.0090.04612.68
5.3.190.0130.07212.68
5.3.180.0070.04412.67
5.3.170.0070.03712.67
5.3.160.0090.06112.68
5.3.150.0080.05912.67
5.3.140.0070.04412.66
5.3.130.0080.04512.65
5.3.120.0070.04312.66
5.3.110.0100.03612.66
5.3.100.0080.03612.11
5.3.90.0050.04012.09
5.3.80.0020.04112.09
5.3.70.0070.03912.09
5.3.60.0040.04112.07
5.3.50.0050.04012.03
5.3.40.0070.04212.02
5.3.30.0060.03511.98
5.3.20.0050.03711.76
5.3.10.0070.03611.72
5.3.00.0050.04011.71
5.2.170.0060.0299.21
5.2.160.0060.0319.22
5.2.150.0060.0319.22
5.2.140.0070.0479.21
5.2.130.0080.0279.18
5.2.120.0050.0299.18
5.2.110.0070.0289.18
5.2.100.0060.0299.17
5.2.90.0070.0469.17
5.2.80.0080.0469.17
5.2.70.0050.0449.17
5.2.60.0060.0539.12
5.2.50.0110.0479.09
5.2.40.0050.0349.07
5.2.30.0090.0299.05
5.2.20.0070.0519.03
5.2.10.0080.0348.93
5.2.00.0120.0468.80
5.1.60.0080.0258.09
5.1.50.0100.0428.08
5.1.40.0060.0298.06
5.1.30.0070.0288.41
5.1.20.0070.0528.44
5.1.10.0110.0548.16
5.1.00.0060.0368.16
5.0.50.0020.0526.64
5.0.40.0030.0306.49
5.0.30.0080.0446.31
5.0.20.0070.0226.27
5.0.10.0110.0216.25
5.0.00.0020.0386.24
4.4.90.0020.0184.78
4.4.80.0050.0144.75
4.4.70.0020.0174.75
4.4.60.0030.0174.75
4.4.50.0010.0184.77
4.4.40.0030.0254.71
4.4.30.0040.0154.76
4.4.20.0040.0154.84
4.4.10.0040.0174.85
4.4.00.0020.0264.76
4.3.110.0000.0184.66
4.3.100.0030.0154.66
4.3.90.0030.0154.64
4.3.80.0030.0264.58
4.3.70.0020.0164.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0284.54
4.3.30.0040.0173.30
4.3.20.0010.0203.28
4.3.10.0030.0203.23
4.3.00.0170.03310.55