3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('a', 'b', 'c', 'd', 'e'); $array2 = array('a', 'b'); var_dump(array_intersect($array1, $array2)); ?>

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.40.0070.01018.40
8.3.30.0040.01118.47
8.3.20.0070.00720.12
8.3.10.0080.00021.71
8.3.00.0060.00319.02
8.2.170.0090.00622.96
8.2.160.0030.01022.09
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.11
8.2.120.0080.00026.35
8.2.110.0100.00019.34
8.2.100.0040.00817.50
8.2.90.0040.00419.14
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0030.00517.91
8.2.50.0000.00718.10
8.2.40.0040.00420.42
8.2.30.0000.00719.16
8.2.20.0040.00417.90
8.2.10.0000.00817.91
8.2.00.0000.00718.11
8.1.270.0090.00020.23
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.65
8.1.230.0040.00717.76
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0080.00018.58
8.1.160.0000.00718.81
8.1.150.0040.00418.81
8.1.140.0040.00417.63
8.1.130.0030.00319.01
8.1.120.0040.00517.30
8.1.110.0000.00817.37
8.1.100.0000.00717.42
8.1.90.0030.00517.33
8.1.80.0000.00717.36
8.1.70.0030.00517.30
8.1.60.0050.00317.51
8.1.50.0040.00417.33
8.1.40.0000.00817.46
8.1.30.0040.00417.50
8.1.20.0050.00317.57
8.1.10.0040.00417.45
8.1.00.0080.00017.39
8.0.300.0000.00918.77
8.0.290.0070.00316.63
8.0.280.0030.00318.42
8.0.270.0040.00417.14
8.0.260.0030.00320.18
8.0.250.0040.00316.78
8.0.240.0050.00216.86
8.0.230.0040.00416.80
8.0.220.0030.00316.73
8.0.210.0030.00316.86
8.0.200.0000.00616.91
8.0.190.0000.00816.89
8.0.180.0000.00716.73
8.0.170.0090.00016.76
8.0.160.0030.00616.82
8.0.150.0000.00716.81
8.0.140.0070.00016.84
8.0.130.0050.00013.25
8.0.120.0000.00816.68
8.0.110.0050.00216.68
8.0.100.0040.00416.80
8.0.90.0070.00016.82
8.0.80.0100.01016.81
8.0.70.0040.00416.80
8.0.60.0040.00416.71
8.0.50.0050.00216.68
8.0.30.0110.00517.00
8.0.20.0080.01117.40
8.0.10.0020.00516.83
8.0.00.0100.00916.64
7.4.330.0040.00015.55
7.4.320.0000.00616.45
7.4.300.0030.00316.54
7.4.290.0000.00716.44
7.4.280.0050.00316.47
7.4.270.0000.00716.49
7.4.260.0070.00016.41
7.4.250.0000.00716.45
7.4.240.0030.00316.45
7.4.230.0030.00316.46
7.4.220.0000.00716.47
7.4.210.0100.00616.48
7.4.200.0030.00316.34
7.4.160.0130.00416.46
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0150.00416.41
7.4.120.0120.00716.35
7.4.110.0080.00816.51
7.4.100.0030.01416.17
7.4.90.0090.00916.21
7.4.80.0040.01419.39
7.4.70.0150.00416.38
7.4.60.0040.01116.44
7.4.50.0090.00716.44
7.4.40.0070.01016.52
7.4.00.0040.01214.92
7.3.330.0000.00512.96
7.3.320.0030.00313.05
7.3.310.0040.00416.02
7.3.300.0000.00616.11
7.3.290.0070.00016.00
7.3.280.0070.00716.13
7.3.270.0060.01217.40
7.3.260.0100.00816.22
7.3.250.0100.00616.12
7.3.240.0090.01116.30
7.3.230.0060.01016.12
7.3.210.0100.00616.17
7.3.200.0070.00916.52
7.3.190.0120.00416.09
7.3.180.0100.00616.08
7.3.170.0110.00416.27
7.3.160.0090.00616.24
7.2.330.0130.00316.21
7.2.320.0130.00316.48
7.2.310.0030.01316.25
7.2.300.0090.00816.44
7.2.290.0100.01016.45
7.2.110.0140.00916.46
7.2.60.0100.00316.69
7.2.10.0290.01617.78
7.2.00.0460.01017.51
7.1.200.0100.00315.66
7.1.130.0270.01416.70
7.1.120.0300.01016.66
7.1.110.0320.01116.04
7.1.100.0500.01016.01
7.1.90.0400.00715.66
7.1.80.0340.01215.70
7.1.70.0280.01115.19
7.1.60.0540.00633.14
7.1.50.0410.01232.60
7.1.40.0460.01032.63
7.1.30.0520.00732.45
7.1.20.0480.01032.71
7.1.10.0360.00714.93
7.1.00.0690.01014.73

preferences:
55.44 ms | 400 KiB | 5 Q