3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'two', 'three'); print_r(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.60.0030.01418.43
8.3.50.0110.00822.04
8.3.40.0150.00018.58
8.3.30.0170.00318.79
8.3.20.0040.00420.18
8.3.10.0090.00020.53
8.3.00.0030.00619.25
8.2.180.0120.00616.38
8.2.170.0110.00422.96
8.2.160.0080.00620.44
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00322.10
8.2.110.0090.00021.02
8.2.100.0110.00017.59
8.2.90.0000.00817.72
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00817.92
8.2.50.0030.00818.07
8.2.40.0040.00418.03
8.2.30.0050.00519.24
8.2.20.0080.00017.48
8.2.10.0070.00018.04
8.2.00.0040.00417.61
8.1.280.0070.00725.92
8.1.270.0040.00423.81
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.66
8.1.230.0000.01120.85
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00722.00
8.1.150.0040.00418.75
8.1.140.0040.00417.39
8.1.130.0040.00417.29
8.1.120.0070.00017.38
8.1.110.0000.00717.47
8.1.100.0000.00717.44
8.1.90.0000.00817.37
8.1.80.0040.00417.44
8.1.70.0030.00317.37
8.1.60.0040.00417.50
8.1.50.0040.00417.40
8.1.40.0070.00317.36
8.1.30.0000.00817.64
8.1.20.0040.00417.61
8.1.10.0070.00017.48
8.1.00.0050.00217.28
8.0.300.0000.00819.89
8.0.290.0000.00716.75
8.0.280.0070.00018.28
8.0.270.0000.00717.07
8.0.260.0030.00316.69
8.0.250.0070.00016.81
8.0.240.0030.00316.85
8.0.230.0050.00216.76
8.0.220.0070.00016.77
8.0.210.0000.00716.69
8.0.200.0000.00716.77
8.0.190.0040.00416.77
8.0.180.0040.00416.85
8.0.170.0000.00916.73
8.0.160.0070.00016.93
8.0.150.0030.00316.63
8.0.140.0040.00416.79
8.0.130.0000.00513.20
8.0.120.0040.00416.77
8.0.110.0040.00416.75
8.0.100.0000.00716.84
8.0.90.0080.00016.93
8.0.80.0100.00716.77
8.0.70.0000.00716.70
8.0.60.0050.00216.85
8.0.50.0000.00816.72
8.0.30.0100.01616.93
8.0.20.0100.00917.40
8.0.10.0030.00516.93
8.0.00.0110.01016.76
7.4.330.0000.00515.00
7.4.320.0030.00316.42
7.4.300.0040.00416.35
7.4.290.0030.00316.32
7.4.280.0000.00916.41
7.4.270.0000.00616.53
7.4.260.0080.00016.49
7.4.250.0040.00416.31
7.4.240.0060.00216.43
7.4.230.0000.00716.50
7.4.220.0090.00916.38
7.4.210.0140.00016.52
7.4.200.0050.00216.55
7.4.160.0030.01216.37
7.4.150.0160.00017.40
7.4.140.0090.00817.86
7.4.130.0100.00816.37
7.4.120.0060.01216.36
7.4.110.0090.00616.36
7.4.100.0090.00616.54
7.4.90.0030.01316.23
7.4.80.0080.00819.37
7.4.70.0070.01116.52
7.4.60.0090.00816.26
7.4.50.0050.00016.53
7.4.40.0090.00916.34
7.4.30.0090.01216.36
7.4.00.0110.00614.76
7.3.330.0060.00013.06
7.3.320.0000.00612.89
7.3.310.0030.00316.21
7.3.300.0000.00716.04
7.3.290.0060.01516.18
7.3.280.0060.01116.18
7.3.270.0160.00817.40
7.3.260.0110.00716.38
7.3.250.0050.01216.15
7.3.240.0060.00916.28
7.3.230.0040.01216.39
7.3.210.0130.00316.36
7.3.200.0130.00319.39
7.3.190.0070.01016.23
7.3.180.0090.00616.14
7.3.170.0030.01316.27
7.3.160.0070.01116.23
7.3.120.0100.01014.67
7.3.110.0030.01314.72
7.3.100.0120.00614.71
7.3.90.0090.00914.43
7.3.80.0120.00014.72
7.3.70.0060.00314.46
7.3.60.0070.00414.82
7.3.50.0000.01614.29
7.3.40.0060.00314.39
7.3.30.0060.00914.73
7.3.20.0030.00916.41
7.3.10.0070.00816.46
7.3.00.0090.00616.40
7.2.330.0080.00916.53
7.2.320.0070.01116.55
7.2.310.0140.00716.18
7.2.300.0170.00016.34
7.2.290.0100.00616.14
7.2.250.0060.01214.91
7.2.240.0090.01014.89
7.2.230.0060.00614.82
7.2.220.0000.01814.57
7.2.210.0130.00314.76
7.2.200.0040.00914.77
7.2.190.0060.00914.87
7.2.180.0150.00014.91
7.2.170.0040.00414.93
7.2.130.0110.00716.61
7.2.120.0130.00016.84
7.2.110.0070.01016.71
7.2.100.0090.00316.73
7.2.90.0180.00316.43
7.2.80.0110.00716.45
7.2.70.0160.00816.64
7.2.60.0210.00316.83
7.2.50.0110.01116.60
7.2.40.0100.00616.76
7.2.30.0100.01016.86
7.2.20.0060.01016.82
7.2.10.0100.00716.53
7.2.00.0090.01117.87
7.1.330.0070.00715.68
7.1.320.0070.01015.63
7.1.310.0070.00715.63
7.1.300.0060.00615.57
7.1.290.0030.00915.64
7.1.280.0060.00915.76
7.1.270.0080.00415.78
7.1.260.0070.00715.71
7.1.250.0060.00915.89
7.1.100.0030.00617.91
7.1.70.0100.00017.02
7.1.60.0070.01819.32
7.1.50.0100.01416.57
7.1.00.0000.08022.41
7.0.200.0030.00616.84
7.0.140.0000.07722.01
7.0.60.0000.04719.85
7.0.50.0100.07717.87
7.0.40.0070.08720.24
7.0.30.0400.06320.25
7.0.20.0330.06720.24
7.0.10.0130.04020.18
7.0.00.0030.04320.08
5.6.280.0000.07320.81
5.6.210.0000.08320.47
5.6.200.0070.05018.29
5.6.190.0000.06020.67
5.6.180.0430.03720.62
5.6.170.0270.04020.54
5.6.160.0070.08320.55
5.6.150.0100.07318.28
5.6.140.0130.06718.21
5.6.130.0070.08018.22
5.6.120.0130.07720.88
5.6.110.0030.07720.99
5.6.100.0070.08320.95
5.6.90.0030.06721.10
5.6.80.0000.09020.43
5.5.350.0170.07720.43
5.5.340.0070.05017.96
5.5.330.0070.07320.43
5.5.320.0400.07020.30
5.5.310.0230.07020.28
5.5.300.0000.06718.04
5.5.290.0030.08717.93
5.5.280.0270.03720.85
5.5.270.0070.08320.93
5.5.260.0100.05720.78
5.5.250.0100.07720.78
5.5.240.0570.05020.18
5.4.450.0230.03719.64
5.4.440.0700.06019.46
5.4.430.1000.05019.29
5.4.420.0630.00019.39
5.4.410.0900.00019.43
5.4.400.0830.00019.23
5.4.390.0630.00019.13
5.4.380.0700.00019.08
5.4.370.0670.00019.11
5.4.360.0670.00019.13
5.4.350.0800.00019.24
5.4.340.0630.00019.09
5.4.320.0030.03912.48
5.4.310.0060.03712.48
5.4.300.0090.03312.48
5.4.290.0090.03712.48
5.4.280.0090.03312.38
5.4.270.0080.03412.37
5.4.260.0110.03312.38
5.4.250.0040.04012.38
5.4.240.0060.03612.37
5.4.230.0070.03712.37
5.4.220.0070.03512.37
5.4.210.0080.03412.36
5.4.200.0090.03412.36
5.4.190.0060.03512.36
5.4.180.0060.03612.36
5.4.170.0060.03612.38
5.4.160.0060.03612.37
5.4.150.0080.03412.37
5.4.140.0030.04012.05
5.4.130.0050.03712.04
5.4.120.0040.03812.00
5.4.110.0070.03411.99
5.4.100.0100.03111.99
5.4.90.0080.03511.99
5.4.80.0070.04111.99
5.4.70.0060.03511.98
5.4.60.0100.03711.99
5.4.50.0040.03711.99
5.4.40.0040.03511.98
5.4.30.0040.03711.98
5.4.20.0060.03611.98
5.4.10.0060.03411.98
5.4.00.0040.03711.47
5.3.290.0040.04312.80
5.3.280.0100.03512.71
5.3.270.0050.04212.72
5.3.260.0070.03912.71
5.3.250.0070.03612.72
5.3.240.0060.03712.72
5.3.230.0090.03912.71
5.3.220.0050.03812.68
5.3.210.0090.03612.68
5.3.200.0040.03812.68
5.3.190.0070.03612.68
5.3.180.0070.03512.68
5.3.170.0050.03712.67
5.3.160.0070.03712.67
5.3.150.0070.03612.67
5.3.140.0050.03812.66
5.3.130.0060.04112.65
5.3.120.0060.03912.66
5.3.110.0100.03512.66
5.3.100.0070.03712.12
5.3.90.0040.03712.09
5.3.80.0050.03712.08
5.3.70.0070.03512.08
5.3.60.0040.03912.06
5.3.50.0080.03312.01
5.3.40.0080.03512.01
5.3.30.0060.03511.97
5.3.20.0070.03411.75
5.3.10.0050.03511.71
5.3.00.0060.03511.70
5.2.170.0050.0309.21
5.2.160.0070.0269.20
5.2.150.0040.0319.21
5.2.140.0070.0279.20
5.2.130.0070.0289.16
5.2.120.0040.0299.16
5.2.110.0050.0289.17
5.2.100.0040.0289.17
5.2.90.0060.0269.16
5.2.80.0040.0309.16
5.2.70.0080.0269.16
5.2.60.0040.0309.11
5.2.50.0100.0249.09
5.2.40.0070.0269.06
5.2.30.0050.0309.04
5.2.20.0060.0289.02
5.2.10.0060.0278.93
5.2.00.0070.0278.79
5.1.60.0050.0238.06
5.1.50.0030.0258.06
5.1.40.0020.0268.04
5.1.30.0030.0278.39
5.1.20.0050.0258.41
5.1.10.0030.0278.14
5.1.00.0020.0278.13
5.0.50.0070.0166.61
5.0.40.0050.0186.48
5.0.30.0040.0306.29
5.0.20.0060.0166.25
5.0.10.0030.0196.24
5.0.00.0050.0286.23
4.4.90.0040.0144.78
4.4.80.0040.0134.75
4.4.70.0010.0174.76
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0050.0224.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0040.0134.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0050.0124.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0020.0163.26
4.3.10.0040.0143.22
4.3.00.0070.0377.96

preferences:
27.84 ms | 401 KiB | 5 Q