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, array_diff($mas1, $mas2), 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.0140.00018.18
8.3.50.0220.00722.90
8.3.40.0110.00418.63
8.3.30.0030.01018.92
8.3.20.0050.00320.07
8.3.10.0080.00023.71
8.3.00.0040.00419.38
8.2.180.0130.00316.38
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.01426.16
8.2.120.0050.00220.87
8.2.110.0100.00020.24
8.2.100.0090.00318.10
8.2.90.0000.00719.13
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00418.03
8.2.50.0050.00518.07
8.2.40.0050.00318.09
8.2.30.0000.00817.93
8.2.20.0040.00417.54
8.2.10.0070.00018.03
8.2.00.0030.00517.65
8.1.280.0070.01025.92
8.1.270.0040.00423.70
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00022.08
8.1.230.0100.00019.09
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0000.00818.64
8.1.160.0070.00022.04
8.1.150.0000.00718.74
8.1.140.0060.00317.48
8.1.130.0000.00717.46
8.1.120.0030.00317.44
8.1.110.0080.00017.26
8.1.100.0040.00417.33
8.1.90.0000.00817.43
8.1.80.0070.00017.37
8.1.70.0000.00717.33
8.1.60.0040.00417.63
8.1.50.0050.00317.53
8.1.40.0040.00417.34
8.1.30.0000.00817.57
8.1.20.0040.00417.64
8.1.10.0030.00517.48
8.1.00.0040.00417.23
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0040.00417.14
8.0.260.0070.00016.80
8.0.250.0060.00016.96
8.0.240.0030.00316.94
8.0.230.0040.00416.81
8.0.220.0000.00716.84
8.0.210.0040.00416.85
8.0.200.0030.00316.92
8.0.190.0040.00417.00
8.0.180.0060.00316.86
8.0.170.0000.00816.93
8.0.160.0000.00817.00
8.0.150.0070.00016.69
8.0.140.0000.00716.80
8.0.130.0030.00313.26
8.0.120.0070.00016.85
8.0.110.0000.00716.77
8.0.100.0040.00416.84
8.0.90.0040.00416.78
8.0.80.0060.00916.75
8.0.70.0040.00416.69
8.0.60.0000.00716.89
8.0.50.0040.00416.68
8.0.30.0130.01116.84
8.0.20.0120.00917.40
8.0.10.0040.00416.88
8.0.00.0090.00916.70
7.4.330.0000.00515.14
7.4.320.0030.00316.59
7.4.300.0060.00016.59
7.4.290.0030.00316.59
7.4.280.0000.00816.48
7.4.270.0000.00816.39
7.4.260.0030.00316.55
7.4.250.0070.00016.55
7.4.240.0000.00716.49
7.4.230.0070.00016.58
7.4.220.0060.01216.55
7.4.210.0060.00916.43
7.4.200.0020.00516.42
7.4.160.0070.00716.59
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0090.00816.52
7.4.120.0050.01216.44
7.4.110.0030.01316.52
7.4.100.0030.01616.51
7.4.90.0100.00716.36
7.4.80.0120.01119.39
7.4.70.0160.00016.39
7.4.60.0090.00916.34
7.4.50.0000.00816.51
7.4.40.0160.00716.42
7.4.30.0100.00716.34
7.4.10.0060.01314.77
7.4.00.0090.00914.83
7.3.330.0000.00613.10
7.3.320.0000.00513.09
7.3.310.0040.00416.07
7.3.300.0070.00016.14
7.3.290.0090.00616.21
7.3.280.0030.01416.23
7.3.270.0070.01017.40
7.3.260.0070.01716.71
7.3.250.0090.00816.30
7.3.240.0090.01516.35
7.3.230.0070.01016.48
7.3.210.0100.00716.38
7.3.200.0140.00619.39
7.3.190.0110.00916.45
7.3.180.0050.01016.12
7.3.170.0090.00616.27
7.3.160.0060.01016.22
7.3.130.0070.01114.71
7.3.120.0080.00814.86
7.3.110.0090.00914.71
7.3.100.0060.00914.62
7.3.90.0030.01214.85
7.3.80.0030.01214.87
7.3.70.0070.00914.72
7.3.60.0090.00614.66
7.3.50.0020.01514.68
7.3.40.0060.00514.53
7.3.30.0090.00314.69
7.3.20.0050.01016.43
7.3.10.0060.00316.59
7.3.00.0050.00916.58
7.2.330.0140.00416.44
7.2.320.0090.01516.48
7.2.310.0090.01316.73
7.2.300.0110.00616.63
7.2.290.0160.00816.66
7.2.260.0040.01514.86
7.2.250.0050.01315.11
7.2.240.0080.00814.75
7.2.230.0050.00915.10
7.2.220.0050.00814.81
7.2.210.0120.00515.05
7.2.200.0080.00615.04
7.2.190.0040.00914.97
7.2.180.0030.01015.01
7.2.170.0090.00414.94
7.2.160.0040.01114.74
7.2.150.0030.00716.72
7.2.140.0070.00717.02
7.2.130.0040.01116.99
7.2.120.0030.01516.82
7.2.110.0000.01116.88
7.2.100.0060.00616.94
7.2.90.0090.00616.96
7.2.80.0000.01416.96
7.2.70.0030.01316.69
7.2.60.0060.00916.81
7.2.50.0070.01016.84
7.2.40.0030.01017.03
7.2.30.0060.00916.81
7.2.20.0100.00716.93
7.2.10.0080.00317.00
7.2.00.0000.01016.54
7.1.330.0020.01115.70
7.1.320.0050.00815.82
7.1.310.0070.00915.78
7.1.300.0040.00915.76
7.1.290.0080.00515.88
7.1.280.0070.00715.67
7.1.270.0050.00815.59
7.1.260.0010.00915.63
7.1.250.0000.00915.71
7.1.240.0080.00815.41
7.1.230.0120.00415.78
7.1.220.0040.01215.51
7.1.210.0030.00915.85
7.1.200.0050.00815.58
7.1.190.0040.01415.74
7.1.180.0070.01015.70
7.1.170.0030.00915.79
7.1.160.0040.01115.84
7.1.150.0030.01015.73
7.1.140.0040.00715.81
7.1.130.0090.00015.79
7.1.120.0070.00715.67
7.1.110.0070.00715.52
7.1.100.0080.00415.91
7.1.90.0070.00315.84
7.1.80.0110.00315.75
7.1.70.0040.00916.38
7.1.60.0130.00417.54
7.1.50.0110.00816.38
7.1.40.0100.00615.70
7.1.30.0030.00715.60
7.1.20.0000.00915.74
7.1.10.0120.00015.68
7.1.00.0060.04018.92
7.0.330.0060.00615.02
7.0.320.0040.00815.35
7.0.310.0040.00815.12
7.0.300.0070.00415.38
7.0.290.0080.00415.17
7.0.280.0070.00315.30
7.0.270.0060.00615.14
7.0.260.0100.00615.24
7.0.250.0030.00615.35
7.0.240.0040.01115.42
7.0.230.0070.00715.60
7.0.220.0070.00315.28
7.0.210.0030.00615.57
7.0.200.0050.00516.10
7.0.190.0070.01015.34
7.0.180.0110.00615.31
7.0.170.0050.00515.16
7.0.160.0030.01215.44
7.0.150.0000.01415.60
7.0.140.0050.04218.69
7.0.130.0000.00815.40
7.0.120.0070.00715.28
7.0.110.0000.01715.41
7.0.100.0040.00715.48
7.0.90.0030.01315.32
7.0.80.0030.01215.39
7.0.70.0090.00315.11
7.0.60.0050.04417.58
7.0.50.0070.04016.75
7.0.40.0100.03016.91
7.0.30.0160.03516.66
7.0.20.0100.02416.84
7.0.10.0030.03816.87
7.0.00.0060.02416.83
5.6.400.0050.00514.50
5.6.390.0070.00414.56
5.6.380.0100.00314.07
5.6.370.0070.01014.15
5.6.360.0000.00914.29
5.6.350.0040.00414.27
5.6.340.0110.00313.98
5.6.330.0000.01114.48
5.6.320.0000.01114.04
5.6.310.0030.01014.24
5.6.300.0110.00314.40
5.6.290.0080.00814.33
5.6.280.0050.03517.59
5.6.270.0060.00814.20
5.6.260.0100.00614.16
5.6.250.0050.00514.22
5.6.240.0060.01014.29
5.6.230.0000.01414.44
5.6.220.0060.00614.14
5.6.210.0150.03517.45
5.6.200.0110.04116.21
5.6.190.0100.04317.16
5.6.180.1990.02917.29
5.6.170.0230.03717.22
5.6.160.0100.04117.33
5.6.150.0050.03316.11
5.6.140.0020.03416.14
5.6.130.0080.02216.13
5.6.120.0080.04217.61
5.6.110.0070.03217.61
5.6.100.0120.04017.75
5.6.90.0110.04517.49
5.6.80.0090.04217.26
5.6.70.0100.00014.32
5.6.60.0060.00914.39
5.6.50.0000.00914.15
5.6.40.0070.00714.21
5.6.30.0060.00314.11
5.6.20.0050.00513.98
5.6.10.0070.00714.14
5.6.00.0000.00814.18
5.5.380.0130.00014.04
5.5.370.0050.01014.18
5.5.360.0040.00914.09
5.5.350.0100.04217.17
5.5.340.0080.02516.13
5.5.330.0080.02417.24
5.5.320.0250.04017.28
5.5.310.0100.03017.37
5.5.300.0080.03516.12
5.5.290.0050.03316.10
5.5.280.0030.02917.50
5.5.270.0090.02817.58
5.5.260.0100.04017.23
5.5.250.0050.03617.43
5.5.240.0160.03917.31
5.5.230.0030.00813.97
5.5.220.0070.00713.89
5.5.210.0000.01514.23
5.5.200.0070.00713.92
5.5.190.0030.01314.20
5.5.180.0040.00713.94
5.5.170.0110.00414.22
5.5.160.0000.01514.01
5.5.150.0040.00813.88
5.5.140.0030.01013.91
5.5.130.0100.00014.02
5.5.120.0090.00613.97
5.5.110.0070.00714.14
5.5.100.0090.00013.82
5.5.90.0030.01014.04
5.5.80.0000.01013.83
5.5.70.0090.00614.09
5.5.60.0060.01013.98
5.5.50.0120.00613.97
5.5.40.0090.00913.67
5.5.30.0040.00814.12
5.5.20.0000.01114.05
5.5.10.0000.00913.91
5.5.00.0130.00314.23
5.4.450.0110.02815.27
5.4.440.0160.02414.98
5.4.430.0200.02715.16
5.4.420.0180.02215.22
5.4.410.0370.01815.20
5.4.400.0100.02215.04
5.4.390.0420.02114.84
5.4.380.0150.03414.84
5.4.370.0160.03014.76
5.4.360.0130.03214.58
5.4.350.0200.03014.75
5.4.340.0160.02814.74
5.4.330.0100.00310.88
5.4.320.0060.01911.45
5.4.310.0050.02111.53
5.4.300.0040.02211.65
5.4.290.0040.02511.48
5.4.280.0050.02111.50
5.4.270.0030.02311.57
5.4.260.0060.02611.58
5.4.250.0040.02211.54
5.4.240.0070.02411.51
5.4.230.0050.02411.53
5.4.220.0060.02111.43
5.4.210.0040.02311.69
5.4.200.0070.02011.52
5.4.190.0020.02211.57
5.4.180.0070.01811.49
5.4.170.0060.02011.45
5.4.160.0040.02311.58
5.4.150.0080.01711.62
5.4.140.0060.02111.50
5.4.130.0020.02311.42
5.4.120.0030.02411.42
5.4.110.0060.02111.36
5.4.100.0070.02111.38
5.4.90.0070.02611.37
5.4.80.0030.02511.35
5.4.70.0070.01811.41
5.4.60.0030.02111.42
5.4.50.0020.02311.38
5.4.40.0060.02011.38
5.4.30.0070.01811.43
5.4.20.0040.02211.45
5.4.10.0060.01711.41
5.4.00.0030.02411.08
5.3.290.0060.03812.80
5.3.280.0070.03512.71
5.3.270.0050.03812.72
5.3.260.0070.04812.72
5.3.250.0080.04012.72
5.3.240.0070.04312.71
5.3.230.0050.05012.71
5.3.220.0060.04112.68
5.3.210.0040.04212.68
5.3.200.0060.03712.68
5.3.190.0080.03912.68
5.3.180.0020.04112.67
5.3.170.0070.03412.67
5.3.160.0060.03712.67
5.3.150.0080.03412.67
5.3.140.0060.04012.66
5.3.130.0070.03712.66
5.3.120.0050.04212.66
5.3.110.0090.03812.66
5.3.100.0030.04012.12
5.3.90.0050.04012.08
5.3.80.0060.03712.07
5.3.70.0050.03712.07
5.3.60.0060.04112.06
5.3.50.0070.03412.00
5.3.40.0050.03712.00
5.3.30.0070.03711.95
5.3.20.0100.03911.72
5.3.10.0080.03611.69
5.3.00.0040.04011.67
5.2.170.0060.0359.18
5.2.160.0040.0299.18
5.2.150.0020.0369.18
5.2.140.0060.0289.18
5.2.130.0060.0319.13
5.2.120.0050.0289.14
5.2.110.0050.0299.14
5.2.100.0060.0309.13
5.2.90.0040.0299.14
5.2.80.0050.0319.13
5.2.70.0060.0299.13
5.2.60.0060.0339.09
5.2.50.0040.0309.05
5.2.40.0050.0289.04
5.2.30.0060.0289.01
5.2.20.0080.0279.00
5.2.10.0070.0358.94
5.2.00.0040.0298.80
5.1.60.0040.0238.08
5.1.50.0050.0278.07
5.1.40.0070.0248.06
5.1.30.0060.0288.41
5.1.20.0050.0328.43
5.1.10.0040.0268.15
5.1.00.0030.0278.15
5.0.50.0060.0196.63
5.0.40.0040.0216.49
5.0.30.0030.0326.30
5.0.20.0030.0226.27
5.0.10.0050.0196.25
5.0.00.0040.0366.25
4.4.90.0040.0244.78
4.4.80.0030.0154.76
4.4.70.0020.0164.76
4.4.60.0040.0144.76
4.4.50.0020.0184.77
4.4.40.0040.0324.71
4.4.30.0040.0154.76
4.4.20.0030.0154.85
4.4.10.0030.0154.85
4.4.00.0040.0234.75
4.3.110.0030.0174.67
4.3.100.0030.0184.67
4.3.90.0070.0134.63
4.3.80.0060.0244.58
4.3.70.0040.0194.63
4.3.60.0040.0184.62
4.3.50.0030.0204.63
4.3.40.0040.0234.54
4.3.30.0030.0143.29
4.3.20.0030.0183.27
4.3.10.0010.0163.23
4.3.00.0130.01015.64

preferences:
38.75 ms | 401 KiB | 5 Q