3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = array(1,1,2,3,4); $second = array(1,2,3,4,5); echo count(array_intersect(array_unique($first), array_unique($second)));

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.120.0100.01023.84
8.4.110.0120.00718.79
8.4.100.0060.00318.82
8.4.90.0040.00518.63
8.4.80.0050.00318.52
8.4.70.0120.00817.85
8.4.60.0080.00818.61
8.4.50.0110.00818.63
8.4.40.0000.00817.45
8.4.30.0060.00920.52
8.4.20.0110.01119.69
8.4.10.0160.00017.60
8.3.250.0050.00418.92
8.3.240.0110.00717.28
8.3.230.0150.00516.82
8.3.220.0100.00818.95
8.3.210.0130.00716.54
8.3.200.0090.00016.80
8.3.190.0130.00517.12
8.3.180.0100.00916.55
8.3.170.0120.00618.68
8.3.160.0070.00717.16
8.3.150.0070.01118.86
8.3.140.0030.00517.25
8.3.130.0030.01418.37
8.3.120.0150.00618.86
8.3.110.0040.01116.48
8.3.100.0000.00924.06
8.3.90.0060.00326.77
8.3.80.0030.00616.38
8.3.70.0130.00318.43
8.3.60.0000.01616.50
8.3.50.0140.00717.94
8.3.40.0140.00718.96
8.3.30.0070.00718.37
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0100.00527.44
8.2.290.0120.00620.49
8.2.280.0050.00518.48
8.2.270.0080.00016.84
8.2.260.0060.00316.72
8.2.250.0030.00518.27
8.2.240.0120.00319.10
8.2.230.0000.00720.94
8.2.220.0090.00037.54
8.2.210.0070.01126.77
8.2.200.0060.00316.38
8.2.190.0040.01116.63
8.2.180.0140.00325.92
8.2.170.0070.00722.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.03
8.2.110.0030.00619.27
8.2.100.0090.00317.78
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0040.00419.38
8.2.30.0080.00017.68
8.2.20.0070.00019.46
8.2.10.0040.00417.73
8.2.00.0080.00019.29
8.1.330.0100.00822.15
8.1.320.0110.00715.79
8.1.310.0120.00618.26
8.1.300.0090.00019.24
8.1.290.0030.00630.84
8.1.280.0150.00325.92
8.1.270.0030.00622.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0110.00723.80
8.1.230.0100.00317.95
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.88
8.1.150.0000.00818.70
8.1.140.0000.00817.44
8.1.130.0030.00318.86
8.1.120.0070.00017.44
8.1.110.0030.00517.36
8.1.100.0030.00517.46
8.1.90.0070.00017.34
8.1.80.0030.00617.39
8.1.70.0030.00317.27
8.1.60.0060.00317.56
8.1.50.0060.00317.51
8.1.40.0040.00417.47
8.1.30.0000.00817.61
8.1.20.0030.00617.57
8.1.10.0000.00817.51
8.1.00.0040.00417.29
8.0.300.0020.00518.77
8.0.290.0000.00816.63
8.0.280.0030.00318.42
8.0.270.0030.00316.84
8.0.260.0000.00618.44
8.0.250.0040.00416.95
8.0.240.0070.00016.83
8.0.230.0070.00016.88
8.0.220.0000.00716.75
8.0.210.0070.00016.82
8.0.200.0030.00316.79
8.0.190.0000.00816.91
8.0.180.0040.00416.90
8.0.170.0000.00916.91
8.0.160.0000.00716.83
8.0.150.0070.00016.80
8.0.140.0040.00416.85
8.0.130.0030.00613.26
8.0.120.0000.00716.82
8.0.110.0050.00316.93
8.0.100.0000.00816.77
8.0.90.0000.00816.77
8.0.80.0050.00316.81
8.0.70.0040.00416.86
8.0.60.0080.00016.75
8.0.50.0070.00016.81
8.0.30.0040.00416.93
8.0.20.0000.00716.88
8.0.10.0000.00816.94
8.0.00.0000.00817.04
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0060.00316.46
7.4.290.0040.00416.52
7.4.280.0040.00416.46
7.4.270.0030.00316.41
7.4.260.0030.00313.25
7.4.250.0040.00416.47
7.4.240.0040.00416.60
7.4.230.0070.00016.48
7.4.220.0000.00816.55
7.4.210.0040.00416.49
7.4.200.0000.00716.53
7.4.190.0070.00016.47
7.4.180.0040.00416.70
7.4.160.0070.00016.58
7.4.150.0000.00816.57
7.4.140.0000.00816.33
7.4.130.0040.00416.34
7.4.120.0030.00616.24
7.4.110.0030.00316.46
7.4.100.0000.00816.44
7.4.90.0070.00016.47
7.4.80.0000.00616.33
7.4.70.0050.00216.43
7.4.60.0030.00316.57
7.4.50.0040.00416.52
7.4.40.0050.00316.48
7.4.30.0000.00816.51
7.4.20.0000.00716.53
7.4.10.0000.00716.31
7.4.00.0000.00716.50
7.3.330.0030.00316.15
7.3.320.0000.00613.19
7.3.310.0030.00316.01
7.3.300.0030.00316.25
7.3.290.0000.00816.05
7.3.280.0000.00716.25
7.3.270.0030.00316.27
7.3.260.0000.00616.01
7.3.250.0020.00516.19
7.3.240.0040.00416.25
7.3.230.0040.00416.14
7.3.220.0030.00315.99
7.3.210.0040.00416.09
7.3.200.0000.00716.13
7.3.190.0030.00315.96
7.3.180.0030.00315.95
7.3.170.0000.00715.99
7.3.160.0000.00716.05
7.3.150.0000.00716.26
7.3.140.0070.00016.18
7.3.130.0050.00216.19
7.3.120.0050.00316.06
7.3.110.0030.00516.01
7.3.100.0000.00816.07
7.3.90.0030.00316.23
7.3.80.0030.00315.97
7.3.70.0000.00716.09
7.3.60.0020.00516.30
7.3.50.0040.00416.30
7.3.40.0000.00816.45
7.3.30.0040.00416.23
7.3.20.0030.00618.17
7.3.10.0000.00818.20
7.3.00.0000.00817.94

preferences:
26.64 ms | 403 KiB | 5 Q