3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3, [4, 6]]; $b = [3, [4, 5]]; $key = key(array_diff_assoc(array_merge(...$a), array_merge(...$b))); var_dump($key);

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.00.0140.00920.14
8.4.150.0010.00114.05
8.4.140.0130.00917.73
8.4.130.0040.00518.00
8.4.120.0120.00820.61
8.4.110.0150.00522.23
8.4.100.0140.00717.86
8.4.90.0110.01018.70
8.4.80.0100.00717.91
8.4.70.0130.00817.77
8.4.60.0100.01018.95
8.4.50.0120.00718.78
8.4.40.0090.00917.57
8.4.30.0080.00018.63
8.4.20.0130.00618.59
8.4.10.0090.00019.36
8.3.280.0110.00818.48
8.3.270.0100.00916.47
8.3.260.0110.00816.85
8.3.250.0100.00918.92
8.3.240.0130.00816.68
8.3.230.0090.01116.35
8.3.220.0140.00617.03
8.3.210.0100.00916.78
8.3.200.0040.00416.39
8.3.190.0060.00216.95
8.3.180.0050.00416.72
8.3.170.0060.01220.85
8.3.160.0040.00420.20
8.3.150.0060.01316.68
8.3.140.0090.00916.77
8.3.130.0030.00716.38
8.3.120.0030.00620.51
8.3.110.0080.00020.94
8.3.100.0100.00724.06
8.3.90.0140.00326.77
8.3.80.0040.00418.31
8.3.70.0160.00016.63
8.3.60.0070.00718.15
8.3.50.0000.01418.51
8.3.40.0040.01120.47
8.3.30.0000.01520.17
8.3.20.0060.00324.18
8.3.10.0000.00724.66
8.3.00.0160.00320.67
8.2.290.0070.01120.56
8.2.280.0100.01018.43
8.2.270.0110.00718.79
8.2.260.0100.00316.63
8.2.250.0070.00316.80
8.2.240.0060.00317.41
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0030.00526.77
8.2.200.0040.00416.50
8.2.190.0120.00316.75
8.2.180.0120.00916.63
8.2.170.0130.00619.01
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0070.01120.77
8.2.120.0150.00320.80
8.2.110.0040.01520.52
8.2.100.0090.00920.80
8.2.90.0100.01020.36
8.2.80.0100.00620.62
8.2.70.0100.00620.50
8.2.60.0100.01020.50
8.2.50.0120.00320.49
8.2.40.0100.01020.55
8.2.30.0000.01520.61
8.2.20.0120.00320.43
8.2.10.0030.01720.51
8.2.00.0160.00320.41
8.1.330.0100.00923.70
8.1.320.0100.00816.09
8.1.310.0040.01118.14
8.1.300.0080.00019.90
8.1.290.0000.01130.84
8.1.280.0110.00725.92
8.1.270.0130.00622.22
8.1.260.0080.00823.85
8.1.250.0110.00423.85
8.1.240.0000.01320.43
8.1.230.0040.01120.40
8.1.220.0030.00620.26
8.1.210.0150.00020.27
8.1.200.0000.00820.19
8.1.190.0090.00020.42
8.1.180.0080.00020.04
8.1.170.0110.00420.05
8.1.160.0100.00620.15
8.1.150.0030.01020.13
8.1.140.0040.00420.13
8.1.130.0000.00820.43
8.1.120.0100.00720.41
8.1.110.0070.00320.33
8.1.100.0080.00020.24
8.1.90.0000.00820.25
8.1.80.0050.00320.21
8.1.70.0120.00320.14
8.1.60.0090.00020.41
8.1.50.0000.01520.46
8.1.40.0140.00320.46
8.1.30.0000.01020.55
8.1.20.0060.00320.53
8.1.10.0060.00320.57
8.1.00.0040.00420.45

preferences:
26.49 ms | 403 KiB | 5 Q