3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = array('phrase', 'fruit'); $ar = ['a'=>'apple', 'b'=>'banana', 'c'=>'pear']; $new_ar = array_map(function ($v, $k) use ($keys) { return array_combine($keys, array($k, $v)); }, $ar, array_keys($ar)); print_r($new_ar);

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.20.0100.00717.87
8.4.10.0030.01619.60
8.3.150.0110.00719.01
8.3.140.0000.00818.27
8.3.130.0040.00418.53
8.3.120.0050.00520.67
8.3.110.0110.00416.48
8.3.100.0060.00316.74
8.3.90.0220.00016.66
8.3.80.0060.00317.97
8.3.70.0140.00716.38
8.3.60.0070.01118.38
8.3.50.0100.00724.44
8.3.40.0060.00918.57
8.3.30.0090.00918.71
8.3.20.0040.00421.90
8.3.10.0050.00320.21
8.3.00.0080.00023.31
8.2.270.0100.01017.17
8.2.260.0080.00016.57
8.2.250.0090.00618.29
8.2.240.0090.00017.17
8.2.230.0060.00320.94
8.2.220.0040.01137.54
8.2.210.0110.00426.77
8.2.200.0100.00316.38
8.2.190.0130.00316.75
8.2.180.0110.00718.16
8.2.170.0130.00722.96
8.2.160.0090.00622.28
8.2.150.0000.00824.18
8.2.140.0020.00524.66
8.2.130.0080.00026.16
8.2.120.0000.00726.16
8.2.110.0030.00720.35
8.2.100.0090.00318.03
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0080.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0090.00019.88
8.2.30.0000.00718.00
8.2.20.0050.00218.12
8.2.10.0040.00419.44
8.2.00.0070.00019.34
8.1.310.0110.00418.46
8.1.300.0000.00819.50
8.1.290.0090.00318.88
8.1.280.0090.00625.92
8.1.270.0000.00722.07
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00424.01
8.1.230.0100.00317.83
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0040.00418.76
8.1.150.0040.00418.89
8.1.140.0040.00418.90
8.1.130.0030.00320.12
8.1.120.0000.00717.50
8.1.110.0040.00417.41
8.1.100.0070.00017.46
8.1.90.0070.00017.46
8.1.80.0030.00617.29
8.1.70.0040.00417.45
8.1.60.0000.00817.47
8.1.50.0030.00517.41
8.1.40.0000.00817.38
8.1.30.0030.00617.67
8.1.20.0040.00417.48
8.1.10.0030.00617.54
8.1.00.0000.01117.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.41
8.0.270.0070.00018.02
8.0.260.0040.00418.38
8.0.250.0070.00016.85
8.0.240.0040.00417.02
8.0.230.0080.00016.92
8.0.220.0070.00016.88
8.0.210.0030.00316.80
8.0.200.0000.00816.85
8.0.190.0000.00716.88
8.0.180.0050.00216.93
8.0.170.0080.00016.92
8.0.160.0040.00416.86
8.0.150.0020.00516.82
8.0.140.0000.00716.69
8.0.130.0000.00513.34
8.0.120.0030.00616.88
8.0.110.0000.00716.80
8.0.100.0000.00716.95
8.0.90.0030.00616.97
8.0.80.0040.01016.89
8.0.70.0040.00416.89
8.0.60.0000.00716.95
8.0.50.0040.00416.75
8.0.30.0060.01117.21
8.0.20.0120.00617.18
8.0.10.0040.00417.01
8.0.00.0100.01416.66
7.4.330.0060.00015.55
7.4.320.0060.00016.44
7.4.300.0030.00316.50
7.4.290.0000.00716.52
7.4.280.0030.00616.62
7.4.270.0000.00716.43
7.4.260.0030.00313.29
7.4.250.0000.00816.44
7.4.240.0020.00616.53
7.4.230.0000.00716.27
7.4.220.0000.00716.57
7.4.210.0060.00816.53
7.4.200.0020.00516.59
7.4.130.0070.00916.43
7.4.120.0090.00916.55
7.4.110.0100.00716.50
7.4.100.0180.00616.55
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0110.00516.45
7.4.60.0030.01416.52
7.4.50.0100.01316.54
7.4.40.0070.01216.53
7.4.30.0140.00316.19
7.4.20.0120.00716.44
7.4.10.0090.00916.39
7.4.00.0100.00716.40
7.3.330.0000.00716.27
7.3.320.0060.00013.14
7.3.310.0000.00716.38
7.3.300.0000.00616.18
7.3.290.0070.00916.30
7.3.280.0060.01316.28
7.3.260.0090.01016.25
7.3.240.0090.00816.50
7.3.230.0100.00616.50
7.3.210.0000.01716.40
7.3.200.0120.00316.41
7.3.190.0180.00016.51
7.3.180.0140.00616.38
7.3.170.0070.01116.53
7.3.160.0120.00616.54
7.3.150.0110.00816.28
7.3.140.0130.00316.35
7.3.130.0070.01016.22
7.3.120.0030.01216.23
7.3.110.0100.00716.22
7.3.100.0100.00716.49
7.3.90.0130.00716.16
7.3.80.0090.00916.58
7.3.70.0070.01316.13
7.3.60.0180.00516.33
7.3.50.0090.01516.22
7.3.40.0200.00316.23
7.3.30.0120.00616.27
7.3.20.0170.00316.17
7.3.10.0200.00616.29
7.3.00.0090.01216.37
7.2.330.0030.01416.44
7.2.320.0000.01716.49
7.2.310.0070.01316.60
7.2.300.0060.01116.62
7.2.290.0070.01116.70
7.2.280.0100.01016.64
7.2.270.0060.01216.45
7.2.260.0110.00716.31
7.2.250.0100.00716.32
7.2.240.0100.01416.44
7.2.230.0040.01816.78
7.2.220.0000.02016.65
7.2.210.0040.01916.38
7.2.200.0120.01216.50
7.2.190.0090.01516.51
7.2.180.0110.00816.66
7.2.170.0090.00916.45
7.2.160.0090.00916.43
7.2.150.0110.01216.47
7.2.140.0120.01216.59
7.2.130.0270.00916.59
7.2.120.0100.01016.56
7.2.110.0150.00416.46
7.2.100.0120.00916.62
7.2.90.0100.01616.38
7.2.80.0060.01216.64
7.2.70.0030.02016.37
7.2.60.0120.01216.55
7.2.50.0160.00316.59
7.2.40.0120.01216.66
7.2.30.0220.02516.55
7.2.20.0030.01416.51
7.2.10.0120.00816.36
7.2.00.0110.00816.46

preferences:
124.04 ms | 403 KiB | 5 Q