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 "This is my text $array"; } } //$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.0070.01316.50
8.3.50.0130.00821.96
8.3.40.0070.01418.76
8.3.30.0140.00019.09
8.3.20.0070.00020.34
8.3.10.0000.00820.67
8.3.00.0080.00019.26
8.2.180.0070.00716.63
8.2.170.0080.01222.96
8.2.160.0100.01020.36
8.2.150.0140.00424.18
8.2.140.0060.00924.66
8.2.130.0040.00426.16
8.2.120.0080.00020.90
8.2.110.0100.00719.34
8.2.100.0110.00017.84
8.2.90.0030.00519.21
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0080.00018.04
8.2.50.0050.00318.22
8.2.40.0040.00422.33
8.2.30.0050.00219.20
8.2.20.0040.00417.66
8.2.10.0040.00418.04
8.2.00.0070.00017.71
8.1.280.0090.01225.92
8.1.270.0080.00024.01
8.1.260.0050.00226.35
8.1.250.0070.00728.09
8.1.240.0000.00922.74
8.1.230.0070.00417.70
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0050.00217.58
8.1.180.0000.00818.10
8.1.170.0040.00418.40
8.1.160.0040.00418.85
8.1.150.0070.00020.65
8.1.140.0040.00417.52
8.1.130.0000.00717.87
8.1.120.0000.01017.43
8.1.110.0040.00417.48
8.1.100.0050.00217.36
8.1.90.0030.00717.42
8.1.80.0000.00717.41
8.1.70.0030.00317.40
8.1.60.0030.00617.46
8.1.50.0040.00417.48
8.1.40.0050.00317.39
8.1.30.0050.00317.46
8.1.20.0050.00317.65
8.1.10.0040.00417.51
8.1.00.0030.00617.46
8.0.300.0000.00720.65
8.0.290.0060.00316.75
8.0.280.0030.00318.40
8.0.270.0000.00717.28
8.0.260.0000.00817.19
8.0.250.0030.00316.91
8.0.240.0000.00617.00
8.0.230.0040.00416.93
8.0.220.0000.00716.95
8.0.210.0030.00316.87
8.0.200.0030.00316.90
8.0.190.0070.00016.98
8.0.180.0000.00716.98
8.0.170.0040.00417.00
8.0.160.0040.00316.94
8.0.150.0050.00216.86
8.0.140.0040.00416.88
8.0.130.0060.00013.34
8.0.120.0000.00816.93
8.0.110.0050.00217.04
8.0.100.0050.00216.96
8.0.90.0070.00016.82
8.0.80.0080.01316.98
8.0.70.0080.00016.89
8.0.60.0040.00416.91
8.0.50.0050.00216.78
8.0.30.0090.01117.27
8.0.20.0080.01217.40
8.0.10.0070.00017.03
8.0.00.0130.00516.91
7.4.330.0020.00215.09
7.4.320.0000.00816.42
7.4.300.0060.00016.61
7.4.290.0030.00316.48
7.4.280.0030.00316.41
7.4.270.0000.00716.50
7.4.260.0000.00716.56
7.4.250.0050.00216.55
7.4.240.0050.00216.52
7.4.230.0000.00616.50
7.4.220.0150.00316.47
7.4.210.0090.00516.54
7.4.200.0000.00716.50
7.4.160.0060.00916.54
7.4.150.0120.01217.40
7.4.140.0130.00417.86
7.4.130.0090.00916.53
7.4.120.0080.00916.68
7.4.110.0120.00416.23
7.4.100.0060.01216.53
7.4.90.0040.01416.36
7.4.80.0090.00919.39
7.4.70.0080.00816.75
7.4.60.0100.00616.48
7.4.50.0030.00516.34
7.4.40.0060.01016.63
7.4.30.0130.00316.42
7.4.00.0030.01315.11
7.3.330.0050.00313.46
7.3.320.0000.00513.38
7.3.310.0000.00716.32
7.3.300.0030.00316.29
7.3.290.0030.01016.50
7.3.280.0040.01216.47
7.3.270.0100.00717.40
7.3.260.0040.01316.61
7.3.250.0110.00716.47
7.3.240.0070.01416.49
7.3.230.0080.00816.64
7.3.210.0090.00916.65
7.3.200.0060.01619.39
7.3.190.0090.00916.49
7.3.180.0030.01316.30
7.3.170.0130.00416.40
7.3.160.0120.00916.57
7.2.330.0100.01316.51
7.2.320.0130.00916.71
7.2.310.0090.01116.53
7.2.300.0110.01116.70
7.2.290.0060.00916.68
7.2.00.0080.00419.43
7.1.100.0070.00417.83
7.1.70.0000.00717.19
7.1.60.0070.01719.61
7.1.50.0120.01216.87
7.1.00.0100.08322.54
7.0.200.0000.01016.75
7.0.140.0070.07022.12
7.0.60.0170.07319.95
7.0.50.0030.04717.91
7.0.40.0030.05720.11
7.0.30.0270.04020.34
7.0.20.0270.04320.18
7.0.10.0330.05720.19
7.0.00.0030.05020.30
5.6.280.0000.07720.96
5.6.210.0130.06320.73
5.6.200.0070.07718.16
5.6.190.0100.04720.48
5.6.180.3470.04320.61
5.6.170.0330.06320.47
5.6.160.0070.08720.43
5.6.150.0170.07318.28
5.6.140.0100.06318.17
5.6.130.0070.08318.16
5.6.120.0100.06721.13
5.6.110.0100.07320.96
5.6.100.0100.04321.06
5.6.90.0030.06321.10
5.6.80.0100.03320.41
5.6.70.0400.06320.44
5.5.350.0200.03320.28
5.5.340.0070.07017.98
5.5.330.0100.07320.47
5.5.320.0270.03720.37
5.5.310.0230.07020.24
5.5.300.0030.04017.98
5.5.290.0070.05717.97
5.5.280.0070.08320.69
5.5.270.0070.05720.96
5.5.260.0230.07720.76
5.5.250.0070.05720.69
5.5.240.0100.08020.37
5.4.450.0430.07719.16
5.4.440.0730.07719.47
5.4.430.0670.05719.48
5.4.420.0670.05019.20
5.4.410.0400.04019.10
5.4.400.0100.05319.24
5.4.390.0570.05019.19
5.4.380.0200.05718.75
5.4.370.0370.07318.46
5.4.360.0200.06318.78
5.4.350.0370.06318.49
5.4.340.0200.06018.63
5.4.320.0090.03612.50
5.4.310.0060.03812.50
5.4.300.0080.03612.51
5.4.290.0090.04312.50
5.4.280.0090.04212.39
5.4.270.0090.04012.39
5.4.260.0090.04412.39
5.4.250.0060.03712.39
5.4.240.0090.03412.40
5.4.230.0050.04412.39
5.4.220.0050.04212.39
5.4.210.0090.03512.39
5.4.200.0080.03912.39
5.4.190.0130.02912.39
5.4.180.0080.03412.39
5.4.170.0050.03712.39
5.4.160.0080.03412.39
5.4.150.0040.04212.39
5.4.140.0060.04312.07
5.4.130.0050.03712.06
5.4.120.0080.03312.02
5.4.110.0060.04112.02
5.4.100.0080.03412.01
5.4.90.0050.03912.02
5.4.80.0110.03712.01
5.4.70.0080.04112.01
5.4.60.0120.03912.01
5.4.50.0030.04812.01
5.4.40.0070.04212.00
5.4.30.0080.04112.00
5.4.20.0050.04112.00
5.4.10.0090.03911.99
5.4.00.0060.03511.48
5.3.290.0050.04312.80
5.3.280.0100.04112.71
5.3.270.0080.04012.72
5.3.260.0110.04012.72
5.3.250.0050.03812.72
5.3.240.0050.04712.72
5.3.230.0070.04212.71
5.3.220.0110.03512.68
5.3.210.0050.04812.68
5.3.200.0060.04512.68
5.3.190.0110.04012.68
5.3.180.0080.03812.67
5.3.170.0080.04412.67
5.3.160.0060.04012.68
5.3.150.0080.04312.68
5.3.140.0030.04612.66
5.3.130.0080.04112.65
5.3.120.0130.04012.66
5.3.110.0080.04612.66
5.3.100.0090.04312.12
5.3.90.0080.04012.10
5.3.80.0040.03812.09
5.3.70.0060.04112.09
5.3.60.0060.03712.07
5.3.50.0060.04112.02
5.3.40.0100.04212.03
5.3.30.0100.03811.98
5.3.20.0060.04311.76
5.3.10.0070.03611.72
5.3.00.0070.04411.71
5.2.170.0050.0309.22
5.2.160.0030.0319.22
5.2.150.0060.0309.22
5.2.140.0080.0279.22
5.2.130.0040.0319.18
5.2.120.0040.0289.18
5.2.110.0030.0319.18
5.2.100.0010.0319.18
5.2.90.0040.0289.18
5.2.80.0040.0309.17
5.2.70.0050.0299.18
5.2.60.0080.0269.13
5.2.50.0050.0289.10
5.2.40.0050.0279.07
5.2.30.0050.0289.05
5.2.20.0040.0289.03
5.2.10.0050.0268.95
5.2.00.0040.0308.80
5.1.60.0030.0248.09
5.1.50.0040.0248.09
5.1.40.0060.0228.07
5.1.30.0040.0268.41
5.1.20.0020.0288.44
5.1.10.0050.0318.16
5.1.00.0030.0308.16
5.0.50.0020.0216.64
5.0.40.0040.0186.50
5.0.30.0020.0326.31
5.0.20.0030.0196.28
5.0.10.0040.0196.26
5.0.00.0030.0326.25
4.4.90.0010.0174.78
4.4.80.0040.0184.75
4.4.70.0030.0154.76
4.4.60.0020.0184.75
4.4.50.0010.0234.77
4.4.40.0010.0314.71
4.4.30.0010.0194.76
4.4.20.0040.0184.84
4.4.10.0020.0164.85
4.4.00.0020.0294.76
4.3.110.0030.0214.67
4.3.100.0000.0184.67
4.3.90.0030.0204.63
4.3.80.0040.0274.58
4.3.70.0030.0204.63
4.3.60.0010.0204.63
4.3.50.0030.0144.63
4.3.40.0010.0254.54
4.3.30.0030.0193.30
4.3.20.0020.0193.28
4.3.10.0030.0183.24
4.3.00.0070.0236.99

preferences:
45.11 ms | 401 KiB | 5 Q