3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a', 'b', 'c', 'd']; $arr2 = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; var_dump(array_diff($arr, $arr2));

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.70.0140.00418.30
8.3.60.0090.00618.16
8.3.50.0090.00518.13
8.3.40.0080.00818.54
8.3.30.0110.00418.43
8.3.20.0040.00420.21
8.3.10.0000.00918.41
8.3.00.0040.00423.29
8.2.190.0140.00716.62
8.2.180.0060.00918.29
8.2.170.0110.00422.96
8.2.160.0110.00420.39
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00420.36
8.2.120.0050.00326.35
8.2.110.0030.00721.14
8.2.100.0110.00017.78
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0080.00017.38
8.2.60.0000.00717.93
8.2.50.0000.00718.10
8.2.40.0000.00820.60
8.2.30.0040.00419.13
8.2.20.0030.00518.09
8.2.10.0070.00018.11
8.2.00.0040.00417.93
8.1.280.0090.00625.92
8.1.270.0040.01123.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0050.00522.19
8.1.230.0080.00417.79
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.11
8.1.180.0050.00318.10
8.1.170.0050.00318.66
8.1.160.0000.00718.86
8.1.150.0070.00020.18
8.1.140.0000.00718.99
8.1.130.0020.00518.85
8.1.120.0040.00417.25
8.1.110.0050.00317.28
8.1.100.0070.00017.39
8.1.90.0080.00317.28
8.1.80.0040.00417.40
8.1.70.0070.00017.38
8.1.60.0000.00817.55
8.1.50.0050.00217.40
8.1.40.0040.00417.46
8.1.30.0030.00617.52
8.1.20.0000.00717.49
8.1.10.0000.00717.45
8.1.00.0070.00017.30
8.0.300.0070.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.29
8.0.270.0050.00217.18
8.0.260.0030.00318.72
8.0.250.0070.00016.84
8.0.240.0000.00716.80
8.0.230.0000.00716.92
8.0.220.0050.00316.71
8.0.210.0030.00516.72
8.0.200.0060.00016.87
8.0.190.0080.00016.91
8.0.180.0000.00716.68
8.0.170.0030.00316.83
8.0.160.0000.00716.90
8.0.150.0070.00316.69
8.0.140.0070.00016.68
8.0.130.0040.00413.19
8.0.120.0000.00816.82
8.0.110.0040.00416.78
8.0.100.0040.00416.80
8.0.90.0030.00516.67
8.0.80.0110.00316.77
8.0.70.0030.00516.86
8.0.60.0050.00316.82
8.0.50.0000.00716.86
8.0.30.0130.00516.97
8.0.20.0130.00817.40
8.0.10.0030.00316.99
8.0.00.0030.01416.65
7.4.330.0050.00015.55
7.4.320.0060.00016.44
7.4.300.0030.00316.47
7.4.290.0030.00316.52
7.4.280.0040.00416.34
7.4.270.0040.00416.43
7.4.260.0000.00716.49
7.4.250.0040.00416.55
7.4.240.0000.00716.34
7.4.230.0040.00216.32
7.4.220.0030.01416.41
7.4.210.0070.01016.50
7.4.200.0000.00716.32
7.4.160.0100.00616.41
7.4.150.0100.00717.40
7.4.140.0120.01017.86
7.4.130.0080.00816.54
7.4.120.0090.00916.39
7.4.110.0070.01116.25
7.4.100.0160.00816.44
7.4.90.0140.00316.50
7.4.80.0060.01019.39
7.4.70.0030.01816.36
7.4.60.0030.01316.39
7.4.50.0140.00416.39
7.4.40.0130.00716.23
7.4.30.0130.01016.44
7.4.00.0060.00914.73
7.3.330.0060.00012.86
7.3.320.0030.00312.97
7.3.310.0030.00316.00
7.3.300.0030.00315.96
7.3.290.0040.00416.02
7.3.280.0060.01016.15
7.3.270.0150.00317.40
7.3.260.0100.00716.32
7.3.250.0110.00716.26
7.3.240.0090.01016.24
7.3.230.0130.01016.13
7.3.210.0120.00616.11
7.3.200.0120.00316.06
7.3.190.0130.00316.16
7.3.180.0170.00316.16
7.3.170.0090.00916.50
7.3.160.0130.00316.43
7.2.330.0060.01216.48
7.2.320.0070.01116.54
7.2.310.0090.00916.14
7.2.300.0090.00916.42
7.2.290.0070.01016.15
7.2.60.0080.00016.71
7.2.00.0160.00717.33
7.1.200.0060.00615.69
7.1.120.0080.01216.58
7.1.110.0110.01116.34
7.1.100.0070.01716.16
7.1.90.0180.00716.43
7.1.80.0290.00616.39
7.1.70.0670.01315.20
7.1.60.0250.00733.36
7.1.50.0240.01032.61
7.1.40.0260.01032.51
7.1.30.0300.02032.48
7.1.20.0390.00432.59
7.1.10.0110.01114.69
7.1.00.0160.01115.00

preferences:
46.57 ms | 401 KiB | 5 Q