3v4l.org

run code in 300+ PHP versions simultaneously
<?php $struct = [ 'username' => '', 'password' => '', 'someId' => 1, ]; $input = [ 'username' => '', 'password' => '', 'someId' => 1, ]; var_dump(array_diff(array_merge_recursive($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.0140.00718.43
8.3.50.0090.01421.86
8.3.40.0110.00718.72
8.3.30.0090.00618.42
8.3.20.0040.00420.04
8.3.10.0040.00420.36
8.3.00.0030.01020.27
8.2.180.0060.00816.50
8.2.170.0090.00622.96
8.2.160.0140.00022.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00721.12
8.2.120.0040.00426.35
8.2.110.0070.00319.19
8.2.100.0030.01317.78
8.2.90.0000.00819.04
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0040.00420.41
8.2.30.0000.00719.23
8.2.20.0050.00217.48
8.2.10.0050.00317.89
8.2.00.0050.00318.09
8.1.280.0070.00725.92
8.1.270.0040.01423.83
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0060.00321.25
8.1.230.0080.00417.42
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0110.00017.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00818.45
8.1.160.0000.00720.67
8.1.150.0000.00718.73
8.1.140.0040.00419.46
8.1.130.0070.00017.63
8.1.120.0040.00417.39
8.1.110.0030.00517.41
8.1.100.0000.00717.39
8.1.90.0000.00717.34
8.1.80.0030.00517.27
8.1.70.0000.00817.37
8.1.60.0030.00717.39
8.1.50.0060.00317.44
8.1.40.0030.01017.45
8.1.30.0000.00817.55
8.1.20.0040.00417.32
8.1.10.0020.00517.31
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.37
8.0.270.0000.00717.08
8.0.260.0030.00317.17
8.0.250.0000.00716.99
8.0.240.0030.00316.94
8.0.230.0030.00316.84
8.0.220.0070.00016.85
8.0.210.0000.00716.91
8.0.200.0060.00016.89
8.0.190.0040.00416.83
8.0.180.0050.00316.80
8.0.170.0040.00416.79
8.0.160.0050.00216.88
8.0.150.0000.00716.85
8.0.140.0070.00016.68
8.0.130.0000.00513.36
8.0.120.0070.00016.90
8.0.110.0000.00816.73
8.0.100.0000.00716.94
8.0.90.0000.00716.76
8.0.80.0070.00716.87
8.0.70.0040.00416.77
8.0.60.0000.00716.95
8.0.50.0000.00816.84
8.0.30.0140.00816.96
8.0.20.0120.00917.40
8.0.10.0070.00016.91
8.0.00.0110.01016.76
7.4.330.0000.00516.72
7.4.320.0060.00016.42
7.4.300.0030.00316.37
7.4.290.0030.00316.42
7.4.280.0000.00716.46
7.4.270.0040.00416.43
7.4.260.0000.00816.51
7.4.250.0040.00416.49
7.4.240.0030.00316.53
7.4.230.0000.00816.59
7.4.220.0030.01516.46
7.4.210.0080.00616.46
7.4.200.0040.00416.40
7.4.160.0130.00316.48
7.4.150.0090.00917.40
7.4.140.0100.01217.86
7.4.130.0110.00716.38
7.4.120.0110.00616.40
7.4.110.0100.01416.42
7.4.100.0080.01216.44
7.4.90.0090.00916.43
7.4.80.0180.00419.39
7.4.70.0110.00616.43
7.4.60.0070.01116.54
7.4.50.0060.00816.36
7.4.40.0150.00316.68
7.4.30.0050.01116.57
7.4.00.0100.00514.93
7.3.330.0030.00312.92
7.3.320.0050.00013.11
7.3.310.0000.00816.17
7.3.300.0000.00716.09
7.3.290.0070.00016.23
7.3.280.0070.00916.14
7.3.270.0090.00917.40
7.3.260.0150.00916.43
7.3.250.0090.01016.17
7.3.240.0120.01116.34
7.3.230.0130.00316.39
7.3.210.0160.00316.25
7.3.200.0030.01316.25
7.3.190.0100.00716.14
7.3.180.0040.01916.21
7.3.170.0140.01216.23
7.3.160.0100.01316.20
7.3.120.0090.00714.58
7.3.110.0110.00514.63
7.3.100.0090.01014.59
7.3.90.0070.00514.62
7.3.80.0030.01114.55
7.3.70.0070.00514.63
7.3.60.0090.00314.74
7.3.50.0030.00714.65
7.3.40.0060.00814.47
7.3.30.0020.01414.49
7.3.20.0070.01016.47
7.3.10.0050.01016.64
7.3.00.0060.00816.41
7.2.330.0100.01316.13
7.2.320.0150.00916.23
7.2.310.0160.00616.57
7.2.300.0170.00016.46
7.2.290.0110.00616.45
7.2.250.0100.01014.64
7.2.240.0050.01114.66
7.2.230.0030.01314.93
7.2.220.0100.00014.74
7.2.210.0050.00714.75
7.2.200.0080.00514.81
7.2.190.0050.01014.79
7.2.180.0100.00614.74
7.2.170.0050.00714.67
7.2.160.0060.00614.79
7.2.150.0130.00316.55
7.2.140.0030.01016.71
7.2.130.0090.00616.41
7.2.120.0000.01416.77
7.2.110.0000.01116.44
7.2.100.0040.01216.67
7.2.90.0130.00316.79
7.2.80.0110.00616.67
7.2.70.0060.00616.86
7.2.60.0070.00916.76
7.2.50.0120.00016.46
7.2.40.0090.00616.64
7.2.30.0030.01316.75
7.2.20.0060.00616.64
7.2.10.0070.01016.72
7.2.00.0050.01117.90
7.1.330.0020.01315.83
7.1.320.0040.00915.67
7.1.310.0030.01315.62
7.1.300.0050.00815.65
7.1.290.0080.00615.74
7.1.280.0050.00715.71
7.1.270.0060.00915.68
7.1.260.0050.01015.70
7.1.250.0100.00315.69
7.1.200.0060.00315.77
7.1.100.0000.01118.15
7.1.70.0040.00416.95
7.1.60.0130.01319.27
7.1.50.0040.00716.87
7.1.00.0070.07322.57
7.0.200.0100.01014.89
7.0.60.0200.07321.67
7.0.50.0070.06717.80
7.0.40.0130.08320.21
7.0.30.0330.05320.11
7.0.20.0270.03720.13
7.0.10.0030.04720.32
7.0.00.0030.08720.20
5.6.210.0000.04320.74
5.6.200.0100.03318.13
5.6.190.0100.06720.34
5.6.180.0270.06020.45
5.6.170.0430.06720.38
5.6.160.0130.07020.46
5.6.150.0100.07318.14
5.6.140.0070.08318.16
5.6.130.0070.08318.08
5.6.120.0030.09021.01
5.6.110.0070.08321.10
5.6.100.0200.07021.10
5.6.90.0070.08721.11
5.6.80.0100.08020.43
5.5.350.0370.07020.33
5.5.340.0070.05717.96
5.5.330.0070.08020.21
5.5.320.0400.04020.28
5.5.310.0370.04320.32
5.5.300.0100.07318.02
5.5.290.0130.07317.92
5.5.280.0030.07720.96
5.5.270.0270.06720.64
5.5.260.0200.07320.62
5.5.250.0070.03720.79
5.5.240.0030.08020.04

preferences:
52.75 ms | 401 KiB | 5 Q