3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ["1st Desc","2nd Desc","3rd Desc"]; $arr2 =["100.10","10.50","39.99"]; $combined = array_combine($arr1,$arr2); $expected = []; foreach($combined as $k=>$v){ $expected[] = ['description'=>$k,'amount'=>$v]; } echo json_encode($expected,JSON_PRETTY_PRINT); ?>

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.0100.00717.43
8.4.120.0130.00822.12
8.4.110.0110.01018.75
8.4.100.0120.00817.88
8.4.90.0110.00817.98
8.4.80.0060.00218.12
8.4.70.0080.00917.53
8.4.60.0110.00920.53
8.4.50.0050.00418.95
8.4.40.0120.00619.43
8.4.30.0100.01019.56
8.4.20.0090.00618.67
8.4.10.0000.00919.38
8.3.260.0130.00616.71
8.3.250.0110.00818.94
8.3.240.0070.01116.34
8.3.230.0140.00616.81
8.3.220.0110.00816.73
8.3.210.0110.00916.70
8.3.200.0100.00916.60
8.3.190.0110.00916.82
8.3.180.0040.00418.40
8.3.170.0120.00617.41
8.3.160.0040.00420.25
8.3.150.0130.00619.20
8.3.140.0090.00617.18
8.3.130.0030.00618.48
8.3.120.0060.00319.09
8.3.110.0000.00820.94
8.3.100.0030.00616.59
8.3.90.0000.00826.77
8.3.80.0060.00318.55
8.3.70.0150.00018.27
8.3.60.0080.01118.30
8.3.50.0080.00516.32
8.3.40.0070.00718.84
8.3.30.0110.00318.67
8.3.20.0060.00320.60
8.3.10.0000.00923.36
8.3.00.0070.00022.43
8.2.290.0120.00718.85
8.2.280.0040.00618.40
8.2.270.0050.00517.29
8.2.260.0040.00416.49
8.2.250.0050.00316.71
8.2.240.0000.01918.95
8.2.230.0130.00622.58
8.2.220.0100.00724.06
8.2.210.0110.00626.77
8.2.200.0090.00016.25
8.2.190.0090.00916.58
8.2.180.0100.00716.38
8.2.170.0120.00322.96
8.2.160.0060.00922.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.79
8.2.120.0040.00426.35
8.2.110.0060.00320.89
8.2.100.0000.01119.36
8.2.90.0060.00617.90
8.2.80.0100.00017.97
8.2.70.0050.00317.93
8.2.60.0000.00918.34
8.2.50.0100.00018.10
8.2.40.0080.00020.61
8.2.30.0080.00019.22
8.2.20.0070.00318.10
8.2.10.0040.00419.24
8.2.00.0030.00518.16
8.1.330.0120.00816.13
8.1.320.0100.01017.70
8.1.310.0060.00318.48
8.1.300.0100.00717.51
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0030.00520.13
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00020.87
8.1.230.0040.00819.15
8.1.220.0030.00617.78
8.1.210.0050.00318.94
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0080.00018.62
8.1.160.0040.00419.00
8.1.150.0000.00718.89
8.1.140.0030.00520.21
8.1.130.0030.00320.16
8.1.120.0000.00717.52
8.1.110.0050.00317.36
8.1.100.0070.00017.47
8.1.90.0000.00717.44
8.1.80.0040.00417.34
8.1.70.0000.00717.31
8.1.60.0000.01017.54
8.1.50.0060.00317.54
8.1.40.0000.00717.39
8.1.30.0030.00617.66
8.1.20.0040.00417.64
8.1.10.0000.00817.46
8.1.00.0050.00217.47
8.0.300.0040.00421.46
8.0.290.0000.00816.63
8.0.280.0040.00418.45
8.0.270.0000.00716.81
8.0.260.0000.00620.23
8.0.250.0030.00416.89
8.0.240.0030.00316.87
8.0.230.0040.00416.86
8.0.220.0000.00716.80
8.0.210.0040.00316.85
8.0.200.0000.00816.97
8.0.190.0040.00416.94
8.0.180.0000.00816.87
8.0.170.0090.00016.80
8.0.160.0080.00016.83
8.0.150.0040.00416.86
8.0.140.0040.00416.67
8.0.130.0030.00313.28
8.0.120.0030.00716.88
8.0.110.0050.00216.80
8.0.100.0000.00716.86
8.0.90.0000.00816.91
8.0.80.0090.01216.91
8.0.70.0000.00716.86
8.0.60.0070.00016.77
8.0.50.0080.00016.92
8.0.30.0090.01116.98
8.0.20.0190.00017.10
8.0.10.0070.00016.92
8.0.00.0070.01116.88
7.4.330.0050.00016.71
7.4.320.0000.00616.63
7.4.300.0030.00316.62
7.4.290.0000.00716.57
7.4.280.0040.00416.63
7.4.270.0030.00516.50
7.4.260.0000.00616.38
7.4.250.0000.00716.39
7.4.240.0030.00316.55
7.4.230.0080.00016.70
7.4.220.0040.00416.49
7.4.210.0080.01016.63
7.4.200.0040.00416.50
7.4.140.0120.01017.86
7.4.130.0150.00316.50
7.4.120.0090.00916.66
7.4.110.0030.01316.43
7.4.100.0060.01016.55
7.4.90.0100.00716.59
7.4.80.0050.01419.39
7.4.70.0110.00516.47
7.4.60.0030.01216.58
7.4.50.0160.00316.50
7.4.40.0150.00316.52
7.4.00.0050.01214.78
7.3.330.0060.00013.21
7.3.320.0000.00613.27
7.3.310.0040.00416.39
7.3.300.0030.00316.34
7.3.290.0030.00316.11
7.3.280.0090.00716.20
7.3.260.0090.01016.39
7.3.240.0090.00716.46
7.3.230.0100.00616.35
7.3.210.0120.00416.50
7.3.200.0070.01016.44
7.3.190.0030.01316.32
7.3.180.0130.00716.43
7.3.170.0170.00016.30
7.3.160.0050.01116.58
7.3.120.0070.00914.81
7.3.110.0030.01114.81
7.3.100.0020.01514.80
7.3.90.0080.00814.81
7.3.80.0080.00714.79
7.3.70.0060.00914.69
7.3.60.0070.00614.83
7.3.50.0060.00514.86
7.3.40.0070.00714.80
7.3.30.0030.01014.76
7.3.20.0070.00716.51
7.3.10.0060.00816.58
7.3.00.0040.01016.68
7.2.330.0060.01216.61
7.2.320.0030.01716.68
7.2.310.0080.00816.81
7.2.300.0030.01216.60
7.2.290.0100.00816.77
7.2.250.0040.01415.24
7.2.240.0050.01115.02
7.2.230.0070.00715.03
7.2.220.0040.01215.12
7.2.210.0050.01015.08
7.2.200.0040.01014.90
7.2.190.0060.00715.07
7.2.180.0070.00814.98
7.2.170.0040.00914.98
7.2.160.0070.00714.94
7.2.150.0080.01016.64
7.2.140.0060.00816.52
7.2.130.0080.00816.83
7.2.120.0040.01016.79
7.2.110.0080.00616.84
7.2.100.0070.00616.80
7.2.90.0080.00716.89
7.2.80.0060.00916.83
7.2.70.0110.00516.77
7.2.60.0100.00616.80
7.2.50.0040.01016.78
7.2.40.0080.00616.83
7.2.30.0100.00616.74
7.2.20.0090.00716.88
7.2.10.0090.00616.62
7.2.00.0070.00916.75
7.1.330.0090.00515.70
7.1.320.0080.00615.66
7.1.310.0030.01115.77
7.1.300.0020.01115.92
7.1.290.0070.00915.80
7.1.280.0090.00615.88
7.1.270.0050.00915.45
7.1.260.0070.00815.64
7.1.250.0060.01115.76

preferences:
27.99 ms | 403 KiB | 5 Q