3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = Array( Array( 'id' => 5, 'name' => 'Education', ), Array( 'id' => 4, 'name' => 'Computers', ), Array( 'id' => 7, 'name' => 'Science', ), Array( 'id' => 1, 'name' => 'Sports', ) ); $second = Array( Array( 'id' => 1, 'title' => 'Sport', ), Array( 'id' => 7, 'title' => 'Sci', ), Array( 'id' => 4, 'title' => 'Comp', ), Array( 'id' => 5, 'title' => 'Edu', ) ); $first = array_column($first, null, 'id'); $second = array_column($second, null, 'id'); $result = array_values(array_replace_recursive($first, $second)); 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.3.60.0070.01418.14
8.3.50.0180.00018.08
8.3.40.0120.00318.49
8.3.30.0150.00018.49
8.3.20.0000.00818.89
8.3.10.0080.00023.70
8.3.00.0000.00820.71
8.2.180.0120.00925.92
8.2.170.0180.00322.96
8.2.160.0030.01022.30
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.54
8.2.110.0030.00722.25
8.2.100.0100.00317.71
8.2.90.0080.00317.50
8.2.80.0080.00017.97
8.2.70.0030.00617.80
8.2.60.0040.00418.22
8.2.50.0070.00519.02
8.2.40.0030.00619.17
8.2.30.0030.00419.06
8.2.20.0040.00418.11
8.2.10.0020.00617.85
8.2.00.0000.00818.53
8.1.280.0030.01025.92
8.1.270.0050.00322.24
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.97
8.1.230.0040.00819.14
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0050.00317.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00418.74
8.1.150.0050.00218.79
8.1.140.0030.00520.59
8.1.130.0030.00618.67
8.1.120.0000.00717.33
8.1.110.0030.00517.32
8.1.100.0040.00417.41
8.1.90.0060.00217.40
8.1.80.0040.00417.38
8.1.70.0030.00417.42
8.1.60.0050.00717.55
8.1.50.0110.00217.43
8.1.40.0040.00617.45
8.1.30.0060.00717.52
8.1.20.0060.00617.50
8.1.10.0120.00317.43
8.1.00.0100.00517.32
8.0.300.0050.00321.59
8.0.290.0110.00016.63
8.0.280.0000.00718.25
8.0.270.0080.00016.65
8.0.260.0040.00317.59
8.0.250.0020.00516.84
8.0.240.0040.00316.75
8.0.230.0050.00316.80
8.0.220.0040.00416.83
8.0.210.0010.00616.77
8.0.200.0000.00716.88
8.0.190.0090.00416.82
8.0.180.0110.00216.77
8.0.170.0100.00316.82
8.0.160.0120.00116.81
8.0.150.0060.00716.74
8.0.140.0110.00217.37
8.0.130.0080.00515.56
8.0.120.0090.00316.72
8.0.110.0050.00816.77
8.0.100.0090.00417.30
8.0.90.0060.00516.77
8.0.80.0120.00316.75
8.0.70.0060.00516.73
8.0.60.0090.00216.74
8.0.50.0060.00516.71
8.0.30.0120.00416.76
8.0.20.0090.00717.08
8.0.10.0100.00216.89
8.0.00.0100.00616.88
7.4.330.0070.00315.92
7.4.320.0070.00616.37
7.4.300.0100.00216.48
7.4.290.0130.00316.49
7.4.280.0150.00216.46
7.4.270.0140.00416.42
7.4.260.0130.00416.48
7.4.250.0110.00516.39
7.4.240.0140.00416.42
7.4.230.0110.00316.46
7.4.220.0070.00616.47
7.4.210.0080.00816.40
7.4.200.0090.00416.34
7.4.190.0130.00216.54
7.4.180.0100.00516.54
7.4.160.0100.00616.46
7.4.150.0080.00616.38
7.4.140.0120.00917.37
7.4.130.0120.00516.39
7.4.120.0090.00916.39
7.4.110.0110.00516.36
7.4.100.0090.00416.36
7.4.90.0050.00916.37
7.4.80.0090.00517.06
7.4.70.0090.00416.38
7.4.60.0110.00316.39
7.4.50.0080.00416.28
7.4.40.0080.00516.28
7.4.30.0040.00716.23
7.4.20.0030.00716.34
7.4.10.0050.00516.40
7.4.00.0070.00515.94
7.3.330.0090.00615.17
7.3.320.0090.00415.15
7.3.310.0080.00716.11
7.3.300.0090.00516.11
7.3.290.0100.00316.19
7.3.280.0120.00516.20
7.3.270.0110.00416.18
7.3.260.0110.00516.22
7.3.250.0120.00316.12
7.3.240.0090.00716.17
7.3.230.0120.00416.13
7.3.220.0110.00416.07
7.3.210.0100.00516.08
7.3.200.0110.00516.21
7.3.190.0120.00516.20
7.3.180.0080.00716.12
7.3.170.0130.00416.16
7.3.160.0100.00616.24
7.3.150.0080.00716.09
7.3.140.0090.00616.09
7.3.130.0090.00516.09
7.3.120.0140.00216.16
7.3.110.0070.00815.42
7.3.100.0110.00415.43
7.3.90.0080.00715.66
7.3.80.0100.00615.57
7.3.70.0130.00315.58
7.3.60.0100.00515.58
7.3.50.0100.00415.49
7.3.40.0090.00615.42
7.3.30.0080.00615.41
7.3.20.0080.00716.01
7.3.10.0120.00415.92
7.3.00.0150.00715.66
7.2.340.0130.00416.16
7.2.330.0140.00416.30
7.2.320.0120.00616.29
7.2.310.0120.00516.22
7.2.300.0110.00616.28
7.2.290.0110.00716.32
7.2.280.0120.00616.20
7.2.270.0100.00716.26
7.2.260.0170.00116.19
7.2.250.0140.00416.20
7.2.240.0110.00615.74
7.2.230.0100.00715.70
7.2.220.0130.00515.69
7.2.210.0110.00615.62
7.2.200.0110.00815.80
7.2.190.0110.00615.70
7.2.180.0110.00515.48
7.2.170.0140.00415.60
7.2.160.0130.00315.62
7.2.150.0110.00616.25
7.2.140.0090.00716.22
7.2.130.0230.00515.96
7.2.120.0100.00615.87
7.2.110.0120.00515.78
7.2.100.0120.00915.77
7.2.90.0170.00615.68
7.2.80.0130.00615.77
7.2.70.0150.00615.82
7.2.60.0230.00715.75
7.2.50.0110.00715.76
7.2.40.0140.00615.83
7.2.30.0250.00615.73
7.2.20.0260.00615.80
7.2.10.0240.00715.83
7.2.00.0250.00715.80
7.1.330.0110.00515.22
7.1.320.0100.00615.12
7.1.310.0100.00715.17
7.1.300.0090.00715.13
7.1.290.0090.00715.18
7.1.280.0100.00515.21
7.1.270.0090.00615.18
7.1.260.0150.00615.20
7.1.250.0120.00614.78
7.1.240.0170.00314.83
7.1.230.0130.00714.67
7.1.220.0220.00714.63
7.1.210.0120.00614.63
7.1.200.0100.00614.67
7.1.190.0110.00814.71
7.1.180.0110.00814.58
7.1.170.0260.00514.64
7.1.160.0250.00814.62
7.1.150.0220.00714.67
7.1.140.0300.00414.64
7.1.130.0260.00514.65
7.1.120.0250.00514.74
7.1.110.0240.00614.60
7.1.100.0250.00414.64
7.1.90.0300.00414.97
7.1.80.0270.00514.95
7.1.70.0250.00514.87
7.1.60.0240.00717.42
7.1.50.0300.00717.40
7.1.40.0320.00417.49
7.1.30.0330.00517.46
7.1.20.0360.00517.41
7.1.10.0290.00714.91
7.1.00.0160.00814.87
7.0.330.0130.00714.47
7.0.320.0120.00515.60
7.0.310.0130.00415.65
7.0.300.0130.00415.61
7.0.290.0210.00215.65
7.0.280.0130.00415.69
7.0.270.0100.00615.68
7.0.260.0120.00515.65
7.0.250.0100.00715.73
7.0.240.0100.00715.70
7.0.230.0130.00415.83
7.0.220.0120.00615.59
7.0.210.0110.00515.72
7.0.200.0160.00415.80
7.0.190.0100.00615.65
7.0.180.0140.00715.63
7.0.170.0100.00615.68
7.0.160.0110.00515.56
7.0.150.0130.00315.64
7.0.140.0150.00315.61
7.0.130.0110.00515.73
7.0.120.0120.00515.80
7.0.110.0110.00615.67
7.0.100.0150.00215.55
7.0.90.0140.00115.62
7.0.80.0150.00415.56
7.0.70.0100.00615.61
7.0.60.0130.00315.65
7.0.50.0120.00315.55
7.0.40.0100.00515.71
7.0.30.0150.00215.62
7.0.20.0120.00415.67
7.0.10.0120.00315.68
7.0.00.0140.00415.58
5.6.400.0140.00414.99
5.6.390.0090.01115.01
5.6.380.0130.00414.80
5.6.370.0100.00515.92
5.6.360.0130.00315.86
5.6.350.0090.00715.84
5.6.340.0100.00615.88
5.6.330.0080.00715.84
5.6.320.0120.00315.86
5.6.310.0110.00315.93
5.6.300.0120.00315.85
5.6.290.0140.00115.78
5.6.280.0120.00415.84
5.6.270.0120.00215.89
5.6.260.0110.00415.88
5.6.250.0110.00415.85
5.6.240.0080.00715.83
5.6.230.0110.00415.92
5.6.220.0100.00615.92
5.6.210.0110.00415.93
5.6.200.0120.00416.03
5.6.190.0130.00315.93
5.6.180.0120.00415.95
5.6.170.0120.00516.02
5.6.160.0120.00315.96
5.6.150.0110.00416.07
5.6.140.0040.01115.96
5.6.130.0070.00815.91
5.6.120.0110.00515.97
5.6.110.0090.00715.90
5.6.100.0110.00515.92
5.6.90.0100.00515.84
5.6.80.0090.00615.82
5.6.70.0120.00315.96
5.6.60.0120.00315.99
5.6.50.0100.00415.92
5.6.40.0130.00115.89
5.6.30.0100.00415.87
5.6.20.0130.00115.95
5.6.10.0120.00215.80
5.6.00.0110.00215.83

preferences:
52.66 ms | 401 KiB | 5 Q