3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = [2,3,4]; print_r(array_intersect($arr1, $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.60.0070.01416.38
8.3.50.0090.00916.34
8.3.40.0110.00418.48
8.3.30.0110.00318.46
8.3.20.0040.00420.07
8.3.10.0040.00423.51
8.3.00.0040.00423.71
8.2.180.0150.00316.50
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00019.43
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0140.00017.91
8.2.90.0000.00819.06
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0050.00217.80
8.2.50.0040.00418.07
8.2.40.0090.00022.18
8.2.30.0070.00019.26
8.2.20.0000.00717.52
8.2.10.0050.00317.98
8.2.00.0040.00417.85
8.1.280.0090.00925.92
8.1.270.0110.00723.83
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0000.00923.80
8.1.230.0030.00719.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0040.00417.10
8.1.180.0050.00218.10
8.1.170.0030.00618.53
8.1.160.0070.00020.75
8.1.150.0040.00418.72
8.1.140.0000.00819.48
8.1.130.0030.00317.54
8.1.120.0030.00317.36
8.1.110.0040.00417.39
8.1.100.0040.00417.43
8.1.90.0040.00417.44
8.1.80.0040.00417.38
8.1.70.0000.00717.27
8.1.60.0040.00417.38
8.1.50.0030.00817.46
8.1.40.0050.00317.39
8.1.30.0000.00817.62
8.1.20.0100.00017.54
8.1.10.0080.00017.47
8.1.00.0000.00717.41
8.0.300.0030.00618.77
8.0.290.0080.00016.63
8.0.280.0070.00018.36
8.0.270.0070.00017.24
8.0.260.0040.00417.17
8.0.250.0060.00016.82
8.0.240.0030.00316.91
8.0.230.0070.00016.93
8.0.220.0000.00716.71
8.0.210.0030.00516.76
8.0.200.0030.00316.87
8.0.190.0000.00816.76
8.0.180.0000.00816.80
8.0.170.0030.00616.86
8.0.160.0070.00016.70
8.0.150.0050.00316.78
8.0.140.0040.00416.79
8.0.130.0000.00513.20
8.0.120.0040.00416.86
8.0.110.0040.00416.73
8.0.100.0050.00216.81
8.0.90.0000.00716.68
8.0.80.0100.01016.77
8.0.70.0000.00716.76
8.0.60.0000.00816.74
8.0.50.0050.00216.82
8.0.30.0090.00916.91
8.0.20.0080.01217.40
8.0.10.0030.00316.89
8.0.00.0060.01616.67
7.4.330.0050.00016.70
7.4.320.0030.00316.48
7.4.300.0050.00516.57
7.4.290.0070.00016.45
7.4.280.0030.00616.57
7.4.270.0040.00416.55
7.4.260.0000.00816.52
7.4.250.0040.00416.57
7.4.240.0040.00416.50
7.4.230.0090.00016.33
7.4.220.0200.00716.43
7.4.210.0070.01016.47
7.4.200.0080.00016.50
7.4.160.0050.01016.29
7.4.150.0140.01117.40
7.4.140.0100.01217.86
7.4.130.0080.01116.34
7.4.120.0090.01116.46
7.4.110.0100.00716.59
7.4.100.0150.00916.48
7.4.90.0160.00616.37
7.4.80.0090.00919.39
7.4.70.0120.00616.34
7.4.60.0100.00716.21
7.4.50.0030.01016.41
7.4.40.0110.00616.40
7.4.30.0120.00616.32
7.4.00.0070.00814.81
7.3.330.0000.00612.96
7.3.320.0030.00313.04
7.3.310.0030.00316.20
7.3.300.0030.00316.08
7.3.290.0070.00016.04
7.3.280.0100.00716.12
7.3.270.0070.01017.40
7.3.260.0090.00916.09
7.3.250.0100.01016.14
7.3.240.0060.01616.33
7.3.230.0100.00716.45
7.3.210.0040.01516.31
7.3.200.0100.00619.39
7.3.190.0110.00716.45
7.3.180.0090.00616.27
7.3.170.0160.00016.27
7.3.160.0080.00816.35
7.3.120.0090.00914.86
7.3.110.0040.01414.79
7.3.100.0090.00914.83
7.3.90.0060.00314.67
7.3.80.0080.00014.84
7.3.70.0060.00614.45
7.3.60.0070.00714.43
7.3.50.0030.00614.75
7.3.40.0000.01314.72
7.3.30.0030.01114.82
7.3.20.0100.00316.32
7.3.10.0030.01416.55
7.3.00.0030.01016.61
7.2.330.0090.00916.47
7.2.320.0090.00916.53
7.2.310.0090.01216.35
7.2.300.0130.00616.23
7.2.290.0150.00916.33
7.2.250.0070.01114.84
7.2.240.0070.01314.76
7.2.230.0030.00614.67
7.2.220.0040.01114.77
7.2.210.0060.00614.34
7.2.200.0090.00314.59
7.2.190.0060.00614.83
7.2.180.0040.00814.88
7.2.170.0060.00914.98
7.2.00.0190.00718.32
7.1.330.0100.00315.89
7.1.320.0070.00715.64
7.1.310.0030.01015.63
7.1.300.0100.00015.60
7.1.290.0070.00715.73
7.1.280.0040.00815.63
7.1.270.0000.01115.51
7.1.260.0030.00915.93
7.1.100.0070.00718.20
7.1.70.0060.00317.15
7.1.60.0030.00717.19
7.1.50.0100.01316.98
7.1.00.0000.08022.41
7.0.200.0090.00416.49
7.0.60.0130.06321.71
7.0.50.0100.06017.85
7.0.40.0030.04320.40
7.0.30.0170.04720.12
7.0.20.0230.04320.30
7.0.10.0100.08320.06
7.0.00.0170.05320.22
5.6.280.0030.07020.98
5.6.210.0070.03720.47
5.6.200.0070.05718.19
5.6.190.0030.06020.46
5.6.180.0430.06720.41
5.6.170.0200.04720.47
5.6.160.0100.06320.47
5.6.150.0100.07718.15
5.6.140.0100.07718.11
5.6.130.0070.08718.11
5.6.120.0130.07720.98
5.6.110.0030.06721.10
5.6.100.0030.08720.97
5.6.90.0130.08021.00
5.6.80.0030.04020.37
5.5.350.0270.08020.48
5.5.340.0170.06717.93
5.5.330.0130.07720.47
5.5.320.0570.06320.27
5.5.310.0300.05320.23
5.5.300.0100.03318.07
5.5.290.0070.08017.94
5.5.280.0030.07320.88
5.5.270.0130.08020.78
5.5.260.0070.08320.78
5.5.250.0070.03720.57
5.5.240.0100.08320.23

preferences:
59.61 ms | 400 KiB | 5 Q