3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = [ 'sys_a_1' => 'sys_b_1', 'sys_a_2' => 'sys_b_2', ]; $data = [ 'sys_a_1' => 'data_1', 'sys_a_2' => 'data_2', ]; $result = array_combine($map,$data); print_r($result);

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.5.00.0120.01119.99
8.4.150.0020.00014.05
8.4.140.0130.00917.49
8.4.130.0110.00818.71
8.4.120.0110.00920.56
8.4.110.0130.00822.47
8.4.100.0130.01017.71
8.4.90.0140.00622.58
8.4.80.0120.00717.64
8.4.70.0100.01217.56
8.4.60.0090.01018.68
8.4.50.0020.00720.23
8.4.40.0000.02018.54
8.4.30.0110.01120.25
8.4.20.0060.00318.02
8.4.10.0100.01019.50
8.3.280.0120.00818.22
8.3.270.0110.00716.40
8.3.260.0150.00416.31
8.3.250.0110.00818.92
8.3.240.0110.00816.17
8.3.230.0060.00316.36
8.3.220.0050.00216.92
8.3.210.0060.00219.04
8.3.200.0050.00416.50
8.3.190.0110.00817.07
8.3.180.0100.00819.07
8.3.170.0040.00416.52
8.3.160.0090.00916.87
8.3.150.0130.00617.09
8.3.140.0070.00719.09
8.3.130.0150.00018.27
8.3.120.0060.00318.79
8.3.110.0030.00720.94
8.3.100.0060.00324.06
8.3.90.0100.00026.77
8.3.80.0090.00017.97
8.3.70.0110.00716.50
8.3.60.0150.00616.63
8.3.50.0080.01124.48
8.3.40.0090.01118.79
8.3.30.0110.00718.42
8.3.20.0040.00421.78
8.3.10.0040.00420.16
8.3.00.0080.00022.32
8.2.290.0130.00720.67
8.2.280.0060.00220.30
8.2.270.0110.00718.25
8.2.260.0150.00316.32
8.2.250.0150.00416.70
8.2.240.0090.00618.96
8.2.230.0000.00822.58
8.2.220.0130.00637.54
8.2.210.0040.01526.77
8.2.200.0080.00316.38
8.2.190.0140.00016.58
8.2.180.0120.00416.50
8.2.170.0130.00322.96
8.2.160.0130.00719.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00322.30
8.2.100.0100.00317.78
8.2.90.0000.00917.75
8.2.80.0040.00418.73
8.2.70.0000.00817.91
8.2.60.0000.01017.97
8.2.50.0000.00719.25
8.2.40.0060.00321.07
8.2.30.0080.00019.20
8.2.20.0000.00717.90
8.2.10.0000.00820.94
8.2.00.0000.00719.46
8.1.330.0110.00722.04
8.1.320.0120.00916.03
8.1.310.0000.00816.53
8.1.300.0030.01619.47
8.1.290.0040.00418.88
8.1.280.0160.00625.92
8.1.270.0000.00722.05
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00424.01
8.1.230.0040.00717.64
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0080.00017.10
8.1.190.0040.00417.13
8.1.180.0070.00319.03
8.1.170.0060.00318.67
8.1.160.0090.00018.88
8.1.150.0000.00718.86
8.1.140.0000.00718.78
8.1.130.0040.00417.36
8.1.120.0030.00317.28
8.1.110.0030.00317.34
8.1.100.0070.00017.37
8.1.90.0040.00417.38
8.1.80.0030.00517.43
8.1.70.0000.00717.41
8.1.60.0010.01117.52
8.1.50.0080.00017.33
8.1.40.0000.00717.41
8.1.30.0040.00417.56
8.1.20.0000.00817.52
8.1.10.0040.00417.41
8.1.00.0050.00617.26
8.0.300.0050.00218.77
8.0.290.0080.00016.75
8.0.280.0030.00318.43
8.0.270.0000.00816.61
8.0.260.0000.00616.70
8.0.250.0070.00016.77
8.0.240.0030.00316.89
8.0.230.0080.00016.79
8.0.220.0070.00016.81
8.0.210.0070.00316.77
8.0.200.0000.00816.88
8.0.190.0000.00716.77
8.0.180.0050.00316.83
8.0.170.0040.00416.83
8.0.160.0030.00516.90
8.0.150.0000.00716.80
8.0.140.0030.00316.76
8.0.130.0030.00313.28
8.0.120.0040.00416.68
8.0.110.0030.00316.63
8.0.100.0040.00416.70
8.0.90.0110.00016.68
8.0.80.0140.00016.80
8.0.70.0000.00716.88
8.0.60.0050.00316.69
8.0.50.0000.00816.82
8.0.30.0070.01017.08
8.0.20.0100.00816.98
8.0.10.0000.00716.74
8.0.00.0150.00316.56
7.4.330.0000.00715.55
7.4.320.0000.00616.41
7.4.300.0030.00316.38
7.4.290.0000.00716.47
7.4.280.0030.00516.51
7.4.270.0000.00716.50
7.4.260.0000.00613.10
7.4.250.0030.00316.49
7.4.240.0030.00416.49
7.4.230.0030.00316.32
7.4.220.0020.00516.58
7.4.210.0080.00916.39
7.4.200.0000.00716.42
7.4.130.0130.00516.24
7.4.120.0130.01016.23
7.4.110.0030.01416.33
7.4.100.0100.01016.46
7.4.90.0140.00416.50
7.4.80.0100.00619.39
7.4.70.0160.00016.41
7.4.60.0120.00616.28
7.4.50.0070.01016.43
7.4.40.0030.01316.37
7.4.30.0100.01116.21
7.4.20.0130.01016.24
7.4.10.0060.01116.21
7.4.00.0130.01016.48
7.3.330.0000.00716.10
7.3.320.0020.00213.04
7.3.310.0030.00316.07
7.3.300.0030.00316.11
7.3.290.0060.01116.10
7.3.280.0120.00916.04
7.3.260.0120.00816.13
7.3.240.0080.00816.39
7.3.230.0110.00716.13
7.3.210.0170.00716.11
7.3.200.0030.01416.24
7.3.190.0000.01516.29
7.3.180.0060.01016.08
7.3.170.0100.01016.23
7.3.160.0070.01316.07
7.3.150.0100.01016.32
7.3.140.0060.01016.25
7.3.130.0120.00616.08
7.3.120.0090.01215.96
7.3.110.0080.01016.10
7.3.100.0110.00816.14
7.3.90.0090.00916.02
7.3.80.0120.00416.03
7.3.70.0100.00716.08
7.3.60.0090.00915.89
7.3.50.0120.00616.04
7.3.40.0070.01315.98
7.3.30.0090.00915.95
7.3.20.0130.01015.98
7.3.10.0060.01016.00
7.3.00.0070.01015.93
7.2.330.0130.01016.21
7.2.320.0130.00316.71
7.2.310.0040.01916.33
7.2.300.0100.00616.37
7.2.290.0060.01616.51
7.2.280.0090.00916.34
7.2.270.0100.01316.42
7.2.260.0110.01016.20
7.2.250.0060.01316.32
7.2.240.0060.01216.17
7.2.230.0100.01016.47
7.2.220.0100.01016.40
7.2.210.0080.01516.23
7.2.200.0100.01016.36
7.2.190.0040.01616.29
7.2.180.0060.01216.23
7.2.170.0040.01515.94
7.2.160.0090.00916.10
7.2.150.0120.00616.16
7.2.140.0040.01416.25
7.2.130.0070.01116.33
7.2.120.0110.00716.30
7.2.110.0110.00716.21
7.2.100.0050.01316.21
7.2.90.0110.00716.31
7.2.80.0100.01316.25
7.2.70.0090.00916.22
7.2.60.0070.01116.17
7.2.50.0070.01015.97
7.2.40.0120.00616.31
7.2.30.0040.01816.14
7.2.20.0150.00816.23
7.2.10.0140.00316.26
7.2.00.0030.01916.24

preferences:
30.24 ms | 403 KiB | 5 Q