3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f'); //$str = implode(array_walk(array_reverse($arr), function($v,$k){if($k%3==0)$v.=';';})); //print_r(array_map(function($v){if($k%3==0)$v.=';';}), array_reverse($arr)); $str = implode(array_reverse($arr)); echo $str;
based on 8JKFI

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.0210.00998.97
7.3.0rc30.0280.00316.43
7.3.0beta10.0120.00612.15
7.3.0alpha10.0030.00612.57
7.2.60.0080.00416.93
7.2.00.0030.00919.27
7.1.200.0040.01115.68
7.1.100.0060.01017.78
7.1.70.0050.00217.03
7.1.60.0090.01319.32
7.1.50.0130.00316.90
7.1.00.0100.07022.57
7.0.200.0030.00616.57
7.0.140.0000.07721.95
7.0.60.0000.07319.89
7.0.50.0070.04717.80
7.0.40.0070.04019.98
7.0.30.0530.07020.02
7.0.20.0300.06720.16
7.0.10.0000.04720.18
7.0.00.0070.07320.20
5.6.280.0000.07720.79
5.6.210.0130.07320.60
5.6.200.0030.08318.16
5.6.190.0100.08720.58
5.6.180.0370.03720.67
5.6.170.0170.04720.37
5.6.160.0130.08020.46
5.6.150.0070.06718.08
5.6.140.0030.04018.11
5.6.130.0030.05018.18
5.6.120.0030.09020.73
5.6.110.0170.07321.03
5.6.100.0130.06721.10
5.6.90.0130.06720.89
5.6.80.0130.04020.52
5.5.350.0170.07020.46
5.5.340.0070.04318.00
5.5.330.0070.06720.28
5.5.320.0370.06320.41
5.5.310.0070.05720.24
5.5.300.0070.06317.98
5.5.290.0000.09017.90
5.5.280.0070.05020.67
5.5.270.0000.09020.65
5.5.260.0170.07720.75
5.5.250.0070.08320.57
5.5.240.2100.04020.03
5.4.450.1170.07719.21
5.4.440.0670.06019.42
5.4.430.0870.05019.50
5.4.420.1000.04719.62
5.4.410.0600.05318.97
5.4.400.0900.05319.00
5.4.390.0730.05319.16
5.4.380.0370.05018.78
5.4.370.0300.07318.71
5.4.360.0430.05718.78
5.4.350.0470.06018.78
5.4.340.0400.05018.74
5.4.320.0050.03512.45
5.4.310.0090.03512.45
5.4.300.0050.03612.45
5.4.290.0060.03612.45
5.4.280.0050.03812.35
5.4.270.0070.03712.34
5.4.260.0040.03912.35
5.4.250.0040.03812.35
5.4.240.0050.03512.35
5.4.230.0070.03812.34
5.4.220.0070.03512.34
5.4.210.0080.03612.34
5.4.200.0060.03612.34
5.4.190.0070.04112.34
5.4.180.0090.03312.33
5.4.170.0070.04112.34
5.4.160.0050.03612.34
5.4.150.0060.04312.34
5.4.140.0050.03812.02
5.4.130.0050.03612.01
5.4.120.0050.03511.97
5.4.110.0030.03811.96
5.4.100.0060.03311.96
5.4.90.0060.04011.96
5.4.80.0060.03511.96
5.4.70.0050.03411.96
5.4.60.0080.03411.96
5.4.50.0080.03211.96
5.4.40.0060.03311.95
5.4.30.0050.03511.95
5.4.20.0060.03311.95
5.4.10.0000.04011.94
5.4.00.0070.04111.44
5.3.290.0050.04412.80
5.3.280.0060.03612.71
5.3.270.0050.03812.72
5.3.260.0060.03812.71
5.3.250.0040.03812.72
5.3.240.0060.03612.72
5.3.230.0040.04012.71
5.3.220.0050.04212.68
5.3.210.0060.04012.68
5.3.200.0090.03512.68
5.3.190.0140.04312.68
5.3.180.0060.03712.67
5.3.170.0090.03812.67
5.3.160.0120.06912.67
5.3.150.0070.04112.68
5.3.140.0050.04012.66
5.3.130.0100.05112.65
5.3.120.0100.05212.66
5.3.110.0100.04512.66
5.3.100.0060.04012.12
5.3.90.0050.03912.08
5.3.80.0070.03712.07
5.3.70.0050.03812.08
5.3.60.0090.03712.06
5.3.50.0050.05312.00
5.3.40.0100.04912.00
5.3.30.0090.04311.95
5.3.20.0080.03411.72
5.3.10.0060.03511.69
5.3.00.0060.03811.68
5.2.170.0040.0329.18
5.2.160.0050.0339.18
5.2.150.0060.0309.18
5.2.140.0050.0299.17
5.2.130.0060.0309.13
5.2.120.0030.0309.14
5.2.110.0060.0279.14
5.2.100.0060.0309.14
5.2.90.0050.0289.14
5.2.80.0040.0329.13
5.2.70.0070.0309.14
5.2.60.0040.0359.09
5.2.50.0060.0309.05
5.2.40.0040.0299.03
5.2.30.0030.0349.01
5.2.20.0060.0309.00
5.2.10.0040.0308.92
5.2.00.0070.0328.78
5.1.60.0050.0328.06
5.1.50.0060.0368.05
5.1.40.0040.0308.04
5.1.30.0020.0338.39
5.1.20.0060.0278.41
5.1.10.0050.0328.14
5.1.00.0070.0298.14
5.0.50.0020.0216.61
5.0.40.0030.0256.48
5.0.30.0030.0316.29
5.0.20.0050.0196.26
5.0.10.0030.0286.23
5.0.00.0040.0316.23
4.4.90.0050.0134.78
4.4.80.0070.0204.75
4.4.70.0020.0164.76
4.4.60.0050.0194.76
4.4.50.0030.0184.77
4.4.40.0040.0254.71
4.4.30.0020.0224.76
4.4.20.0020.0174.84
4.4.10.0050.0134.85
4.4.00.0040.0294.76
4.3.110.0050.0144.67
4.3.100.0010.0174.66
4.3.90.0060.0434.63
4.3.80.0010.0284.59
4.3.70.0030.0154.63
4.3.60.0030.0164.63
4.3.50.0040.0144.63
4.3.40.0060.0214.54
4.3.30.0030.0163.28
4.3.20.0010.0173.25
4.3.10.0020.0163.22
4.3.00.0000.01716.39