3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = [ 'id' => '42', 'base_id' => '23', 'role_id' => '1', 'title' => 'Manage Account', 'slug' => 'manage_account', 'parent' => '31', 'order' => '1', 'visibility' => '1' ]; $array_2 = [ 'id' => '42', 'base_id' => '23', 'role_id' => '99999', 'title' => 'Manage Account', 'slug' => 'manage_account', 'parent' => '31', 'order' => '1', 'visibility' => '1' ]; var_dump(array_diff($array_1, $array_2)); var_dump(array_diff_assoc($array_1, $array_2));

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.20.0140.00519.63
8.5.10.0060.00218.32
8.5.00.0120.01019.90
8.4.170.0130.00920.38
8.4.160.0140.01021.35
8.4.150.0030.00014.05
8.4.140.0120.01017.30
8.4.130.0140.00617.57
8.4.120.0050.00524.17
8.4.110.0150.00622.39
8.4.100.0130.00817.66
8.4.90.0120.00822.20
8.4.80.0110.00819.32
8.4.70.0090.01117.98
8.4.60.0090.01018.81
8.4.50.0140.00520.49
8.4.40.0090.00017.38
8.4.30.0060.00317.43
8.4.20.0130.00719.16
8.4.10.0110.00017.79
8.3.300.0100.01020.80
8.3.290.0160.00620.85
8.3.280.0100.01118.30
8.3.270.0120.00716.43
8.3.260.0110.00616.44
8.3.250.0100.00918.80
8.3.240.0130.00717.05
8.3.230.0110.00716.26
8.3.220.0070.00718.84
8.3.210.0120.00716.45
8.3.200.0160.00316.70
8.3.190.0100.01016.83
8.3.180.0090.00916.51
8.3.170.0040.00416.91
8.3.160.0090.00920.84
8.3.150.0140.00318.71
8.3.140.0120.00318.18
8.3.130.0000.00916.28
8.3.120.0060.00320.92
8.3.110.0030.00620.94
8.3.100.0050.00518.59
8.3.90.0110.00426.77
8.3.80.0060.00317.97
8.3.70.0120.00318.30
8.3.60.0120.00318.25
8.3.50.0220.00717.30
8.3.40.0070.00718.58
8.3.30.0150.00018.58
8.3.20.0080.00020.17
8.3.10.0080.00023.48
8.3.00.0080.00019.13
8.2.300.0100.01022.00
8.2.290.0100.00920.28
8.2.280.0120.00618.20
8.2.270.0130.00617.23
8.2.260.0110.00716.76
8.2.250.0030.00618.21
8.2.240.0060.00318.97
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0080.00026.77
8.2.200.0100.00018.16
8.2.190.0070.00716.58
8.2.180.0130.00618.29
8.2.170.0120.00322.96
8.2.160.0060.00919.16
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00420.82
8.2.110.0030.00620.89
8.2.100.0060.00617.78
8.2.90.0000.00819.08
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0000.00818.13
8.2.30.0060.00318.00
8.2.20.0070.00017.87
8.2.10.0000.00717.99
8.2.00.0080.00018.05
8.1.340.0080.01217.53
8.1.330.0110.01023.95
8.1.320.0090.01016.15
8.1.310.0000.01518.59
8.1.300.0130.00616.19
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0000.00720.25
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0040.00421.29
8.1.230.0060.00617.83
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0080.00018.54
8.1.160.0030.00518.82
8.1.150.0040.00420.13
8.1.140.0040.00417.66
8.1.130.0030.00318.82
8.1.120.0060.00317.31
8.1.110.0030.00717.38
8.1.100.0000.01017.34
8.1.90.0000.00717.30
8.1.80.0070.00017.27
8.1.70.0070.00017.41
8.1.60.0020.00517.41
8.1.50.0000.00817.44
8.1.40.0040.00417.41
8.1.30.0050.00317.50
8.1.20.0050.00217.42
8.1.10.0070.00017.34
8.1.00.0070.00017.29
8.0.300.0000.00718.77
8.0.290.0060.00616.75
8.0.280.0000.00718.25
8.0.270.0000.00716.61
8.0.260.0030.00316.75
8.0.250.0030.00316.88
8.0.240.0000.00716.89
8.0.230.0000.00716.78
8.0.220.0020.00516.85
8.0.210.0030.00516.86
8.0.200.0030.00316.76
8.0.190.0040.00416.75
8.0.180.0030.00316.73
8.0.170.0030.00616.73
8.0.160.0040.00416.71
8.0.150.0000.00716.60
8.0.140.0070.00016.75
8.0.130.0000.00513.23
8.0.120.0080.00016.75
8.0.110.0000.00716.78
8.0.100.0040.00416.90
8.0.90.0000.00816.71
8.0.80.0140.00716.84
8.0.70.0040.00416.60
8.0.60.0060.00316.80
8.0.50.0000.00816.77
8.0.30.0130.00416.98
8.0.20.0120.00717.40
8.0.10.0000.00716.96
8.0.00.0080.01416.51
7.4.330.0060.00015.55
7.4.320.0000.00716.34
7.4.300.0000.00616.45
7.4.290.0000.00816.41
7.4.280.0040.00416.44
7.4.270.0070.00016.52
7.4.260.0030.00316.32
7.4.250.0030.00316.47
7.4.240.0000.00716.39
7.4.230.0070.00016.46
7.4.220.0030.00516.60
7.4.210.0090.00616.63
7.4.200.0030.00416.61
7.4.160.0080.00916.46
7.4.150.0080.01217.40
7.4.140.0110.00817.86
7.4.130.0000.01816.30
7.4.120.0100.00816.42
7.4.110.0140.00416.45
7.4.100.0140.00716.45
7.4.90.0110.00516.43
7.4.80.0060.01219.39
7.4.70.0060.01216.28
7.4.60.0080.00816.50
7.4.50.0040.01116.40
7.4.40.0110.01116.52
7.4.00.0130.00314.85
7.3.330.0040.00413.16
7.3.320.0000.00512.99
7.3.310.0000.00716.19
7.3.300.0030.00316.12
7.3.290.0090.00716.13
7.3.280.0030.01316.05
7.3.270.0120.00617.40
7.3.260.0060.01216.11
7.3.250.0090.00916.23
7.3.240.0110.00816.31
7.3.230.0130.00316.18
7.3.210.0170.00016.50
7.3.200.0090.00616.15
7.3.190.0040.01216.29
7.3.180.0090.00916.46
7.3.170.0040.01216.59
7.3.160.0080.01416.23
7.2.330.0030.01316.34
7.2.320.0100.00716.22
7.2.310.0080.00816.48
7.2.300.0100.01016.66
7.2.290.0090.00916.44
7.2.60.0090.00616.63
7.2.10.0370.00917.55
7.2.00.0370.02417.82
7.1.200.0040.01115.66
7.1.130.0340.00616.32
7.1.120.0410.00516.79
7.1.110.0330.00816.21
7.1.100.0580.01416.11
7.1.90.0370.01015.63
7.1.80.0390.00715.80
7.1.70.0370.01115.11
7.1.60.0590.00833.22
7.1.50.0560.01032.92
7.1.40.0470.01432.62
7.1.30.0760.00632.78
7.1.20.0530.01232.76
7.1.10.0720.01714.63
7.1.00.0500.00914.54

preferences:
30.49 ms | 403 KiB | 5 Q