3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($a, $k){return var_dump($a, true);} $ref = 'ref'; echo f(['no' => 'nope', 'yep' => &$ref], 'yep');
based on C12mc

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.00.0100.00316.54
7.2.130.0070.01016.64
7.2.120.0120.00616.44
7.2.110.0060.00916.70
7.2.100.0150.00016.77
7.2.90.0070.01116.59
7.2.80.0110.00416.89
7.2.70.0090.00916.75
7.2.60.0000.01316.64
7.2.50.0100.00316.89
7.2.40.0040.00916.70
7.2.30.0140.00316.89
7.2.20.0110.00416.63
7.2.10.0000.01316.61
7.2.00.0030.00817.92
7.1.250.0030.00615.74
7.1.240.0050.00515.39
7.1.230.0140.00015.95
7.1.220.0120.00615.73
7.1.210.0040.00715.64
7.1.200.0080.00515.74
7.1.190.0050.00515.90
7.1.180.0040.00415.85
7.1.170.0040.01115.74
7.1.160.0070.00715.87
7.1.150.0000.00915.75
7.1.140.0080.00315.77
7.1.130.0030.01015.79
7.1.120.0080.00815.74
7.1.110.0070.00715.86
7.1.100.0000.01516.72
7.1.90.0080.00415.87
7.1.80.0030.00715.64
7.1.70.0030.00816.48
7.1.60.0030.01517.39
7.1.50.0050.01216.26
7.1.40.0070.00315.76
7.1.30.0070.00415.80
7.1.20.0110.00415.85
7.1.10.0100.00315.57
7.1.00.0050.03919.01
7.0.330.0060.01015.04
7.0.320.0030.00915.34
7.0.310.0030.00615.02
7.0.300.0030.00915.45
7.0.290.0090.00015.07
7.0.280.0080.00415.00
7.0.270.0090.00615.21
7.0.260.0000.01314.77
7.0.250.0110.00015.29
7.0.240.0040.00415.32
7.0.230.0030.00915.20
7.0.220.0090.00615.57
7.0.210.0000.00815.33
7.0.200.0070.00315.99
7.0.190.0000.01015.22
7.0.180.0040.01115.10
7.0.170.0040.00715.14
7.0.160.0030.01415.33
7.0.150.0000.00915.32
7.0.140.0070.02018.60
7.0.130.0000.01015.27
7.0.120.0100.00315.50
7.0.110.0000.00915.21
7.0.100.0130.03817.66
7.0.90.0100.04017.71
7.0.80.0050.04317.66
7.0.70.0050.04317.56
7.0.60.0080.03817.69
7.0.50.0070.04217.89
7.0.40.0080.02816.42
7.0.30.0130.03816.78
7.0.20.0070.04216.67
7.0.10.0080.02516.65
7.0.00.0050.02616.74
5.6.380.0040.00714.30
5.6.370.0030.01014.43
5.6.360.0090.00014.67
5.6.350.0030.00714.16
5.6.340.0030.00914.09
5.6.330.0070.00714.19
5.6.320.0050.00514.18
5.6.310.0150.00014.12
5.6.300.0100.00314.03
5.6.290.0040.01113.99
5.6.280.0080.03517.74
5.6.270.0030.01014.09
5.6.260.0000.00814.24
5.6.250.0080.03817.27
5.6.240.0050.04617.54
5.6.230.0060.04617.50
5.6.220.0030.04417.32
5.6.210.0090.04217.38
5.6.200.0030.04017.50
5.6.190.0080.03217.53
5.6.180.0080.04217.65
5.6.170.0080.04217.60
5.6.160.0090.03817.56
5.6.150.0080.04217.51
5.6.140.0090.04217.73
5.6.130.0060.04317.62
5.6.120.0080.04317.64
5.6.110.0050.04917.64
5.6.100.0070.04517.54
5.6.90.0050.04617.68
5.6.80.0070.04017.33
5.6.70.0130.03317.31
5.6.60.0020.04517.26
5.6.50.0040.02417.28
5.6.40.0030.04717.21
5.6.30.0070.04017.26
5.6.20.0050.03717.38
5.6.10.0100.03517.35
5.6.00.0070.02717.29
5.5.380.0070.04315.74
5.5.370.0000.03015.80
5.5.360.0060.03715.74
5.5.350.0090.03615.73
5.5.340.0030.02815.94
5.5.330.0020.02915.95
5.5.320.0020.03916.06
5.5.310.0100.03715.85
5.5.300.0050.04215.98
5.5.290.0050.04515.73
5.5.280.0080.03516.00
5.5.270.0050.04016.07
5.5.260.0030.04815.93
5.5.250.0090.04115.84
5.5.240.0060.04315.57
5.5.230.0070.03515.73
5.5.220.0080.03715.48
5.5.210.0030.02715.56
5.5.200.0050.04215.49
5.5.190.0030.04515.62
5.5.180.0080.04315.46
5.5.170.0070.00310.90
5.5.160.0030.02615.58
5.5.150.0080.02715.65
5.5.140.0070.01915.42
5.5.130.0050.03715.59
5.5.120.0030.03515.60
5.5.110.0090.04215.76
5.5.100.0030.04415.52
5.5.90.0030.02515.41
5.5.80.0140.03215.51
5.5.70.0030.04415.57
5.5.60.0050.04015.61
5.5.50.0020.04415.49
5.5.40.0050.04215.44
5.5.30.0080.03815.47
5.5.20.0060.04315.44
5.5.10.0050.03815.46
5.5.00.0110.03715.49
5.4.450.0090.04015.15
5.4.440.0050.04515.34
5.4.430.0050.04315.23
5.4.420.0030.04315.30
5.4.410.0030.04115.09
5.4.400.0050.03814.94
5.4.390.0050.04015.01
5.4.380.0100.03814.96
5.4.370.0070.03515.11
5.4.360.0060.03814.94
5.4.350.0080.03914.95
5.4.340.0050.04315.09
5.4.330.0050.00211.03
5.4.320.0030.04115.16
5.4.310.0050.03914.81
5.4.300.0080.01715.03
5.4.290.0020.04415.03
5.4.280.0010.02514.86
5.4.270.0050.04015.10
5.4.260.0020.04415.06
5.4.250.0100.03715.02
5.4.240.0030.02515.02
5.4.230.0030.03915.07
5.4.220.0080.02014.95
5.4.210.0060.03314.81
5.4.200.0030.04214.99
5.4.190.0040.04015.04
5.4.180.0020.04114.85
5.4.170.0050.02514.96
5.4.160.0070.03814.69
5.4.150.0050.04014.83
5.4.140.0080.03013.61
5.4.130.0050.02813.57
5.4.120.0020.02213.56
5.4.110.0080.02013.57
5.4.100.0030.02513.68
5.4.90.0080.01513.78
5.4.80.0030.02013.70
5.4.70.0020.02213.70
5.4.60.0050.02213.53
5.4.50.0030.02013.73
5.4.40.0030.02113.84
5.4.30.0050.02113.62
5.4.20.0030.01813.74
5.4.10.0030.02213.67
5.4.00.0040.02313.31
5.3.290.0050.04312.56
5.3.280.0070.02212.48
5.3.270.0050.03712.31
5.3.260.0030.02812.46
5.3.250.0030.04912.39
5.3.240.0030.02612.39
5.3.230.0110.01712.49
5.3.220.0030.03512.46
5.3.210.0020.02612.36
5.3.200.0030.02512.37
5.3.190.0020.02312.49
5.3.180.0030.02412.40
5.3.170.0060.01812.48
5.3.160.0030.02012.57
5.3.150.0040.01812.36
5.3.140.0020.02212.46
5.3.130.0020.02212.47
5.3.120.0020.02112.32
5.3.110.0050.02312.37
5.3.100.0100.01512.26
5.3.90.0020.02512.11
5.3.80.0050.02012.09
5.3.70.0070.03412.21
5.3.60.0040.02012.06
5.3.50.0050.02412.09
5.3.40.0060.01912.12
5.3.30.0070.02012.05
5.3.20.0070.02511.90
5.3.10.0050.01811.91
5.3.00.0030.02411.87
5.2.170.0060.01710.65
5.2.160.0020.02810.61
5.2.150.0070.01710.67
5.2.140.0050.02310.65
5.2.130.0030.02310.57
5.2.120.0060.01510.58
5.2.110.0050.01510.61
5.2.100.0050.02010.61
5.2.90.0020.01810.61
5.2.80.0050.01510.62
5.2.70.0000.01810.59
5.2.60.0050.01310.61
5.2.50.0010.01610.48
5.2.40.0030.01510.58
5.2.30.0050.01610.54
5.2.20.0020.01810.51
5.2.10.0040.02410.46
5.2.00.0080.01210.44
5.1.60.0040.01210.13
5.1.50.0050.01110.13
5.1.40.0020.01910.13
5.1.30.0030.01510.17
5.1.20.0020.01910.27
5.1.10.0020.01510.13
5.1.00.0030.01310.13
5.0.50.0020.01210.13
5.0.40.0000.01210.13
5.0.30.0030.01710.13
5.0.20.0030.00810.13
5.0.10.0000.01310.13
5.0.00.0020.01610.13
4.4.90.0000.01010.13
4.4.80.0030.00810.13
4.4.70.0020.00810.13
4.4.60.0040.00910.13
4.4.50.0020.01110.13
4.4.40.0030.01310.13
4.4.30.0010.01010.13
4.4.20.0000.01110.13
4.4.10.0020.01010.13
4.4.00.0030.01110.13
4.3.110.0020.00810.13
4.3.100.0030.00810.13
4.3.90.0000.01010.13
4.3.80.0000.01610.13
4.3.70.0020.00910.13
4.3.60.0010.01010.13
4.3.50.0000.01910.13
4.3.40.0010.01610.13
4.3.30.0000.00910.13
4.3.20.0020.00710.13
4.3.10.0000.01010.13
4.3.00.0000.01010.13