3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$mas1 = array(1,2);$mas2=array(22,29);//false //$mas1 = array(29,2);$mas2=array(22,29);//true //$mas1 = array(1,29);$mas2=array(22,29);//true //$mas1 = array(22,2);$mas2=array(22,29);//true $mas1 = array(1,22);$mas2=array(22,29);//true //$mas1 = array(29,22);$mas2=array(22,29);//false //$mas1 = array(22,29);$mas2=array(22,29);//false //$mas1 = array(29,29);$mas2=array(22,29);//false //$mas1 = array(22,22);$mas2=array(22,29);//false var_dump(count(array_intersect($mas1, $mas2)) == 1, count(array_intersect($mas1, $mas2)) == 1 && !array_diff($mas1, $mas2));

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.0040.01118.55
8.3.50.0220.00822.92
8.3.40.0140.00718.66
8.3.30.0130.00318.93
8.3.20.0040.00420.34
8.3.10.0050.00323.65
8.3.00.0080.00019.26
8.2.180.0090.00616.32
8.2.170.0150.00422.96
8.2.160.0070.00720.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0170.00026.16
8.2.120.0030.00620.89
8.2.110.0070.00320.54
8.2.100.0090.00318.09
8.2.90.0060.00319.13
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0030.00519.95
8.2.30.0050.00218.00
8.2.20.0030.00517.55
8.2.10.0030.00517.97
8.2.00.0000.00717.70
8.1.280.0090.00625.92
8.1.270.0050.00323.97
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.10
8.1.230.0070.00419.23
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0020.00522.00
8.1.150.0040.00418.88
8.1.140.0040.00417.40
8.1.130.0000.00717.78
8.1.120.0030.00317.39
8.1.110.0040.00417.34
8.1.100.0070.00017.43
8.1.90.0000.00817.29
8.1.80.0000.00717.45
8.1.70.0030.00317.41
8.1.60.0030.00617.46
8.1.50.0060.00317.46
8.1.40.0070.00017.41
8.1.30.0030.00517.63
8.1.20.0040.00417.68
8.1.10.0070.00017.37
8.1.00.0070.00017.30
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.50
8.0.270.0040.00417.23
8.0.260.0030.00317.16
8.0.250.0000.00716.96
8.0.240.0000.00716.94
8.0.230.0050.00216.96
8.0.220.0030.00316.89
8.0.210.0070.00016.94
8.0.200.0030.00316.82
8.0.190.0040.00416.86
8.0.180.0070.00016.90
8.0.170.0000.00816.94
8.0.160.0000.00716.78
8.0.150.0040.00416.84
8.0.140.0040.00416.82
8.0.130.0060.00013.25
8.0.120.0040.00416.85
8.0.110.0040.00416.79
8.0.100.0070.00016.81
8.0.90.0030.00616.95
8.0.80.0040.01216.94
8.0.70.0040.00416.83
8.0.60.0000.00716.95
8.0.50.0040.00416.68
8.0.30.0110.00917.12
8.0.20.0140.00817.40
8.0.10.0040.00417.03
8.0.00.0070.01116.81
7.4.330.0000.00715.15
7.4.320.0030.00316.58
7.4.300.0000.00616.59
7.4.290.0000.00716.63
7.4.280.0000.00816.57
7.4.270.0050.00216.50
7.4.260.0100.00016.57
7.4.250.0000.00816.57
7.4.240.0030.00316.53
7.4.230.0030.00316.57
7.4.220.0030.01416.59
7.4.210.0030.01616.55
7.4.200.0000.00716.69
7.4.160.0080.00816.64
7.4.150.0120.00617.40
7.4.140.0100.00617.86
7.4.130.0100.01016.51
7.4.120.0060.01316.42
7.4.110.0090.00916.50
7.4.100.0070.01116.51
7.4.90.0030.01316.57
7.4.80.0090.00919.39
7.4.70.0060.00916.56
7.4.60.0130.00316.41
7.4.50.0030.00616.43
7.4.40.0060.01616.41
7.4.30.0110.00616.45
7.4.00.0090.00614.89
7.3.330.0050.00012.94
7.3.320.0060.00013.16
7.3.310.0030.00316.05
7.3.300.0070.00016.05
7.3.290.0070.01016.19
7.3.280.0080.00716.18
7.3.270.0120.00917.40
7.3.260.0080.01116.04
7.3.250.0110.00616.33
7.3.240.0140.00516.19
7.3.230.0060.01116.39
7.3.210.0070.01016.24
7.3.200.0070.01019.39
7.3.190.0060.01416.31
7.3.180.0120.00916.20
7.3.170.0050.01016.27
7.3.160.0140.00316.20
7.3.10.0110.01216.14
7.3.00.0180.00716.30
7.2.330.0060.01216.46
7.2.320.0160.00916.63
7.2.310.0070.01016.69
7.2.300.0030.01316.71
7.2.290.0160.00916.49
7.2.130.0140.00916.96
7.2.120.0120.00916.63
7.2.110.0180.00316.51
7.2.100.0100.00316.72
7.2.90.0100.00316.78
7.2.80.0090.00616.70
7.2.70.0070.00716.93
7.2.60.0040.01116.68
7.2.50.0130.01017.01
7.2.40.0030.01616.97
7.2.30.0100.00716.85
7.2.20.0120.00016.83
7.2.10.0080.00416.81
7.2.00.0050.00817.97
7.1.250.0120.00615.53
7.1.100.0100.00318.00
7.1.70.0040.00417.26
7.1.60.0040.00817.20
7.1.50.0070.00316.84
7.1.00.0000.08022.31
7.0.200.0000.01616.79
7.0.140.0030.06722.01
7.0.60.0070.04320.00
7.0.50.0100.07017.81
7.0.40.0100.05320.40
7.0.30.0300.07320.19
7.0.20.0230.04020.20
7.0.10.0070.04020.21
7.0.00.0070.08320.03
5.6.280.0030.07320.77
5.6.210.0000.06020.52
5.6.200.0030.04018.15
5.6.190.0000.09320.45
5.6.180.0170.04720.27
5.6.170.0270.08020.45
5.6.160.0030.04320.44
5.6.150.0070.04018.21
5.6.140.0030.08018.08
5.6.130.0100.07018.07
5.6.120.0100.03721.04
5.6.110.0000.09721.13
5.6.100.0170.07321.10
5.6.90.0070.08721.09
5.6.80.0100.07320.50
5.5.350.0300.07720.43
5.5.340.0070.08017.92
5.5.330.0170.04320.44
5.5.320.0270.07020.31
5.5.310.0500.05720.17
5.5.300.0030.04017.96
5.5.290.0100.08017.88
5.5.280.0170.07720.88
5.5.270.0100.06020.73
5.5.260.0100.08020.86
5.5.250.0270.03720.57
5.5.240.0070.03320.28
5.4.450.0300.04719.55
5.4.440.0430.04319.40
5.4.430.0900.04319.45
5.4.420.0200.04319.25
5.4.410.0170.04319.29
5.4.400.0900.03719.22
5.4.390.0930.03319.06
5.4.380.0330.06318.53
5.4.370.0330.05018.73
5.4.360.0500.04018.71
5.4.350.0500.06718.71
5.4.340.0300.05318.77
5.4.320.0080.03312.45
5.4.310.0080.03412.45
5.4.300.0020.04612.45
5.4.290.0060.03712.45
5.4.280.0040.03712.34
5.4.270.0020.04012.35
5.4.260.0070.03612.34
5.4.250.0030.04112.35
5.4.240.0090.03912.35
5.4.230.0090.03712.34
5.4.220.0050.03712.34
5.4.210.0080.05112.34
5.4.200.0090.04612.34
5.4.190.0110.05412.34
5.4.180.0060.03512.34
5.4.170.0070.03412.35
5.4.160.0070.03712.34
5.4.150.0060.03812.34
5.4.140.0040.04612.02
5.4.130.0050.03912.01
5.4.120.0040.04011.96
5.4.110.0030.04311.96
5.4.100.0050.03511.96
5.4.90.0050.03711.96
5.4.80.0030.03911.96
5.4.70.0080.03211.96
5.4.60.0070.03311.96
5.4.50.0060.03511.96
5.4.40.0060.03411.95
5.4.30.0040.03811.95
5.4.20.0070.03411.95
5.4.10.0040.03711.94
5.4.00.0070.03411.44
5.3.290.0070.04612.80
5.3.280.0070.04012.71
5.3.270.0050.04912.72
5.3.260.0070.04912.72
5.3.250.0040.03912.72
5.3.240.0080.04812.72
5.3.230.0130.03812.71
5.3.220.0080.03512.68
5.3.210.0090.03612.68
5.3.200.0080.04512.68
5.3.190.0050.04512.68
5.3.180.0050.03812.68
5.3.170.0080.04012.67
5.3.160.0070.03612.68
5.3.150.0090.04512.67
5.3.140.0070.03912.66
5.3.130.0070.04312.66
5.3.120.0100.04212.66
5.3.110.0080.03612.66
5.3.100.0050.03712.12
5.3.90.0040.03712.09
5.3.80.0070.04312.08
5.3.70.0070.04012.07
5.3.60.0050.04612.06
5.3.50.0040.04812.00
5.3.40.0080.04312.00
5.3.30.0070.04611.94
5.3.20.0060.03411.72
5.3.10.0090.03111.69
5.3.00.0060.03511.68
5.2.170.0070.0319.18
5.2.160.0060.0349.18
5.2.150.0020.0329.18
5.2.140.0040.0309.18
5.2.130.0030.0299.13
5.2.120.0030.0389.13
5.2.110.0090.0309.14
5.2.100.0060.0349.14
5.2.90.0040.0299.14
5.2.80.0060.0379.13
5.2.70.0050.0359.13
5.2.60.0040.0309.09
5.2.50.0070.0279.05
5.2.40.0040.0299.03
5.2.30.0030.0319.01
5.2.20.0030.0299.00
5.2.10.0030.0288.93
5.2.00.0040.0358.80
5.1.60.0030.0248.08
5.1.50.0030.0328.07
5.1.40.0030.0318.05
5.1.30.0050.0318.41
5.1.20.0110.0378.43
5.1.10.0060.0298.15
5.1.00.0050.0248.15
5.0.50.0050.0206.63
5.0.40.0020.0206.49
5.0.30.0020.0326.30
5.0.20.0050.0246.27
5.0.10.0030.0266.25
5.0.00.0050.0366.24
4.4.90.0020.0174.77
4.4.80.0040.0184.75
4.4.70.0010.0174.75
4.4.60.0060.0134.76
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0020.0234.85
4.4.00.0010.0264.76
4.3.110.0050.0134.66
4.3.100.0040.0134.66
4.3.90.0020.0154.64
4.3.80.0030.0244.58
4.3.70.0040.0154.63
4.3.60.0030.0164.63
4.3.50.0030.0154.63
4.3.40.0000.0274.54
4.3.30.0010.0163.29
4.3.20.0020.0163.27
4.3.10.0020.0153.23
4.3.00.0100.01715.64

preferences:
39.05 ms | 401 KiB | 5 Q