3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array_diff_assoc(array('a' => array('b' => 'c')), array('a' => array('b' => 'd'))); var_dump($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.3.60.0110.00616.75
8.3.50.0100.00616.36
8.3.40.0050.01018.74
8.3.30.0060.00918.77
8.3.20.0080.00018.82
8.3.10.0000.00820.48
8.3.00.0040.00418.89
8.2.180.0090.00618.43
8.2.170.0070.00722.96
8.2.160.0090.00620.89
8.2.150.0130.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.70
8.2.110.0030.00721.02
8.2.100.0070.00317.84
8.2.90.0040.00419.19
8.2.80.0040.00419.32
8.2.70.0000.00817.48
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00419.82
8.2.30.0000.00717.98
8.2.20.0040.00417.64
8.2.10.0030.00617.66
8.2.00.0040.00417.67
8.1.280.0100.00725.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.42
8.1.230.0070.00421.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.27
8.1.180.0040.00418.10
8.1.170.0000.00818.75
8.1.160.0040.00418.74
8.1.150.0040.00418.49
8.1.140.0000.00717.30
8.1.130.0030.00317.87
8.1.120.0000.00717.30
8.1.110.0000.00717.41
8.1.100.0000.00717.43
8.1.90.0000.00717.29
8.1.80.0070.00017.45
8.1.70.0040.00417.29
8.1.60.0040.00417.40
8.1.50.0040.00417.39
8.1.40.0070.00317.43
8.1.30.0040.00417.59
8.1.20.0080.00017.58
8.1.10.0000.00817.51
8.1.00.0040.00417.34
8.0.300.0040.00419.69
8.0.290.0030.00516.75
8.0.280.0070.00018.38
8.0.270.0030.00317.17
8.0.260.0070.00016.78
8.0.250.0030.00516.86
8.0.240.0050.00216.89
8.0.230.0030.00316.86
8.0.220.0000.00716.96
8.0.210.0000.00716.75
8.0.200.0000.00616.93
8.0.190.0070.00016.99
8.0.180.0000.00716.88
8.0.170.0040.00416.89
8.0.160.0070.00016.97
8.0.150.0040.00416.72
8.0.140.0020.00616.86
8.0.130.0000.00613.28
8.0.120.0050.00216.74
8.0.110.0000.00716.91
8.0.100.0050.00316.68
8.0.90.0030.00516.68
8.0.80.0120.00416.77
8.0.70.0000.00716.79
8.0.60.0000.00716.82
8.0.50.0000.00716.86
8.0.30.0070.01317.02
8.0.20.0090.01317.01
8.0.10.0040.00417.05
8.0.00.0120.00716.78
7.4.330.0050.00013.00
7.4.320.0030.00316.44
7.4.300.0070.00016.42
7.4.290.0000.00716.42
7.4.280.0040.00416.58
7.4.270.0040.00416.40
7.4.260.0050.00013.14
7.4.250.0060.00316.51
7.4.240.0030.00316.34
7.4.230.0000.00716.64
7.4.220.0070.01116.41
7.4.210.0070.00916.46
7.4.200.0000.00716.53
7.4.190.0000.00716.30
7.4.160.0040.01216.38
7.4.150.0060.01216.36
7.4.140.0040.01316.58
7.4.130.0120.00516.54
7.4.120.0070.01016.38
7.4.110.0110.00616.29
7.4.100.0100.00716.43
7.4.90.0150.00316.58
7.4.80.0060.00916.51
7.4.70.0070.01016.62
7.4.60.0080.00816.31
7.4.50.0000.01215.99
7.4.40.0030.00916.12
7.4.30.0060.01016.62
7.4.00.0100.00714.81
7.3.330.0060.00013.05
7.3.320.0020.00213.04
7.3.310.0070.00016.25
7.3.300.0040.00316.04
7.3.290.0040.01116.17
7.3.280.0080.00916.20
7.3.270.0100.00716.37
7.3.260.0100.01316.24
7.3.250.0160.00516.34
7.3.240.0130.00316.54
7.3.230.0070.01016.34
7.3.210.0130.00816.22
7.3.200.0120.00819.39
7.3.190.0090.01316.20
7.3.180.0070.00916.35
7.3.170.0090.00916.20
7.3.160.0130.00416.15
7.3.120.0070.00914.80
7.3.110.0090.00914.88
7.3.100.0040.00714.46
7.3.90.0090.00014.53
7.3.80.0030.00914.84
7.3.70.0100.00314.49
7.3.60.0060.01014.84
7.3.50.0090.00614.91
7.3.40.0080.00614.61
7.3.30.0060.00914.75
7.3.20.0060.00616.47
7.3.10.0060.00716.43
7.3.00.0030.00916.48
7.2.330.0130.00316.36
7.2.320.0130.01016.27
7.2.310.0090.01416.70
7.2.300.0120.00616.36
7.2.290.0090.01216.21
7.2.250.0090.00615.13
7.2.240.0040.01215.12
7.2.230.0000.00914.93
7.2.220.0070.00714.73
7.2.210.0100.00314.92
7.2.200.0060.00314.81
7.2.190.0120.00614.91
7.2.180.0030.01114.80
7.2.170.0130.00014.80
7.2.130.0080.00816.59
7.2.120.0070.00316.66
7.2.110.0080.00816.54
7.2.100.0050.00516.83
7.2.90.0090.00616.60
7.2.80.0040.01116.64
7.2.70.0130.00316.66
7.2.60.0060.00616.57
7.2.50.0070.00716.69
7.2.40.0060.00616.46
7.2.30.0040.01116.80
7.2.20.0070.00716.66
7.2.10.0090.00416.30
7.2.00.0060.00617.74
7.1.330.0030.01015.88
7.1.320.0100.00315.65
7.1.310.0090.00615.89
7.1.300.0030.00915.63
7.1.290.0050.00515.72
7.1.280.0040.01115.73
7.1.270.0040.00715.75
7.1.260.0060.00315.78
7.1.250.0040.01115.61
7.1.100.0070.00717.99
7.1.70.0030.00616.73
7.1.60.0060.01919.40
7.1.50.0060.01516.94
7.1.00.0070.07022.33
7.0.200.0630.00714.75
7.0.140.0070.07021.90
7.0.120.0000.06722.03
7.0.60.0070.06720.00
7.0.50.0100.08017.80
7.0.40.0170.08020.19
7.0.30.0200.04720.24
7.0.20.0370.03320.16
7.0.10.0270.07020.18
7.0.00.0030.07720.11
5.6.210.0130.04720.76
5.6.200.0000.07718.16
5.6.190.0030.07020.41
5.6.180.0470.06720.40
5.6.170.0330.07020.52
5.6.160.0030.08720.37
5.6.150.0100.07718.15
5.6.140.0030.08718.12
5.6.130.0030.04318.21
5.6.120.0070.08320.98
5.6.110.0130.07320.96
5.6.100.0100.03321.11
5.6.90.0070.07320.93
5.6.80.0000.08720.35
5.6.70.0270.07020.37
5.5.350.0470.06320.38
5.5.340.0070.07017.98
5.5.330.0130.03720.18
5.5.320.0100.09020.38
5.5.310.0330.06320.26
5.5.300.0200.06717.92
5.5.290.0070.08318.00
5.5.280.0030.05020.97
5.5.270.0100.04020.75
5.5.260.0070.05020.85
5.5.250.0100.07320.70
5.5.240.0030.06020.14
5.4.450.0100.04319.47
5.4.440.0030.08719.52
5.4.430.0030.08319.53
5.4.420.0130.06719.44
5.4.410.0170.06719.11
5.4.400.0070.08019.09
5.4.390.0100.07318.79
5.4.380.0070.05019.08
5.4.370.0070.04018.79
5.4.360.0100.07019.14
5.4.350.0030.04018.94
5.4.340.0070.05719.12
5.4.320.0030.07018.79
5.4.310.0100.06319.15
5.4.300.0100.07319.15
5.4.290.0100.03719.18
5.4.280.0030.07018.77
5.4.270.0170.06719.07
5.4.260.0100.03018.80
5.4.250.0070.07319.17
5.4.240.0100.06319.13
5.4.230.0030.04318.79
5.4.220.0100.07019.13
5.4.210.0100.05719.11
5.4.200.0070.04319.14
5.4.190.0130.07019.16
5.4.180.0170.07019.20
5.4.170.0070.03719.17
5.4.160.0000.04019.13
5.4.150.0000.04319.10
5.4.140.0070.03316.35
5.4.130.0000.03716.28
5.4.120.0070.03716.24
5.4.110.0030.03316.32
5.4.100.0030.03716.37
5.4.90.0000.03716.26
5.4.80.0000.04316.25
5.4.70.0000.05016.22
5.4.60.0130.02716.30
5.4.50.0000.03716.29
5.4.40.0100.03316.37
5.4.30.0000.03716.21
5.4.20.0000.03716.20
5.4.10.0000.04016.11
5.4.00.0030.03315.71
5.3.290.0030.06014.59
5.3.280.0070.05014.52
5.3.270.0030.08314.55
5.3.260.0000.04014.57
5.3.250.0030.03714.69
5.3.240.0070.03314.39
5.3.230.0000.04314.56
5.3.220.0000.04314.58
5.3.210.0000.04714.48
5.3.200.0030.04314.59
5.3.190.0070.03314.46
5.3.180.0030.03714.46
5.3.170.0030.03314.52
5.3.160.0000.03714.65
5.3.150.0000.03714.52
5.3.140.0030.04314.45
5.3.130.0100.03014.47
5.3.120.0030.03714.48
5.3.110.0000.04014.47
5.3.100.0000.04013.96
5.3.90.0000.03713.98
5.3.80.0070.03014.11
5.3.70.0130.02713.94
5.3.60.0070.03014.09
5.3.50.0000.03713.76
5.3.40.0030.03713.92
5.3.30.0130.03313.83
5.3.20.0000.03713.62
5.3.10.0000.03713.58
5.3.00.0030.03313.42
5.2.170.0000.03011.15
5.2.160.0000.03011.30
5.2.150.0070.02311.09
5.2.140.0000.03011.13
5.2.130.0000.03311.09
5.2.120.0030.02711.09
5.2.110.0000.03011.08
5.2.100.0030.02711.11
5.2.90.0000.03011.00
5.2.80.0030.02711.02
5.2.70.0000.03010.98
5.2.60.0000.03011.12
5.2.50.0030.02710.95
5.2.40.0000.03010.87
5.2.30.0070.04710.91
5.2.20.0000.05010.88
5.2.10.0100.05010.73
5.2.00.0030.06310.63
5.1.60.0000.02710.14
5.1.50.0000.05310.06
5.1.40.0070.0509.97
5.1.30.0000.03310.38
5.1.20.0000.03010.25
5.1.10.0030.0579.96
5.1.00.0130.04010.04
5.0.50.0000.0308.52
5.0.40.0100.0408.45
5.0.30.0000.0678.23
5.0.20.0030.0208.34
5.0.10.0030.0308.32
5.0.00.0070.0608.23
4.4.90.0000.0178.23
4.4.80.0000.0138.23
4.4.70.0100.0278.23
4.4.60.0030.0338.23
4.4.50.0000.0308.23
4.4.40.0030.0478.23
4.4.30.0000.0308.23
4.4.20.0030.0378.23
4.4.10.0000.0238.23
4.4.00.0000.0278.23
4.3.110.0070.0308.23
4.3.100.0000.0238.23
4.3.90.0070.0108.23
4.3.80.0000.0578.23
4.3.70.0030.0308.23
4.3.60.0030.0178.23
4.3.50.0030.0338.23
4.3.40.0000.0478.23
4.3.30.0000.0378.23
4.3.20.0000.0278.23
4.3.10.0070.0278.23
4.3.00.0000.0378.23

preferences:
49.66 ms | 401 KiB | 5 Q