3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input_array = array("FirSt" => 1, "SecOnd" => 4); print_r(array_change_key_case($input_array, CASE_UPPER));
based on Etp7k

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.2.60.0060.00916.70
7.2.00.0000.01219.34
7.1.200.0090.00315.79
7.1.100.0220.00318.16
7.1.70.0000.00817.00
7.1.60.0000.01617.08
7.1.50.0120.01216.86
7.1.00.0100.07022.54
7.0.200.0060.00916.63
7.0.140.0030.03021.97
7.0.60.0030.09019.83
7.0.50.0030.07017.83
7.0.40.0000.04720.16
7.0.30.0200.04720.11
7.0.20.0200.04320.17
7.0.10.0100.08320.16
7.0.00.0030.04020.17
5.6.280.0070.05021.06
5.6.210.0130.06320.64
5.6.200.0170.07718.16
5.6.190.0100.07720.41
5.6.180.0030.04720.67
5.6.170.0170.04320.40
5.6.160.0030.08320.38
5.6.150.0100.05718.08
5.6.140.0030.05318.18
5.6.130.0100.07718.11
5.6.120.0100.08021.13
5.6.110.0200.09021.13
5.6.100.0170.05321.00
5.6.90.0070.07720.99
5.6.80.0100.07020.38
5.5.350.0030.07720.43
5.5.340.0100.08018.02
5.5.330.0100.03720.37
5.5.320.0270.07720.29
5.5.310.0200.05320.18
5.5.300.0070.04317.98
5.5.290.0130.06718.00
5.5.280.0130.07720.84
5.5.270.0100.03720.75
5.5.260.0170.07020.86
5.5.250.0000.05320.68
5.5.240.0300.04320.25
5.4.450.0530.04019.41
5.4.440.0400.05019.40
5.4.430.0100.05319.25
5.4.420.0130.05319.14
5.4.410.0130.07019.52
5.4.400.0100.05019.16
5.4.390.0100.05019.05
5.4.380.0170.05718.95
5.4.370.0000.06319.15
5.4.360.0100.05719.15
5.4.350.0070.04711.97
5.4.340.0070.04611.96
5.4.320.0090.05012.46
5.4.310.0040.05612.45
5.4.300.0090.04712.45
5.4.290.0040.05712.45
5.4.280.0080.04712.34
5.4.270.0080.04712.34
5.4.260.0070.05212.34
5.4.250.0090.05112.34
5.4.240.0050.05212.34
5.4.230.0070.05112.34
5.4.220.0100.04712.34
5.4.210.0080.04912.34
5.4.200.0090.05012.34
5.4.190.0100.04712.33
5.4.180.0070.05112.34
5.4.170.0080.04912.35
5.4.160.0040.04012.34
5.4.150.0070.03912.34
5.4.140.0090.05412.02
5.4.130.0090.04812.01
5.4.120.0070.04211.97
5.4.110.0100.03611.96
5.4.100.0070.03911.96
5.4.90.0080.03811.96
5.4.80.0060.04111.96
5.4.70.0050.04111.96
5.4.60.0060.03911.96
5.4.50.0080.04311.96
5.4.40.0060.04311.95
5.4.30.0060.04211.95
5.4.20.0080.03511.95
5.4.10.0030.04211.95
5.4.00.0090.03511.43
5.3.290.0070.04412.80
5.3.280.0090.04512.71
5.3.270.0080.04512.72
5.3.260.0130.05112.72
5.3.250.0080.05012.72
5.3.240.0070.05212.72
5.3.230.0070.05112.71
5.3.220.0100.04812.68
5.3.210.0120.04912.68
5.3.200.0070.05112.68
5.3.190.0080.04912.68
5.3.180.0090.04812.68
5.3.170.0090.04012.67
5.3.160.0060.04312.68
5.3.150.0070.04012.67
5.3.140.0080.04712.66
5.3.130.0070.05312.66
5.3.120.0110.04912.66
5.3.110.0080.05212.65
5.3.100.0080.04812.12
5.3.90.0090.04812.09
5.3.80.0080.04612.08
5.3.70.0100.04512.08
5.3.60.0060.04912.06
5.3.50.0080.03712.00
5.3.40.0080.03512.00
5.3.30.0070.03511.94
5.3.20.0120.03911.72
5.3.10.0100.04111.69
5.3.00.0100.03411.67
5.2.170.0060.0309.18
5.2.160.0070.0359.18
5.2.150.0030.0469.18
5.2.140.0100.0369.18
5.2.130.0060.0319.13
5.2.120.0060.0319.13
5.2.110.0100.0309.14
5.2.100.0060.0349.14
5.2.90.0060.0349.14
5.2.80.0070.0329.13
5.2.70.0050.0349.13
5.2.60.0070.0299.09
5.2.50.0060.0339.05
5.2.40.0070.0279.03
5.2.30.0020.0339.01
5.2.20.0030.0319.00
5.2.10.0050.0288.93
5.2.00.0040.0308.79
5.1.60.0040.0258.07
5.1.50.0050.0258.07
5.1.40.0020.0288.05
5.1.30.0040.0288.41
5.1.20.0040.0328.43
5.1.10.0060.0288.15
5.1.00.0060.0268.15
5.0.50.0010.0246.63
5.0.40.0030.0216.48
5.0.30.0040.0356.30
5.0.20.0040.0206.27
5.0.10.0030.0226.25
5.0.00.0030.0316.24
4.4.90.0030.0234.78
4.4.80.0070.0174.75
4.4.70.0030.0194.75
4.4.60.0040.0154.75
4.4.50.0020.0174.77
4.4.40.0040.0254.71
4.4.30.0030.0174.76
4.4.20.0030.0174.85
4.4.10.0040.0154.85
4.4.00.0050.0244.76
4.3.110.0050.0144.67
4.3.100.0050.0144.66
4.3.90.0060.0124.64
4.3.80.0010.0274.59
4.3.70.0000.0184.63
4.3.60.0060.0144.63
4.3.50.0040.0164.63
4.3.40.0050.0224.54
4.3.30.0000.0183.29
4.3.20.0030.0193.26
4.3.10.0030.0173.23
4.3.00.0070.01313.38