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));

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.0140.00318.58
8.3.30.0000.01418.92
8.3.20.0000.00720.20
8.3.10.0080.00023.66
8.3.00.0060.00319.25
8.2.170.0090.00622.96
8.2.160.0150.00418.83
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.01126.16
8.2.120.0080.00020.86
8.2.110.0060.00320.52
8.2.100.0000.01018.22
8.2.90.0080.00019.21
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00819.72
8.2.30.0040.00417.94
8.2.20.0000.00817.66
8.2.10.0000.00817.98
8.2.00.0040.00417.67
8.1.270.0050.00323.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0090.00319.03
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0090.00017.11
8.1.180.0040.00418.10
8.1.170.0000.00718.50
8.1.160.0030.00521.93
8.1.150.0040.00418.88
8.1.140.0050.00317.49
8.1.130.0000.00717.74
8.1.120.0030.00517.48
8.1.110.0000.00817.38
8.1.100.0000.00717.43
8.1.90.0030.00517.28
8.1.80.0000.00717.44
8.1.70.0030.00517.41
8.1.60.0060.00317.62
8.1.50.0040.00417.39
8.1.40.0000.00817.53
8.1.30.0050.00317.54
8.1.20.0000.00817.63
8.1.10.0030.00617.31
8.1.00.0040.00417.43
8.0.300.0030.00518.77
8.0.290.0050.00316.75
8.0.280.0030.00318.34
8.0.270.0040.00417.23
8.0.260.0030.00317.26
8.0.250.0030.00616.94
8.0.240.0030.00316.97
8.0.230.0000.00716.79
8.0.220.0000.00716.75
8.0.210.0040.00416.85
8.0.200.0000.00617.01
8.0.190.0040.00416.82
8.0.180.0000.00716.93
8.0.170.0000.00816.87
8.0.160.0030.00516.98
8.0.150.0000.00816.84
8.0.140.0050.00316.78
8.0.130.0030.00313.31
8.0.120.0000.00716.90
8.0.110.0000.00716.95
8.0.100.0000.00716.79
8.0.90.0000.00716.95
8.0.80.0060.00916.86
8.0.70.0000.00716.95
8.0.60.0050.00316.74
8.0.50.0030.00316.82
8.0.30.0110.01116.90
8.0.20.0080.01017.40
8.0.10.0030.00516.97
8.0.00.0100.00616.71
7.4.330.0050.00015.15
7.4.320.0030.00316.55
7.4.300.0070.00016.59
7.4.290.0030.00316.57
7.4.280.0040.00416.60
7.4.270.0050.00316.48
7.4.260.0070.00016.57
7.4.250.0000.00816.43
7.4.240.0030.00416.55
7.4.230.0000.00716.50
7.4.220.0120.00616.65
7.4.210.0100.01016.62
7.4.200.0070.00016.47
7.4.160.0100.00616.58
7.4.150.0110.00617.40
7.4.140.0090.00817.86
7.4.130.0090.01116.53
7.4.120.0100.01016.51
7.4.110.0070.01016.47
7.4.100.0120.00916.67
7.4.90.0100.00716.61
7.4.80.0180.00019.39
7.4.70.0030.01516.52
7.4.60.0160.00616.57
7.4.50.0030.00316.34
7.4.40.0120.00916.59
7.4.30.0120.00316.36
7.4.00.0070.01015.02
7.3.330.0000.00513.04
7.3.320.0030.00313.04
7.3.310.0030.00316.15
7.3.300.0030.00316.23
7.3.290.0000.01416.15
7.3.280.0080.01016.18
7.3.270.0090.00917.40
7.3.260.0150.00316.26
7.3.250.0170.00216.19
7.3.240.0080.00816.65
7.3.230.0030.01416.39
7.3.210.0030.01516.53
7.3.200.0120.00619.39
7.3.190.0060.01416.11
7.3.180.0050.01016.41
7.3.170.0150.00316.55
7.3.160.0080.00816.09
7.3.120.0070.00714.57
7.3.110.0110.00314.58
7.3.100.0090.00914.98
7.3.90.0100.00314.67
7.3.80.0000.01314.86
7.3.70.0060.01214.81
7.3.60.0070.00414.66
7.3.50.0080.00814.54
7.3.40.0090.00614.54
7.3.30.0110.00414.85
7.3.20.0080.00316.68
7.3.10.0090.00616.34
7.3.00.0100.00716.71
7.2.330.0120.00816.52
7.2.320.0150.00516.55
7.2.310.0060.01016.45
7.2.300.0070.01116.68
7.2.290.0140.00916.52
7.2.240.0080.00815.06
7.2.230.0080.01514.86
7.2.220.0110.00315.07
7.2.210.0070.01115.06
7.2.200.0040.00815.06
7.2.190.0030.01314.89
7.2.180.0070.01014.71
7.2.170.0080.00815.14
7.2.160.0070.01115.12
7.2.150.0070.01016.99
7.2.140.0000.01317.00
7.2.130.0100.00616.86
7.2.120.0030.01316.81
7.2.110.0040.01116.88
7.2.100.0090.00916.95
7.2.90.0060.00616.73
7.2.80.0070.01016.87
7.2.70.0120.00616.68
7.2.60.0060.00616.94
7.2.50.0070.01116.79
7.2.40.0000.01416.98
7.2.30.0110.00716.79
7.2.20.0040.01416.98
7.2.10.0030.01417.02
7.2.00.0030.00818.12
7.1.330.0080.00415.85
7.1.320.0040.01115.64
7.1.310.0000.01115.90
7.1.300.0060.00615.73
7.1.290.0040.01115.74
7.1.280.0030.00915.51
7.1.270.0080.00815.64
7.1.260.0110.00315.65
7.1.250.0100.00715.77
7.1.70.0000.01016.89
7.1.60.0130.01019.40
7.1.50.0160.02034.70
7.1.00.0030.07722.34
7.0.200.0050.00216.61
7.0.140.0100.06722.13
7.0.60.0170.07319.91
7.0.50.0070.08317.90
7.0.40.0130.05720.30
7.0.30.0500.05320.30
7.0.20.0370.05720.30
7.0.10.0000.08020.00
7.0.00.0070.04320.01
5.6.280.0030.07320.75
5.6.210.0030.06320.60
5.6.200.0100.07718.12
5.6.190.0100.07320.57
5.6.180.3600.03720.36
5.6.170.0300.05320.49
5.6.160.0130.08320.41
5.6.150.0030.04018.18
5.6.140.0130.04718.22
5.6.130.0000.04318.17
5.6.120.0070.05720.77
5.6.110.0070.06021.00
5.6.100.0130.06020.96
5.6.90.0100.05021.10
5.6.80.0100.06720.39
5.5.350.0170.04020.51
5.5.340.0100.08317.98
5.5.330.0070.08320.25
5.5.320.0330.05720.21
5.5.310.0270.07320.34
5.5.300.0000.04317.86
5.5.290.0070.08717.90
5.5.280.0030.04320.73
5.5.270.0170.07020.63
5.5.260.0170.07020.85
5.5.250.0170.05320.68
5.5.240.0130.05020.34
5.4.450.0200.05019.46
5.4.440.0370.04019.26
5.4.430.0500.04319.41
5.4.420.0470.04019.25
5.4.410.0570.05019.44
5.4.400.0330.04319.22
5.4.390.0900.05018.88
5.4.380.0300.06318.57
5.4.370.0970.06018.50
5.4.360.0370.05718.59
5.4.350.0330.05318.77
5.4.340.0370.05318.49
5.4.320.0070.03512.45
5.4.310.0060.03712.45
5.4.300.0060.03612.45
5.4.290.0070.03712.45
5.4.280.0020.03912.34
5.4.270.0050.03612.34
5.4.260.0040.03712.35
5.4.250.0060.03612.35
5.4.240.0040.03712.34
5.4.230.0060.03712.34
5.4.220.0050.03712.34
5.4.210.0060.04612.34
5.4.200.0080.03712.34
5.4.190.0060.03712.33
5.4.180.0050.03712.34
5.4.170.0070.03412.35
5.4.160.0070.03512.34
5.4.150.0050.03612.34
5.4.140.0050.04112.02
5.4.130.0040.03612.01
5.4.120.0060.03911.97
5.4.110.0060.03911.96
5.4.100.0060.03511.96
5.4.90.0060.04111.96
5.4.80.0040.04211.96
5.4.70.0090.03311.96
5.4.60.0070.04011.96
5.4.50.0110.03411.96
5.4.40.0050.03611.95
5.4.30.0060.03411.95
5.4.20.0070.03411.95
5.4.10.0090.03211.95
5.4.00.0070.03811.44
5.3.290.0070.03812.80
5.3.280.0060.03712.71
5.3.270.0070.03612.73
5.3.260.0080.03612.72
5.3.250.0070.03512.72
5.3.240.0090.03512.72
5.3.230.0050.04012.71
5.3.220.0090.04312.68
5.3.210.0070.04512.68
5.3.200.0050.03712.68
5.3.190.0050.04012.68
5.3.180.0070.03512.67
5.3.170.0070.03512.67
5.3.160.0030.04012.67
5.3.150.0060.03612.67
5.3.140.0050.03612.66
5.3.130.0050.03912.66
5.3.120.0060.04512.66
5.3.110.0060.04312.66
5.3.100.0060.03712.12
5.3.90.0060.03612.08
5.3.80.0060.03512.08
5.3.70.0060.03512.08
5.3.60.0050.03612.06
5.3.50.0050.04012.00
5.3.40.0030.04012.00
5.3.30.0060.03411.94
5.3.20.0070.03411.72
5.3.10.0060.03411.69
5.3.00.0040.04211.67
5.2.170.0050.0359.17
5.2.160.0050.0289.18
5.2.150.0030.0329.18
5.2.140.0060.0339.17
5.2.130.0040.0359.14
5.2.120.0020.0309.14
5.2.110.0060.0279.14
5.2.100.0030.0329.14
5.2.90.0040.0349.14
5.2.80.0030.0319.13
5.2.70.0050.0299.13
5.2.60.0030.0349.09
5.2.50.0040.0299.05
5.2.40.0030.0299.03
5.2.30.0100.0239.01
5.2.20.0060.0279.00
5.2.10.0030.0298.93
5.2.00.0050.0288.80
5.1.60.0050.0228.07
5.1.50.0030.0258.07
5.1.40.0010.0278.06
5.1.30.0030.0288.41
5.1.20.0070.0298.43
5.1.10.0050.0278.15
5.1.00.0010.0288.15
5.0.50.0040.0206.63
5.0.40.0050.0176.48
5.0.30.0020.0326.30
5.0.20.0060.0166.27
5.0.10.0030.0216.24
5.0.00.0020.0326.24
4.4.90.0050.0134.78
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0254.70
4.4.30.0040.0144.76
4.4.20.0040.0144.84
4.4.10.0040.0144.85
4.4.00.0020.0284.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0050.0124.63
4.3.80.0000.0284.58
4.3.70.0050.0134.63
4.3.60.0020.0184.63
4.3.50.0030.0204.62
4.3.40.0050.0264.54
4.3.30.0030.0203.29
4.3.20.0030.0193.27
4.3.10.0010.0163.23
4.3.00.0070.01315.64

preferences:
38.46 ms | 400 KiB | 5 Q