3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( "category_id" => Array ( 0 => 1, 1 => 4, ), "pay_type_id" => Array ( 0 => 2, 1 => 5, ), "frequency_id" => Array ( 0 => 3, 1 => 6, ), ); $i=0; foreach($arr as $key => $value) { foreach ($value as $k => $v) { $postData[$k][$key] = $v; } } print_r($postData);

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.4.130.0090.00718.78
8.4.120.0120.00824.04
8.4.110.0110.00922.41
8.4.100.0080.01318.60
8.4.90.0100.01118.77
8.4.80.0150.00518.91
8.4.70.0120.00718.18
8.4.60.0140.00718.88
8.4.50.0100.01018.84
8.4.40.0070.01419.30
8.4.30.0060.01319.22
8.4.20.0060.01317.56
8.4.10.0000.01117.49
8.3.250.0100.00618.94
8.3.240.0120.00717.08
8.3.230.0080.00316.52
8.3.220.0090.00919.14
8.3.210.0100.01016.73
8.3.200.0070.00916.56
8.3.190.0120.00816.98
8.3.180.0050.00316.46
8.3.170.0110.00720.76
8.3.160.0140.00417.27
8.3.150.0090.00917.07
8.3.140.0030.00616.69
8.3.130.0060.01018.45
8.3.120.0060.00320.65
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0090.00016.63
8.3.70.0120.00318.15
8.3.60.0180.00316.88
8.3.50.0050.01417.29
8.3.40.0170.00018.58
8.3.30.0110.00418.71
8.3.20.0040.00420.38
8.3.10.0080.00021.92
8.3.00.0000.00823.65
8.2.290.0090.01020.33
8.2.280.0140.00518.43
8.2.270.0120.00618.86
8.2.260.0080.00818.16
8.2.250.0110.00418.36
8.2.240.0060.00317.00
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0030.00616.50
8.2.190.0120.00916.58
8.2.180.0040.01216.38
8.2.170.0110.00422.96
8.2.160.0040.01120.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.03
8.2.110.0060.00319.25
8.2.100.0040.00818.03
8.2.90.0000.00819.27
8.2.80.0060.00617.97
8.2.70.0080.00017.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0050.00318.07
8.2.30.0000.00718.10
8.2.20.0040.00418.08
8.2.10.0080.00018.12
8.2.00.0040.00418.07
8.1.330.0120.00621.79
8.1.320.0140.00616.05
8.1.310.0000.00822.08
8.1.300.0030.01016.22
8.1.290.0070.00318.88
8.1.280.0070.01025.92
8.1.270.0040.00420.64
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.09
8.1.230.0070.00417.70
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00718.59
8.1.160.0030.00718.81
8.1.150.0050.00320.01
8.1.140.0040.00419.54
8.1.130.0000.00718.85
8.1.120.0000.00817.48
8.1.110.0000.00717.41
8.1.100.0040.00417.49
8.1.90.0070.00017.44
8.1.80.0000.00717.48
8.1.70.0030.00517.43
8.1.60.0060.00317.54
8.1.50.0030.00517.41
8.1.40.0080.00017.49
8.1.30.0050.00317.52
8.1.20.0000.00817.48
8.1.10.0000.00917.39
8.1.00.0000.00717.38
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0040.00420.18
8.0.270.0030.00317.19
8.0.260.0040.00418.37
8.0.250.0030.00316.97
8.0.240.0000.00716.95
8.0.230.0050.00516.98
8.0.220.0040.00416.89
8.0.210.0000.00716.77
8.0.200.0000.00616.91
8.0.190.0050.00316.82
8.0.180.0070.00016.78
8.0.170.0030.00316.84
8.0.160.0060.00316.93
8.0.150.0030.00716.91
8.0.140.0070.00016.78
8.0.130.0030.00313.36
8.0.120.0070.00016.73
8.0.110.0030.00516.91
8.0.100.0080.00016.84
8.0.90.0050.00216.78
8.0.80.0070.01016.88
8.0.70.0030.00516.78
8.0.60.0000.00716.95
8.0.50.0000.00716.93
8.0.30.0110.00817.00
8.0.20.0100.00817.40
8.0.10.0040.00416.98
8.0.00.0160.00816.57
7.4.330.0060.00015.55
7.4.320.0040.00416.53
7.4.300.0060.00016.65
7.4.290.0030.00316.58
7.4.280.0050.00516.60
7.4.270.0040.00416.51
7.4.260.0050.00216.48
7.4.250.0000.00716.49
7.4.240.0000.00816.41
7.4.230.0000.00716.68
7.4.220.0070.01016.64
7.4.210.0110.00716.47
7.4.200.0080.00016.59
7.4.160.0060.00916.34
7.4.150.0170.00017.40
7.4.140.0120.00917.86
7.4.130.0060.01116.63
7.4.120.0130.00716.44
7.4.110.0100.00716.43
7.4.100.0000.02316.63
7.4.90.0140.00316.53
7.4.80.0090.00919.39
7.4.70.0110.00816.56
7.4.60.0120.00716.35
7.4.50.0130.00016.31
7.4.40.0100.01316.58
7.4.30.0070.01116.57
7.4.10.0120.00615.00
7.4.00.0080.00814.81
7.3.330.0000.00513.09
7.3.320.0060.00013.19
7.3.310.0000.00716.30
7.3.300.0070.00016.32
7.3.290.0000.00716.43
7.3.280.0080.00916.34
7.3.270.0130.00617.40
7.3.260.0130.00416.40
7.3.250.0090.01216.30
7.3.240.0090.00816.42
7.3.230.0170.00016.60
7.3.210.0030.01316.44
7.3.200.0130.00316.61
7.3.190.0090.00616.37
7.3.180.0110.00716.44
7.3.170.0110.00616.57
7.3.160.0100.00616.50
7.3.130.0070.01014.52
7.3.120.0140.00314.90
7.3.110.0030.01315.05
7.3.100.0080.00414.63
7.3.90.0040.01414.80
7.3.80.0040.01115.05
7.3.70.0060.00614.70
7.3.60.0030.01014.86
7.3.50.0030.01214.59
7.3.40.0040.00414.72
7.3.30.0060.00314.60
7.3.20.0070.01016.62
7.3.10.0070.01016.73
7.3.00.0040.01416.67
7.2.330.0070.01016.63
7.2.320.0120.00716.42
7.2.310.0120.01216.44
7.2.300.0040.01516.59
7.2.290.0110.00816.62
7.2.260.0120.00415.00
7.2.250.0070.01114.95
7.2.240.0090.00615.07
7.2.230.0070.01015.06
7.2.220.0150.00415.04
7.2.210.0000.01114.89
7.2.200.0070.00715.10
7.2.190.0090.00915.00
7.2.180.0000.01715.30
7.2.170.0070.00715.11
7.2.160.0030.00615.11
7.2.150.0080.00417.00
7.2.140.0090.00916.86
7.2.130.0030.01316.68
7.2.120.0030.00916.54
7.2.110.0100.00716.95
7.2.100.0060.01216.87
7.2.90.0000.01516.93
7.2.80.0070.00716.63
7.2.70.0060.00917.10
7.2.60.0080.00816.96
7.2.50.0110.00616.80
7.2.40.0060.00617.08
7.2.30.0030.00716.95
7.2.20.0070.00317.04
7.2.10.0110.00716.90
7.2.00.0040.01116.71
7.1.330.0030.01015.96
7.1.320.0070.01015.57
7.1.310.0030.00715.93
7.1.300.0080.00315.80
7.1.290.0060.00815.87
7.1.280.0070.00716.00
7.1.270.0060.00315.63
7.1.260.0130.00615.76
7.1.250.0000.01915.70
7.1.240.0040.01115.99
7.1.230.0030.00715.48
7.1.220.0000.01115.83
7.1.210.0070.01015.77
7.1.200.0050.00715.82
7.1.190.0060.01016.00
7.1.180.0070.00315.73
7.1.170.0040.00415.58
7.1.160.0000.01215.76
7.1.150.0000.01315.68
7.1.140.0030.01315.47
7.1.130.0060.00615.89
7.1.120.0000.00815.84
7.1.110.0030.01016.02
7.1.100.0030.00615.72
7.1.90.0060.00616.97
7.1.80.0090.00817.14
7.1.70.0080.00516.48
7.1.60.0160.01025.41
7.1.50.0160.00825.35
7.1.40.0130.01225.15
7.1.30.0120.01525.10
7.1.20.0170.00625.22
7.1.10.0050.00916.23
7.1.00.0060.00716.22
7.0.330.0120.00615.11
7.0.320.0040.00715.24
7.0.310.0050.00315.46
7.0.300.0040.00415.35
7.0.290.0000.01315.19
7.0.280.0070.00715.59
7.0.270.0070.00315.59
7.0.260.0080.00415.37
7.0.250.0090.00315.44
7.0.240.0060.00315.55
7.0.230.0030.01216.59
7.0.220.0070.01016.62
7.0.210.0060.00816.12
7.0.200.0090.00615.83
7.0.190.0080.00716.02
7.0.180.0050.01015.82
7.0.170.0030.01115.80
7.0.160.0050.00715.89
7.0.150.0100.00515.88
7.0.140.0050.00716.00
7.0.130.0050.00816.10
7.0.120.0080.00816.06
7.0.110.0040.01115.81
7.0.100.0110.00315.81
7.0.90.0180.01015.03
7.0.80.0050.00715.82
7.0.70.0070.00715.98
7.0.60.0170.01014.89
7.0.50.0210.00815.00
7.0.40.0300.00814.16
7.0.30.0070.00715.03
7.0.20.0140.01014.14
7.0.10.0150.01114.23
7.0.00.0160.01114.97
5.6.400.0130.00714.44
5.6.390.0150.00014.69
5.6.380.0090.00614.43
5.6.370.0050.00514.52
5.6.360.0050.00314.34
5.6.350.0080.00714.63
5.6.340.0030.01214.65
5.6.330.0030.01014.29
5.6.320.0030.01014.40
5.6.310.0000.01714.37
5.6.300.0000.01514.21
5.6.290.0110.00014.04
5.6.280.0060.00914.83
5.6.270.0070.00714.45
5.6.260.0030.00914.44
5.6.250.0100.00714.82
5.6.240.0070.00714.55
5.6.230.0100.00714.54
5.6.220.0090.00614.41
5.6.210.0040.01114.39
5.6.200.0080.00614.25
5.6.190.0040.01214.07
5.6.180.0030.01414.62
5.6.170.0040.01114.23
5.6.160.0060.00614.32
5.6.150.0080.00814.61
5.6.140.0040.00814.42
5.6.130.0040.00714.23
5.6.120.0090.00014.29
5.6.110.0040.01114.27
5.6.100.0070.00414.41
5.6.90.0110.00414.31
5.6.80.0090.00614.03
5.6.70.0030.00914.37
5.6.60.0030.00614.33
5.6.50.0060.00614.35
5.6.40.0070.00714.32
5.6.30.0030.01314.22
5.6.20.0120.00314.60
5.6.10.0030.00914.35
5.6.00.0060.00914.20

preferences:
123.83 ms | 403 KiB | 5 Q