3v4l.org

run code in 300+ PHP versions simultaneously
<?php $struct = [ 'username' => '', 'password' => '', 'someId' => 1, ]; $input = [ 'username' => '', 'password' => '', 'someId' => 1, ]; var_dump(arra_diff($struct, $input)); //var_dump(array_diff(array_merge($input, $struct), $struct));

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.0090.00918.55
8.3.50.0190.00321.92
8.3.40.0150.00618.97
8.3.30.0090.00618.55
8.3.20.0120.00320.20
8.3.10.0040.00420.70
8.3.00.0060.00318.57
8.2.180.0040.01116.75
8.2.170.0140.00322.96
8.2.160.0070.01022.15
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.18
8.2.120.0070.00026.35
8.2.110.0030.00622.25
8.2.100.0060.00617.72
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.09
8.2.40.0040.00420.59
8.2.30.0030.00619.41
8.2.20.0040.00417.54
8.2.10.0040.00418.04
8.2.00.0070.00018.10
8.1.280.0070.01425.92
8.1.270.0090.00923.87
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0040.00422.23
8.1.230.0060.00617.52
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00717.22
8.1.180.0060.00318.10
8.1.170.0030.00818.51
8.1.160.0040.00420.73
8.1.150.0080.00020.59
8.1.140.0050.00319.51
8.1.130.0070.00017.70
8.1.120.0000.00817.30
8.1.110.0050.00317.27
8.1.100.0050.00317.42
8.1.90.0000.00717.38
8.1.80.0040.00417.32
8.1.70.0030.00517.39
8.1.60.0110.00217.52
8.1.50.0040.00417.54
8.1.40.0060.00617.54
8.1.30.0000.00817.57
8.1.20.0030.00517.54
8.1.10.0030.00517.59
8.1.00.0050.00317.36
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0060.00018.33
8.0.270.0000.00717.09
8.0.260.0000.00617.07
8.0.250.0040.00416.97
8.0.240.0000.00717.02
8.0.230.0000.00816.88
8.0.220.0070.00016.89
8.0.210.0040.00416.89
8.0.200.0030.00316.90
8.0.190.0040.00416.86
8.0.180.0040.00416.92
8.0.170.0080.00016.95
8.0.160.0070.00016.89
8.0.150.0050.00316.71
8.0.140.0040.00416.87
8.0.130.0000.00513.34
8.0.120.0030.00716.83
8.0.110.0000.00716.84
8.0.100.0000.00716.91
8.0.90.0000.00816.88
8.0.80.0070.00716.93
8.0.70.0040.00416.81
8.0.60.0040.00416.93
8.0.50.0030.00516.70
8.0.30.0090.00916.91
8.0.20.0120.01017.40
8.0.10.0030.00616.86
8.0.00.0110.01316.60
7.4.330.0050.00016.67
7.4.320.0000.00616.52
7.4.300.0030.00316.41
7.4.290.0030.00316.55
7.4.280.0030.00516.50
7.4.270.0000.00816.56
7.4.260.0000.00916.57
7.4.250.0040.00416.32
7.4.240.0050.00316.63
7.4.230.0040.00416.67
7.4.220.0060.01216.37
7.4.210.0030.01216.60
7.4.200.0040.00416.30
7.4.160.0100.00716.47
7.4.150.0060.01917.40
7.4.140.0110.00617.86
7.4.130.0090.00916.46
7.4.120.0090.01116.53
7.4.110.0040.01316.45
7.4.100.0100.01316.51
7.4.90.0120.00616.49
7.4.80.0180.00619.39
7.4.70.0060.00916.63
7.4.60.0110.00816.34
7.4.50.0070.00716.63
7.4.40.0030.01216.47
7.4.30.0100.00616.57
7.4.00.0070.00714.78
7.3.330.0000.00513.05
7.3.320.0000.00513.24
7.3.310.0000.00716.36
7.3.300.0040.00416.23
7.3.290.0000.00716.25
7.3.280.0070.00916.25
7.3.270.0040.01317.40
7.3.260.0090.00916.41
7.3.250.0110.01016.24
7.3.240.0070.01016.38
7.3.230.0080.00816.39
7.3.210.0030.01316.48
7.3.200.0140.00816.37
7.3.190.0090.00616.27
7.3.180.0080.00816.45
7.3.170.0150.00616.25
7.3.160.0060.01316.60
7.2.330.0110.00516.54
7.2.320.0130.01216.47
7.2.310.0030.01416.38
7.2.300.0080.01116.44
7.2.290.0070.01016.27
7.2.60.0090.00616.59
7.2.00.0030.00919.10
7.1.200.0060.00615.22
7.1.100.0060.00617.55
7.1.70.0030.00616.88
7.1.60.0090.01519.27
7.1.50.0100.00316.59
7.1.00.0030.07722.54
7.0.200.0090.00314.50
7.0.60.0100.07721.63
7.0.50.0070.06017.86
7.0.40.0070.07320.36
7.0.30.0370.08020.09
7.0.20.0230.06320.20
7.0.10.0070.08320.20
7.0.00.0100.07020.18
5.6.280.0000.03720.88
5.6.210.0100.03320.46
5.6.200.0070.08318.22
5.6.190.0130.03320.50
5.6.180.0130.05020.43
5.6.170.0130.06020.38
5.6.160.0070.05020.71
5.6.150.0130.04318.07
5.6.140.0070.08318.11
5.6.130.0030.07718.13
5.6.120.0130.08020.98
5.6.110.0170.07320.97
5.6.100.0100.08020.88
5.6.90.0030.05321.01
5.6.80.0130.07320.48
5.5.350.0330.07720.32
5.5.340.0030.06017.89
5.5.330.0100.08320.06
5.5.320.0230.03720.50
5.5.310.0300.05320.24
5.5.300.0030.04718.02
5.5.290.0070.05717.91
5.5.280.0070.06020.87
5.5.270.0100.04720.95
5.5.260.0070.05320.75
5.5.250.0030.04020.68
5.5.240.0100.07020.13

preferences:
47.9 ms | 401 KiB | 5 Q