3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['apple', 'orange', 'orange', 'apricot', 'melon', 'watermelon']; $array2 = ['apple', 'orange', 'orange']; var_export( array_intersect($array2, $array1) );

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.4.130.0110.01017.59
8.4.120.0100.01020.52
8.4.110.0120.00922.41
8.4.100.0090.00917.62
8.4.90.0040.00517.77
8.4.80.0090.00717.59
8.4.70.0100.01017.45
8.4.60.0050.00419.45
8.4.50.0120.01219.29
8.4.40.0100.01019.28
8.4.30.0000.00920.29
8.4.20.0000.01119.52
8.4.10.0120.00819.51
8.3.260.0110.00916.34
8.3.250.0160.00318.71
8.3.240.0110.00916.67
8.3.230.0080.00316.39
8.3.220.0120.00718.79
8.3.210.0050.00316.73
8.3.200.0150.00716.49
8.3.190.0130.00616.37
8.3.180.0140.00416.62
8.3.170.0050.00317.02
8.3.160.0150.00316.24
8.3.150.0110.00720.80
8.3.140.0110.00016.57
8.3.130.0040.00418.23
8.3.120.0120.00618.58
8.3.110.0060.00920.94
8.3.100.0110.00724.06
8.3.90.0050.00326.77
8.3.80.0070.00316.63
8.3.70.0040.01216.58
8.3.60.0080.01518.13
8.3.50.0040.01220.07
8.3.40.0120.00418.89
8.3.30.0150.00618.83
8.3.20.0090.00924.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0110.00920.40
8.2.280.0110.00816.56
8.2.270.0190.00016.96
8.2.260.0030.00520.05
8.2.250.0150.00416.41
8.2.240.0070.00718.86
8.2.230.0030.00622.58
8.2.220.0070.00437.54
8.2.210.0050.00226.77
8.2.200.0000.00916.50
8.2.190.0070.00716.58
8.2.180.0090.00625.92
8.2.170.0120.00318.91
8.2.160.0040.01122.96
8.2.150.0120.00625.66
8.2.140.0060.00324.66
8.2.130.0030.00626.16
8.2.120.0000.00826.16
8.2.110.0030.00721.12
8.2.100.0100.00817.90
8.2.90.0000.00818.88
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0000.00917.80
8.2.50.0030.00518.07
8.2.40.0040.00419.79
8.2.30.0040.00417.97
8.2.20.0040.00420.36
8.2.10.0030.00517.59
8.2.00.0070.00019.28
8.1.330.0100.00916.68
8.1.320.0090.00615.94
8.1.310.0040.01116.75
8.1.300.0080.00016.00
8.1.290.0000.00918.88
8.1.280.0140.01025.92
8.1.270.0060.00323.99
8.1.260.0180.00026.35
8.1.250.0040.01528.09
8.1.240.0090.00023.88
8.1.230.0000.01117.58
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00518.43
8.1.160.0070.00018.82
8.1.150.0040.00418.63
8.1.140.0000.00817.29
8.1.130.0040.00417.46
8.1.120.0070.00017.38
8.1.110.0030.00517.27
8.1.100.0080.00017.29
8.1.90.0000.00717.26
8.1.80.0030.00517.25
8.1.70.0030.00617.42
8.1.60.0070.00017.46
8.1.50.0070.00017.49
8.1.40.0060.00317.42
8.1.30.0120.00017.52
8.1.20.0130.00717.63
8.1.10.0100.01017.27
8.1.00.0220.00017.39
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0000.00718.29
8.0.270.0030.00316.80
8.0.260.0030.00316.64
8.0.250.0000.00716.91
8.0.240.0050.00216.89
8.0.230.0030.00516.85
8.0.220.0030.00316.70
8.0.210.0030.00316.84
8.0.200.0030.00316.86
8.0.190.0000.00816.76
8.0.180.0040.00416.75
8.0.170.0000.00816.86
8.0.160.0000.00716.82
8.0.150.0120.00616.64
8.0.140.0170.00216.74
8.0.130.0160.00516.61
8.0.120.0150.00416.75
8.0.110.0180.00316.87
8.0.100.0160.00316.71
8.0.90.0130.00916.85
8.0.80.0120.00816.83
8.0.70.0190.00016.72
8.0.60.0140.00716.67
8.0.50.0150.00516.84
8.0.30.0170.00316.84
8.0.20.0140.00716.77
8.0.10.0080.01416.97
7.4.330.0000.00515.55
7.4.320.0060.00016.30
7.4.300.0030.00316.57
7.4.290.0000.00816.39
7.4.280.0160.00716.50
7.4.270.0160.00616.35
7.4.260.0100.01016.49
7.4.250.0190.00316.41
7.4.240.0130.01016.36
7.4.230.0200.00416.49
7.4.220.0130.00616.43
7.4.210.0170.00316.43
7.4.200.0090.00916.38
7.4.190.0180.00016.57
7.4.180.0200.00416.50
7.4.160.0190.00016.51
7.4.150.0150.00716.48
7.4.140.0220.00016.26
7.4.130.0170.00316.21
7.4.120.0140.00616.29
7.4.110.0100.01016.22
7.4.100.0110.00516.42
7.4.90.0160.00216.36
7.4.80.0150.00316.45
7.4.70.0160.00616.40
7.4.60.0150.00316.23
7.4.50.0130.00616.05
7.4.40.0120.00616.38
7.4.30.0170.00016.24
7.4.20.0080.00816.31
7.4.10.0090.00416.42
7.4.00.0110.00916.39

preferences:
27.68 ms | 403 KiB | 5 Q