3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'id' => 12345 ], [ 'id' => 54321 ] ]; $array2 = [ [ 'date_entered' => 'today' ], [ 'date entered' => 'yesterday' ] ]; $result = array(); foreach($array1 as $key => $value){ $result[] = $array1[$key] + $array2[$key]; } 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.4.20.0170.00317.34
8.4.10.0040.00417.77
8.3.150.0070.01417.19
8.3.140.0060.01016.69
8.3.130.0040.00416.78
8.3.120.0030.00718.94
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0070.00319.36
8.3.70.0130.00318.55
8.3.60.0070.00716.50
8.3.50.0120.00622.10
8.3.40.0070.01118.54
8.3.30.0060.00819.12
8.3.20.0050.00220.07
8.3.10.0060.00323.42
8.3.00.0050.00220.49
8.2.270.0160.00317.16
8.2.260.0040.01416.42
8.2.250.0040.00418.25
8.2.240.0090.00018.95
8.2.230.0100.00622.58
8.2.220.0030.00637.54
8.2.210.0030.01026.77
8.2.200.0060.00318.88
8.2.190.0090.00616.75
8.2.180.0100.00318.41
8.2.170.0090.00618.75
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00322.14
8.2.110.0030.00622.25
8.2.100.0080.00417.91
8.2.90.0000.00719.34
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0000.00719.41
8.2.30.0000.00818.05
8.2.20.0000.00717.68
8.2.10.0000.00817.76
8.2.00.0070.00017.91
8.1.310.0110.00316.76
8.1.300.0090.00619.97
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00622.13
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00324.01
8.1.230.0040.00819.21
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0090.00317.35
8.1.190.0040.00417.54
8.1.180.0040.00418.10
8.1.170.0050.00518.66
8.1.160.0000.00722.02
8.1.150.0000.00818.59
8.1.140.0000.00817.48
8.1.130.0030.00317.86
8.1.120.0050.00317.35
8.1.110.0060.00317.44
8.1.100.0050.00217.47
8.1.90.0000.00817.36
8.1.80.0000.00717.45
8.1.70.0030.00317.39
8.1.60.0080.00017.46
8.1.50.0040.00417.42
8.1.40.0040.00417.50
8.1.30.0000.00817.52
8.1.20.0030.00517.67
8.1.10.0050.00217.43
8.1.00.0050.00217.35
8.0.300.0000.00718.77
8.0.290.0030.00317.05
8.0.280.0000.00718.35
8.0.270.0000.00817.12
8.0.260.0030.00316.91
8.0.250.0070.00016.97
8.0.240.0050.00517.02
8.0.230.0000.00716.94
8.0.220.0070.00016.91
8.0.210.0080.00017.01
8.0.200.0000.00616.87
8.0.190.0030.00316.96
8.0.180.0040.00417.04
8.0.170.0090.00017.01
8.0.160.0050.00216.77
8.0.150.0040.00416.82
8.0.140.0000.00816.82
8.0.130.0060.00013.33
8.0.120.0040.00416.96
8.0.110.0030.00516.92
8.0.100.0040.00416.85
8.0.90.0050.00216.98
8.0.80.0100.00616.83
8.0.70.0040.00416.85
8.0.60.0040.00416.92
8.0.50.0030.00516.75
8.0.30.0140.00517.15
8.0.20.0080.01117.40
8.0.10.0020.00517.11
8.0.00.0050.01216.91
7.4.330.0060.00015.09
7.4.320.0060.00016.60
7.4.300.0060.00016.68
7.4.290.0030.00316.39
7.4.280.0040.00416.55
7.4.270.0050.00316.49
7.4.260.0000.00716.50
7.4.250.0070.00016.36
7.4.240.0040.00416.50
7.4.230.0070.00016.70
7.4.220.0090.00916.53
7.4.210.0060.01216.53
7.4.200.0040.00316.69
7.4.190.0000.00716.59
7.4.160.0040.01816.59
7.4.150.0150.00417.40
7.4.140.0100.00817.86
7.4.130.0080.01416.58
7.4.120.0090.00916.54
7.4.110.0150.00616.43
7.4.100.0100.00616.58
7.4.90.0070.01016.74
7.4.80.0070.01116.41
7.4.70.0110.00916.56
7.4.60.0190.00316.34
7.4.50.0000.00816.15
7.4.40.0100.00322.77
7.4.30.0130.00316.52
7.4.10.0060.01315.00
7.4.00.0050.01114.89
7.3.330.0050.00013.02
7.3.320.0050.00013.18
7.3.310.0030.00316.22
7.3.300.0040.00416.28
7.3.290.0050.00916.27
7.3.280.0090.00916.29
7.3.270.0160.01017.40
7.3.260.0130.00716.38
7.3.250.0120.00516.44
7.3.240.0150.00516.39
7.3.230.0080.00816.39
7.3.210.0130.00316.42
7.3.200.0000.01919.39
7.3.190.0070.01016.49
7.3.180.0120.00316.29
7.3.170.0130.00716.65
7.3.160.0040.01216.64
7.3.130.0030.01214.79
7.3.120.0060.00914.95
7.3.110.0080.01014.66
7.3.100.0060.00914.76
7.3.90.0080.00414.80
7.3.80.0020.01414.88
7.3.70.0020.01014.81
7.3.60.0080.00314.75
7.3.50.0040.00914.77
7.3.40.0040.00914.91
7.3.30.0020.01114.80
7.3.20.0080.00616.66
7.3.10.0050.00816.69
7.3.00.0060.00616.74
7.2.330.0070.01116.50
7.2.320.0040.01516.71
7.2.310.0130.00616.69
7.2.300.0100.00716.43
7.2.290.0140.00316.42
7.2.260.0100.00714.65
7.2.250.0010.01514.91
7.2.240.0030.01315.05
7.2.230.0040.00714.90
7.2.220.0080.00515.12
7.2.210.0080.00514.94
7.2.200.0060.00914.96
7.2.190.0080.00614.87
7.2.180.0040.00615.13
7.2.170.0050.00614.99
7.2.160.0020.01314.91
7.2.150.0100.00316.79
7.2.140.0080.00516.89
7.2.130.0050.00816.91
7.2.120.0070.01016.92
7.2.110.0060.01016.91
7.2.100.0130.00316.86
7.2.90.0100.00317.08
7.2.80.0100.00316.84
7.2.70.0010.00916.83
7.2.60.0040.00816.83
7.2.50.0030.01016.86
7.2.40.0070.00816.91
7.2.30.0060.00917.09
7.2.20.0090.00516.86
7.2.10.0030.01116.83
7.2.00.0030.00816.99
7.1.330.0090.00715.66
7.1.320.0050.00915.88
7.1.310.0020.01015.86
7.1.300.0030.01115.88
7.1.290.0070.00515.91
7.1.280.0030.01015.83
7.1.270.0030.01015.80
7.1.260.0030.00815.78
7.1.250.0030.01015.67
7.1.240.0020.01315.81
7.1.230.0070.00615.70
7.1.220.0100.00615.89
7.1.210.0050.01015.86
7.1.200.0060.00915.87
7.1.190.0050.00715.60
7.1.180.0040.00515.84
7.1.170.0080.00615.61
7.1.160.0040.00815.73
7.1.150.0060.00715.75
7.1.140.0040.01015.90
7.1.130.0080.00515.72
7.1.120.0050.00715.77
7.1.110.0000.01415.71
7.1.100.0050.01115.66
7.1.90.0120.00215.84
7.1.80.0050.00715.73
7.1.70.0020.00716.26
7.1.60.0050.01016.84
7.1.50.0070.00416.32
7.1.40.0050.00815.80
7.1.30.0050.01015.78
7.1.20.0030.01215.78
7.1.10.0090.00615.61
7.1.00.0030.03117.99
7.0.330.0020.01215.27
7.0.320.0090.00615.35
7.0.310.0030.00915.43
7.0.300.0080.00615.47
7.0.290.0020.01115.35
7.0.280.0060.00415.36
7.0.270.0070.00715.58
7.0.260.0030.00915.28
7.0.250.0040.01115.40
7.0.240.0070.00715.40
7.0.230.0050.00915.33
7.0.220.0050.00315.40
7.0.210.0060.00315.35
7.0.200.0060.00515.76
7.0.190.0050.00715.49
7.0.180.0070.00515.41
7.0.170.0060.00815.21
7.0.160.0080.00615.25
7.0.150.0030.00815.22
7.0.140.0020.03217.66
7.0.130.0030.01315.44
7.0.120.0080.00915.37
7.0.110.0040.00815.45
7.0.100.0040.00715.50
7.0.90.0090.00515.43
7.0.80.0090.00515.38
7.0.70.0070.03017.46
7.0.60.0060.03017.52
7.0.50.0090.02917.72
7.0.40.0020.02415.58
7.0.30.0050.03515.74
7.0.20.0080.02715.64
7.0.10.0010.02415.73
7.0.00.0050.02515.60
5.6.400.0080.00714.62
5.6.390.0020.00814.52
5.6.380.0050.00914.60
5.6.370.0090.00314.65
5.6.360.0070.00714.42
5.6.350.0050.00714.21
5.6.340.0040.01014.46
5.6.330.0050.00614.72
5.6.320.0080.00814.47
5.6.310.0070.00714.44
5.6.300.0030.01214.12
5.6.290.0020.01214.37
5.6.280.0040.03216.77
5.6.270.0050.00814.66
5.6.260.0020.01214.21
5.6.250.0080.00614.37
5.6.240.0060.00814.48
5.6.230.0060.00814.50
5.6.220.0020.02916.42
5.6.210.0080.02016.40
5.6.200.0040.03116.75
5.6.190.0110.02916.72
5.6.180.0040.03416.64
5.6.170.0060.03416.55
5.6.160.0070.03216.68
5.6.150.0070.02716.55
5.6.140.0070.03216.83
5.6.130.0080.03216.55
5.6.120.0060.02216.67
5.6.110.0020.03916.64
5.6.100.0070.01916.54
5.6.90.0060.02416.55
5.6.80.0030.02316.37
5.6.70.0020.03716.39
5.6.60.0080.02816.33
5.6.50.0100.02816.32
5.6.40.0040.03416.32
5.6.30.0070.03116.40
5.6.20.0030.01916.36
5.6.10.0080.03216.41
5.6.00.0050.02916.44
5.5.380.0090.00914.41
5.5.370.0030.01014.13
5.5.360.0090.03016.44
5.5.350.0090.03016.30
5.5.340.0070.03216.57
5.5.330.0090.03116.37
5.5.320.0070.03416.39
5.5.310.0050.02116.43
5.5.300.0040.02216.47
5.5.290.0050.03116.45
5.5.280.0110.03016.63
5.5.270.0050.03616.45
5.5.260.0130.03116.35
5.5.250.0070.02616.49
5.5.240.0070.03316.29
5.5.230.0150.02716.28
5.5.220.0070.03516.14
5.5.210.0100.03016.32
5.5.200.0080.03016.21
5.5.190.0040.03416.31
5.5.180.0070.02516.20
5.5.170.0080.00714.21
5.5.160.0090.02316.21
5.5.150.0120.02816.27
5.5.140.0120.02016.34
5.5.130.0060.02316.27
5.5.120.0120.02215.98
5.5.110.0050.03216.31
5.5.100.0050.02716.29
5.5.90.0020.03116.17
5.5.80.0010.02316.25
5.5.70.0070.03216.26
5.5.60.0060.03216.27
5.5.50.0070.03216.16
5.5.40.0040.02616.14
5.5.30.0030.02115.97
5.5.20.0060.02416.14
5.5.10.0060.02716.24
5.5.00.0100.01216.20
5.4.450.0120.02814.59
5.4.440.0090.02414.65
5.4.430.0060.02014.54
5.4.420.0080.01814.68
5.4.410.0060.01914.52
5.4.400.0090.02614.54
5.4.390.0100.02414.44
5.4.380.0080.03014.47
5.4.370.0090.01714.53
5.4.360.0070.03314.47
5.4.350.0050.03014.43
5.4.340.0060.01714.42
5.4.330.0040.00912.21
5.4.320.0080.02914.44
5.4.310.0080.03214.53
5.4.300.0080.02814.49
5.4.290.0040.01914.43
5.4.280.0040.02514.48
5.4.270.0030.02814.40
5.4.260.0050.02114.52
5.4.250.0060.02614.55
5.4.240.0060.01614.44
5.4.230.0050.01814.46
5.4.220.0030.02114.44
5.4.210.0050.03114.54
5.4.200.0060.01914.52
5.4.190.0100.02414.46
5.4.180.0070.02914.46
5.4.170.0030.01514.46
5.4.160.0070.01314.48
5.4.150.0030.01714.49
5.4.140.0070.01413.65
5.4.130.0080.01413.56
5.4.120.0030.01813.62
5.4.110.0050.01713.59
5.4.100.0050.01713.59
5.4.90.0050.01613.62
5.4.80.0030.01613.59
5.4.70.0070.01213.53
5.4.60.0070.01213.59
5.4.50.0040.03113.55
5.4.40.0060.01813.53
5.4.30.0050.02913.64
5.4.20.0050.02613.63
5.4.10.0050.03013.61
5.4.00.0050.02513.35
5.3.290.0030.06314.53
5.3.280.0030.07714.50
5.3.270.0100.05014.54
5.3.260.0030.03714.57
5.3.250.0000.04014.59
5.3.240.0030.03714.46
5.3.230.0000.04014.46
5.3.220.0070.03314.53
5.3.210.0100.03014.55
5.3.200.0000.04314.55
5.3.190.0000.04014.57
5.3.180.0030.03714.42
5.3.170.0070.03314.53
5.3.160.0000.06714.57
5.3.150.0030.03714.55
5.3.140.0000.06714.52
5.3.130.0000.08314.50
5.3.120.0070.05014.41
5.3.110.0170.06714.48
5.3.100.0000.05013.86
5.3.90.0000.03713.88
5.3.80.0030.03713.88
5.3.70.0100.03014.02
5.3.60.0070.03314.00
5.3.50.0030.03713.90
5.3.40.0070.07013.93
5.3.30.0100.02713.89
5.3.20.0000.03713.67
5.3.10.0000.03713.62
5.3.00.0070.05013.59
5.2.170.0030.03011.14
5.2.160.0030.05010.96
5.2.150.0000.03011.13
5.2.140.0000.03011.11
5.2.130.0070.03011.10
5.2.120.0100.05310.96
5.2.110.0030.03011.16
5.2.100.0000.03011.09
5.2.90.0000.03011.08
5.2.80.0030.02710.96
5.2.70.0030.03710.95
5.2.60.0000.03010.95
5.2.50.0030.03711.05
5.2.40.0030.03011.01
5.2.30.0000.03310.96
5.2.20.0000.03010.95
5.2.10.0030.04710.95
5.2.00.0030.03010.95
5.1.60.0030.02310.95
5.1.50.0070.02010.95
5.1.40.0000.03310.95
5.1.30.0030.02710.95
5.1.20.0000.02710.95
5.1.10.0000.02710.95
5.1.00.0000.02710.95
5.0.50.0030.02010.95
5.0.40.0000.02010.95
5.0.30.0030.03010.95
5.0.20.0000.02010.95
5.0.10.0030.02010.95
5.0.00.0000.03010.95
4.4.90.0000.02010.95
4.4.80.0000.01710.95
4.4.70.0030.01310.95
4.4.60.0000.01710.95
4.4.50.0070.03310.95
4.4.40.0000.02310.95
4.4.30.0030.01310.95
4.4.20.0000.01310.95
4.4.10.0030.01010.95
4.4.00.0030.02310.95
4.3.110.0000.01710.95
4.3.100.0030.01310.95
4.3.90.0030.01310.95
4.3.80.0000.02310.95
4.3.70.0000.01310.95
4.3.60.0000.01710.95
4.3.50.0000.03710.95
4.3.40.0030.03010.95
4.3.30.0000.01710.95
4.3.20.0030.01310.95
4.3.10.0030.01310.95
4.3.00.0000.01310.95

preferences:
34.9 ms | 403 KiB | 5 Q