3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function exec(array &$context) { $context['bla'] = 'hoi'; } } class B extends A { public function exec(array $context) { parent::exec($context); var_dump($context); } } $b = new B(); $b->exec([]);
based on ai9mg

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.0120.00816.25
7.3.00.0150.00516.48
7.2.130.0080.00916.56
7.2.120.0120.00616.53
7.2.110.0060.01216.64
7.2.100.0110.00816.70
7.2.90.0090.00816.70
7.2.80.0080.00916.55
7.2.70.0070.00816.59
7.2.60.0100.00516.65
7.2.50.0090.00716.43
7.2.40.0100.01016.61
7.2.30.0070.01016.50
7.2.20.0180.00616.73
7.2.10.0160.00416.43
7.2.00.0080.00617.37
7.1.250.0080.00915.46
7.1.240.0030.00615.76
7.1.230.0040.00415.84
7.1.220.0040.00815.69
7.1.210.0070.00415.72
7.1.200.0020.01115.82
7.1.190.0000.00815.30
7.1.180.0070.00315.45
7.1.170.0030.00915.47
7.1.160.0040.00815.82
7.1.150.0090.00615.80
7.1.140.0070.00715.73
7.1.130.0030.01015.66
7.1.120.0110.00315.72
7.1.110.0070.00715.93
7.1.100.0050.00616.98
7.1.90.0040.00415.73
7.1.80.0040.00815.78
7.1.70.0030.00616.61
7.1.60.0050.01317.43
7.1.50.0030.01016.20
7.1.40.0040.01115.80
7.1.30.0120.00015.75
7.1.20.0090.00615.74
7.1.10.0060.00615.93
7.1.00.0020.04519.01
7.0.330.0030.00615.49
7.0.320.0070.01015.35
7.0.310.0040.00415.38
7.0.300.0030.01015.25
7.0.290.0030.00615.33
7.0.280.0070.00715.12
7.0.270.0070.01015.27
7.0.260.0000.01515.48
7.0.250.0080.00415.25
7.0.240.0060.00315.25
7.0.230.0030.01015.33
7.0.220.0030.00715.22
7.0.210.0030.01015.59
7.0.200.0060.00215.81
7.0.190.0040.00815.58
7.0.180.0030.00615.30
7.0.170.0030.00915.33
7.0.160.0120.00315.40
7.0.150.0060.00915.45
7.0.140.0000.01015.14
7.0.130.0070.00715.43
7.0.120.0030.01115.57
7.0.110.0030.01315.54
7.0.100.0060.00615.39
7.0.90.0080.00415.23
7.0.80.0040.00815.54
7.0.70.0080.00315.43
7.0.60.0180.03517.69
7.0.50.0070.04416.73
7.0.40.0080.02816.73
7.0.30.0170.03616.79
7.0.20.0160.02616.93
7.0.10.0050.04816.86
7.0.00.0070.02316.82
5.6.380.0150.00014.36
5.6.370.0000.01714.30
5.6.360.0000.00814.47
5.6.350.0040.01114.36
5.6.340.0060.00614.31
5.6.330.0030.00614.25
5.6.320.0060.00314.70
5.6.310.0060.00614.51
5.6.300.0060.00313.99
5.6.290.0030.01014.30
5.6.280.0070.02017.78
5.6.270.0060.00314.43
5.6.260.0060.00614.39
5.6.250.0030.00914.30
5.6.240.0030.00614.32
5.6.230.0090.00314.48
5.6.220.0000.01414.24
5.6.210.0070.03417.36
5.6.200.0050.04516.21
5.6.190.0100.02717.55
5.6.180.0130.03317.33
5.6.170.0150.03617.46
5.6.160.0070.02717.53
5.6.150.0090.02216.33
5.6.140.0040.02416.34
5.6.130.0060.04616.24
5.6.120.0070.04417.71
5.6.110.0090.03717.76
5.6.100.0040.02217.58
5.6.90.0030.04517.82
5.6.80.0060.04317.30
5.6.70.0070.02517.42
5.6.60.0070.00414.13
5.6.50.0050.00514.09
5.6.40.0090.00014.40
5.6.30.0020.00514.19
5.6.20.0040.00714.42
5.6.10.0060.00614.55
5.6.00.0040.01114.29
5.5.380.0000.00511.28
5.5.370.0040.00711.24
5.5.360.0000.00611.34
5.5.350.2070.02015.96
5.5.340.0030.02314.57
5.5.330.0080.04115.81
5.5.320.0180.04315.64
5.5.310.0150.01815.92
5.5.300.0050.02214.72
5.5.290.0070.04214.65
5.5.280.0050.04716.06
5.5.270.0130.03816.10
5.5.260.0110.03815.98
5.5.250.0020.03415.94
5.5.240.0150.03615.71
5.5.230.0040.00711.27
5.5.220.0090.00011.24
5.5.210.0000.01011.33
5.5.200.0030.00510.89
5.5.190.0030.00510.87
5.5.180.0060.00311.10
5.5.170.0000.01211.35
5.5.160.0000.00611.10
5.5.150.0060.00310.93
5.5.140.0080.00010.89
5.5.130.0000.00710.71
5.5.120.0060.00311.25
5.5.110.0000.00611.17
5.5.100.0020.00510.75
5.5.90.0050.00211.08
5.5.80.0000.01211.16
5.5.70.0100.00311.05
5.5.60.0000.00610.96
5.5.50.0030.00711.01
5.5.40.0000.00810.87
5.5.30.0030.00311.03
5.5.20.0000.00711.24
5.5.10.0000.00811.34
5.5.00.0030.00311.07
5.4.450.0330.03015.32
5.4.440.0350.03115.06
5.4.430.0350.02915.28
5.4.420.0410.02515.34
5.4.410.0320.02815.19
5.4.400.0330.03015.04
5.4.390.0360.02815.23
5.4.380.0310.03115.20
5.4.370.0360.02515.25
5.4.360.0320.03215.18
5.4.350.0350.03215.13
5.4.340.0400.03415.27
5.4.330.0040.00711.14
5.4.320.0450.03315.23
5.4.310.0400.03115.21
5.4.300.0430.02814.95
5.4.290.0470.02315.12
5.4.280.0370.03215.09
5.4.270.0380.03015.26
5.4.260.0380.03214.83
5.4.250.0450.02215.18
5.4.240.0400.02815.05
5.4.230.0430.02715.10
5.4.220.0470.02715.11
5.4.210.0380.03115.19
5.4.200.0320.03015.24
5.4.190.0320.03415.04
5.4.180.0320.02915.28
5.4.170.0280.03714.93
5.4.160.0400.02514.89
5.4.150.0340.03115.12
5.4.140.0320.03213.82
5.4.130.0300.03013.69
5.4.120.0350.03113.66
5.4.110.0370.02913.76
5.4.100.0370.02813.79
5.4.90.0380.03213.86
5.4.80.0330.02813.77
5.4.70.0130.03113.81
5.4.60.0250.02213.67
5.4.50.0050.01913.79
5.4.40.0040.02013.76
5.4.30.0060.03613.82
5.4.20.0090.01513.83
5.4.10.0060.00311.14
5.4.00.0060.00311.07
5.3.290.0330.05314.73
5.3.280.1330.04314.59
5.3.270.0800.04714.58
5.3.260.0700.05314.60
5.3.250.0930.03714.61
5.3.240.1170.04314.51
5.3.230.0730.04714.60
5.3.220.0370.05014.47
5.3.210.0970.04714.49
5.3.200.0730.04314.56
5.3.190.0730.04714.54
5.3.180.0870.04314.64