3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = array("inUserID" => "lemon", "inCustID" => "orange", "btAll" => "banana", "btPermPref" => "apple", "inDisplay"=>"toast"); function pram_alter($array, $key) { foreach ($array as $value){ echo "$key = '$key'"; } } //$temp=array(); $temp=array(pram_alter($sql, 'pram_alter')); echo print_r($temp); ?>

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.01116.50
8.3.50.0080.00922.04
8.3.40.0070.00718.71
8.3.30.0070.00719.27
8.3.20.0050.00220.16
8.3.10.0080.00820.48
8.3.00.0040.00419.25
8.2.180.0120.00616.50
8.2.170.0070.01422.96
8.2.160.0110.00420.52
8.2.150.0090.00924.18
8.2.140.0090.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00421.16
8.2.110.0070.01019.27
8.2.100.0160.00017.84
8.2.90.0090.00017.63
8.2.80.0000.00817.97
8.2.70.0060.00317.91
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0040.00420.54
8.2.30.0040.00419.35
8.2.20.0040.00417.73
8.2.10.0060.00318.00
8.2.00.0070.00017.65
8.1.280.0130.00625.92
8.1.270.0100.00623.77
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00422.19
8.1.230.0110.00020.93
8.1.220.0060.00317.78
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0000.00722.02
8.1.150.0050.00218.89
8.1.140.0040.00417.50
8.1.130.0030.00317.77
8.1.120.0030.00717.47
8.1.110.0040.00417.50
8.1.100.0000.00717.36
8.1.90.0040.00717.39
8.1.80.0020.00517.41
8.1.70.0000.00717.39
8.1.60.0040.00417.51
8.1.50.0000.00717.51
8.1.40.0070.00017.52
8.1.30.0030.00617.52
8.1.20.0040.00417.55
8.1.10.0050.00217.39
8.1.00.0040.00417.51
8.0.300.0000.00719.87
8.0.290.0060.00316.75
8.0.280.0000.00718.47
8.0.270.0070.00017.26
8.0.260.0000.00717.25
8.0.250.0030.00316.95
8.0.240.0030.00316.88
8.0.230.0030.00316.94
8.0.220.0000.00716.87
8.0.210.0040.00416.82
8.0.200.0070.00017.00
8.0.190.0030.00416.84
8.0.180.0070.00016.90
8.0.170.0050.00316.80
8.0.160.0040.00416.89
8.0.150.0000.00716.83
8.0.140.0030.00516.90
8.0.130.0040.00413.29
8.0.120.0040.00416.91
8.0.110.0000.00716.79
8.0.100.0040.00416.94
8.0.90.0000.00716.90
8.0.80.0050.01416.85
8.0.70.0000.00716.73
8.0.60.0000.00716.79
8.0.50.0000.00816.91
8.0.30.0060.01217.11
8.0.20.0080.01217.40
8.0.10.0040.00317.00
8.0.00.0090.00716.95
7.4.330.0020.00215.00
7.4.320.0040.00416.50
7.4.300.0030.00316.58
7.4.290.0040.00416.60
7.4.280.0000.00816.52
7.4.270.0030.00316.63
7.4.260.0040.00416.48
7.4.250.0000.00816.41
7.4.240.0030.00416.54
7.4.230.0000.00716.52
7.4.220.0070.01116.69
7.4.210.0040.01116.58
7.4.200.0050.00316.69
7.4.160.0100.00616.36
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0100.00716.66
7.4.120.0030.01316.41
7.4.110.0100.00716.41
7.4.100.0110.00816.43
7.4.90.0070.01316.55
7.4.80.0050.01419.39
7.4.70.0110.00616.59
7.4.60.0100.00716.44
7.4.50.0040.00416.24
7.4.40.0160.00316.39
7.4.30.0130.00316.66
7.4.00.0100.00314.91
7.3.330.0000.00813.32
7.3.320.0000.00513.31
7.3.310.0080.00016.39
7.3.300.0060.00016.23
7.3.290.0090.00616.43
7.3.280.0090.00716.36
7.3.270.0030.01617.40
7.3.260.0100.00716.29
7.3.250.0110.00616.51
7.3.240.0120.00916.46
7.3.230.0130.00916.39
7.3.210.0110.00616.47
7.3.200.0090.01219.39
7.3.190.0090.00916.35
7.3.180.0040.01216.55
7.3.170.0060.00916.48
7.3.160.0090.00916.51
7.2.330.0070.01016.74
7.2.320.0080.01516.78
7.2.310.0170.00316.67
7.2.300.0070.01016.35
7.2.290.0100.00716.50
7.2.00.0050.00519.45
7.1.100.0070.01018.35
7.1.70.0000.01017.35
7.1.60.0060.01919.61
7.1.50.0070.01716.80
7.1.00.0070.07322.37
7.0.200.0000.00916.69
7.0.140.0030.07322.07
7.0.60.0070.06019.98
7.0.50.0070.04017.96
7.0.40.0130.05020.30
7.0.30.0300.04020.10
7.0.20.0270.05720.23
7.0.10.0130.08020.05
7.0.00.0100.04320.12
5.6.280.0130.06320.91
5.6.210.0100.06020.52
5.6.200.0170.06718.16
5.6.190.0030.04720.61
5.6.180.0270.08020.50
5.6.170.0230.05720.56
5.6.160.0070.06020.44
5.6.150.0130.07718.30
5.6.140.0170.07318.18
5.6.130.0030.06018.15
5.6.120.0130.05021.12
5.6.110.0130.07721.03
5.6.100.0030.04321.13
5.6.90.0100.06720.88
5.6.80.0070.04320.53
5.5.350.0070.07320.47
5.5.340.0130.03318.02
5.5.330.0070.08320.35
5.5.320.0030.08320.30
5.5.310.0330.04020.26
5.5.300.0070.07018.03
5.5.290.0030.05018.03
5.5.280.0030.07020.94
5.5.270.0100.06320.95
5.5.260.0100.07720.68
5.5.250.0070.03720.59
5.5.240.2770.02020.16
5.4.450.0500.04719.46
5.4.440.0070.04019.42
5.4.430.0130.06019.38
5.4.420.0400.03319.23
5.4.410.0200.07019.18
5.4.400.0100.05719.00
5.4.390.0170.05319.23
5.4.380.0770.05718.61
5.4.370.1030.06718.80
5.4.360.0930.05718.65
5.4.350.1200.06718.73
5.4.340.1330.06018.73
5.4.320.0080.03512.50
5.4.310.0060.04212.50
5.4.300.0070.04212.50
5.4.290.0050.04612.50
5.4.280.0040.04712.40
5.4.270.0090.03812.40
5.4.260.0050.03812.40
5.4.250.0050.03912.40
5.4.240.0070.04012.40
5.4.230.0050.03912.39
5.4.220.0080.03412.39
5.4.210.0080.03512.39
5.4.200.0050.04212.39
5.4.190.0100.04312.39
5.4.180.0070.03512.39
5.4.170.0070.04212.39
5.4.160.0040.03812.39
5.4.150.0080.03412.39
5.4.140.0040.04712.07
5.4.130.0030.03912.06
5.4.120.0100.04012.02
5.4.110.0040.04012.01
5.4.100.0060.03712.01
5.4.90.0100.04312.02
5.4.80.0100.03812.02
5.4.70.0060.04012.01
5.4.60.0110.03812.01
5.4.50.0070.03912.01
5.4.40.0090.03611.99
5.4.30.0080.03312.00
5.4.20.0070.03712.00
5.4.10.0060.03511.99
5.4.00.0050.03711.48
5.3.290.0100.04612.80
5.3.280.0090.03812.71
5.3.270.0080.04412.72
5.3.260.0080.04112.72
5.3.250.0070.04212.72
5.3.240.0080.03512.72
5.3.230.0080.03612.71
5.3.220.0050.03912.68
5.3.210.0080.04212.68
5.3.200.0080.03512.68
5.3.190.0090.03512.68
5.3.180.0050.04112.68
5.3.170.0090.05312.67
5.3.160.0070.03612.68
5.3.150.0070.03912.67
5.3.140.0050.03812.66
5.3.130.0040.04112.66
5.3.120.0120.03312.66
5.3.110.0050.04012.66
5.3.100.0090.04012.12
5.3.90.0110.03212.10
5.3.80.0060.03812.09
5.3.70.0110.03512.09
5.3.60.0040.03812.07
5.3.50.0100.03912.03
5.3.40.0050.03612.02
5.3.30.0130.03111.98
5.3.20.0070.03811.77
5.3.10.0050.03511.73
5.3.00.0080.04111.71
5.2.170.0040.0309.22
5.2.160.0050.0289.22
5.2.150.0070.0289.22
5.2.140.0050.0299.21
5.2.130.0040.0299.18
5.2.120.0040.0339.18
5.2.110.0040.0399.18
5.2.100.0050.0329.18
5.2.90.0050.0289.18
5.2.80.0040.0309.18
5.2.70.0050.0289.17
5.2.60.0070.0269.12
5.2.50.0060.0279.10
5.2.40.0080.0279.07
5.2.30.0010.0339.05
5.2.20.0080.0309.03
5.2.10.0070.0348.94
5.2.00.0050.0298.81
5.1.60.0050.0238.09
5.1.50.0050.0248.08
5.1.40.0050.0228.07
5.1.30.0040.0268.41
5.1.20.0070.0238.44
5.1.10.0050.0268.16
5.1.00.0070.0278.16
5.0.50.0050.0186.64
5.0.40.0020.0236.50
5.0.30.0040.0306.31
5.0.20.0040.0186.27
5.0.10.0040.0256.26
5.0.00.0020.0316.25
4.4.90.0020.0174.78
4.4.80.0050.0124.75
4.4.70.0030.0214.75
4.4.60.0020.0274.75
4.4.50.0030.0154.77
4.4.40.0040.0254.71
4.4.30.0020.0154.75
4.4.20.0040.0214.84
4.4.10.0040.0184.85
4.4.00.0030.0274.76
4.3.110.0050.0184.67
4.3.100.0030.0244.67
4.3.90.0020.0144.64
4.3.80.0030.0234.58
4.3.70.0040.0204.63
4.3.60.0070.0144.63
4.3.50.0030.0254.63
4.3.40.0000.0264.54
4.3.30.0000.0223.30
4.3.20.0020.0173.28
4.3.10.0020.0153.24
4.3.00.0030.01014.28

preferences:
36.91 ms | 401 KiB | 5 Q