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.60.0080.00818.31
8.3.50.0150.00522.88
8.3.40.0070.00718.66
8.3.30.0100.01018.92
8.3.20.0040.00420.16
8.3.10.0040.00423.61
8.3.00.0030.00619.13
8.2.180.0090.00916.32
8.2.170.0080.00622.96
8.2.160.0100.00320.22
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.96
8.2.110.0060.00320.51
8.2.100.0060.00618.16
8.2.90.0020.00519.17
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00417.91
8.2.50.0090.00018.07
8.2.40.0000.00820.07
8.2.30.0050.00218.06
8.2.20.0000.00817.58
8.2.10.0000.00818.00
8.2.00.0040.00417.54
8.1.280.0070.01025.92
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0030.00719.07
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0020.00518.10
8.1.170.0040.00418.54
8.1.160.0000.00722.00
8.1.150.0040.00418.89
8.1.140.0000.00717.44
8.1.130.0040.00417.73
8.1.120.0040.00417.36
8.1.110.0040.00417.30
8.1.100.0030.00317.46
8.1.90.0040.00417.48
8.1.80.0040.00417.33
8.1.70.0000.00717.42
8.1.60.0040.00417.63
8.1.50.0040.00417.52
8.1.40.0050.00317.56
8.1.30.0000.00817.67
8.1.20.0040.00417.62
8.1.10.0040.00417.50
8.1.00.0000.00817.27
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00817.24
8.0.260.0030.00317.25
8.0.250.0040.00416.99
8.0.240.0040.00416.91
8.0.230.0000.00716.83
8.0.220.0000.00716.91
8.0.210.0040.00416.95
8.0.200.0030.00316.95
8.0.190.0000.00817.01
8.0.180.0040.00416.92
8.0.170.0000.00816.89
8.0.160.0040.00416.77
8.0.150.0050.00316.85
8.0.140.0070.00016.81
8.0.130.0030.00313.30
8.0.120.0030.00516.89
8.0.110.0050.00216.91
8.0.100.0050.00316.87
8.0.90.0000.00716.68
8.0.80.0040.01116.87
8.0.70.0050.00216.85
8.0.60.0050.00316.93
8.0.50.0000.00716.74
8.0.30.0160.00617.04
8.0.20.0110.01017.40
8.0.10.0040.00416.84
8.0.00.0110.00716.70
7.4.330.0030.00315.00
7.4.320.0030.00316.64
7.4.300.0030.00316.58
7.4.290.0000.00716.60
7.4.280.0030.00616.39
7.4.270.0000.00716.50
7.4.260.0000.00816.62
7.4.250.0000.00816.59
7.4.240.0040.00316.55
7.4.230.0030.00316.39
7.4.220.0040.01316.68
7.4.210.0070.00716.62
7.4.200.0040.00416.59
7.4.160.0160.00016.45
7.4.150.0060.01417.40
7.4.140.0090.00717.86
7.4.130.0110.01016.59
7.4.120.0120.00616.58
7.4.110.0040.01416.46
7.4.100.0130.00516.59
7.4.90.0080.00816.45
7.4.80.0060.01219.39
7.4.70.0030.01316.46
7.4.60.0070.01016.55
7.4.50.0040.00016.58
7.4.40.0110.01116.39
7.4.30.0030.01316.58
7.4.00.0060.01215.14
7.3.330.0050.00012.95
7.3.320.0060.00013.04
7.3.310.0000.00716.27
7.3.300.0000.00716.17
7.3.290.0070.00616.20
7.3.280.0060.00916.21
7.3.270.0030.02017.40
7.3.260.0060.01216.25
7.3.250.0100.00616.20
7.3.240.0160.00716.24
7.3.230.0080.00816.43
7.3.210.0050.01116.54
7.3.200.0160.00319.39
7.3.190.0060.01316.20
7.3.180.0080.00816.51
7.3.170.0040.01216.58
7.3.160.0070.00716.29
7.3.10.0100.00815.81
7.3.00.0080.00415.89
7.2.330.0140.00716.74
7.2.320.0070.01416.45
7.2.310.0100.00716.61
7.2.300.0030.01416.51
7.2.290.0130.00916.71
7.2.130.0070.01016.68
7.2.120.0130.00916.72
7.2.110.0140.00616.46
7.2.100.0090.00916.27
7.2.90.0050.00916.18
7.2.80.0120.00716.29
7.2.70.0100.00916.58
7.2.60.0120.00416.64
7.2.50.0110.00816.52
7.2.40.0120.00616.76
7.2.30.0180.00216.60
7.2.20.0140.00516.23
7.2.10.0080.01016.50
7.2.00.0070.01216.46
7.1.250.0170.00615.71
7.1.230.0040.01115.50
7.1.220.0030.01015.58
7.1.210.0060.00615.55
7.1.200.0110.00415.71
7.1.190.0060.00615.45
7.1.180.0140.00715.53
7.1.170.0110.01115.49
7.1.160.0120.00615.64
7.1.150.0120.00615.19
7.1.140.0090.00915.74
7.1.130.0130.00915.63
7.1.120.0090.00915.65
7.1.110.0120.00615.49
7.1.100.0130.00315.43
7.1.90.0150.00615.50
7.1.80.0070.00715.35
7.1.70.0100.00516.25
7.1.60.0120.00917.46
7.1.50.0180.01025.18
7.1.40.0910.01315.76
7.1.30.0110.00615.82
7.1.20.0100.00715.39
7.1.10.0090.00915.13
7.1.00.0130.03818.82
7.0.310.0040.01115.38
7.0.300.0070.00715.28
7.0.290.0080.00415.21
7.0.280.0100.00315.23
7.0.270.0120.00315.36
7.0.260.0060.00615.11
7.0.250.0060.00915.06
7.0.240.0130.00315.21
7.0.230.0060.00614.93
7.0.220.0150.00615.08
7.0.210.0070.00415.29
7.0.200.0090.00815.95
7.0.190.0000.01215.16
7.0.180.0070.00715.16
7.0.170.0130.00615.05
7.0.160.0170.00315.29
7.0.150.0040.00715.04
7.0.140.0080.03818.55
7.0.130.0140.00315.15
7.0.120.0120.00314.77
7.0.110.0120.00314.68
7.0.100.0080.01415.00
7.0.90.0160.00414.79
7.0.80.0100.01014.70
7.0.70.0100.00814.95
7.0.60.0090.04817.49
7.0.50.0080.02816.42
7.0.40.0070.02716.72
7.0.30.0240.03516.81
7.0.20.0070.02716.52
7.0.10.0050.03816.55
7.0.00.0100.04016.62
5.6.380.0040.00814.44
5.6.370.0070.01013.98
5.6.360.0060.00614.20
5.6.350.0030.01014.00
5.6.340.0110.00313.91
5.6.330.0030.01214.04
5.6.320.0080.00613.96
5.6.310.0130.00314.12
5.6.300.0110.00414.02
5.6.290.0060.00913.69
5.6.280.0070.03917.42
5.6.270.0090.00313.81
5.6.260.0060.00913.86
5.6.250.0100.01013.76
5.6.240.0160.00314.17
5.6.230.0000.01513.95
5.6.220.0000.01813.86
5.6.210.0090.04417.22
5.6.200.0090.03916.19
5.6.190.0040.03517.20
5.6.180.1940.02317.34
5.6.170.0250.03017.14
5.6.160.0060.03817.16
5.6.150.0020.02415.74
5.6.140.0080.04316.00
5.6.130.0030.04016.06
5.6.120.0030.02717.42
5.6.110.0110.02517.40
5.6.100.0080.01817.50
5.6.90.0100.02817.57
5.6.80.0040.02417.21
5.6.70.0060.00614.20
5.6.60.0060.00314.07
5.6.50.0060.00313.88
5.6.40.0100.00713.98
5.6.30.0070.01014.03
5.6.20.0110.00413.91
5.6.10.0120.00413.98
5.6.00.0080.00813.96
5.5.380.0070.00710.71
5.5.370.0050.00910.91
5.5.360.0040.00710.72
5.5.350.0170.04215.76
5.5.340.0080.03514.20
5.5.330.0020.02615.59
5.5.320.0230.01715.55
5.5.310.0120.02515.30
5.5.300.0030.03714.31
5.5.290.0030.03714.28
5.5.280.0040.04715.65
5.5.270.0070.02815.73
5.5.260.0060.03515.70
5.5.250.0040.02215.54
5.5.240.0080.01915.43
5.5.230.0030.00511.03
5.5.220.0080.00310.68
5.5.210.0050.00510.59
5.5.200.0060.00410.46
5.5.190.0100.00310.70
5.5.180.0050.00510.82
5.5.170.0030.01014.04
5.5.160.0090.00210.82
5.5.150.0060.00610.64
5.5.140.0140.00010.67
5.5.130.0050.00310.44
5.5.120.0050.00310.48
5.5.110.0080.00410.62
5.5.100.0000.00610.54
5.5.90.0040.00410.49
5.5.80.0060.00310.76
5.5.70.0090.0009.99
5.5.60.0030.00310.70
5.5.50.0030.00510.54
5.5.40.0060.00310.53
5.5.30.0030.00710.59
5.5.20.0070.00210.50
5.5.10.0100.00010.41
5.5.00.0030.00710.24
5.4.450.0190.02614.85
5.4.440.0190.02014.74
5.4.430.0250.02314.77
5.4.420.0270.02414.81
5.4.410.0130.02015.04
5.4.400.0500.01514.90
5.4.390.0250.03114.92
5.4.380.0240.02714.71
5.4.370.0180.03314.53
5.4.360.0210.03114.61
5.4.350.0220.02914.65
5.4.340.0280.02114.57
5.4.330.0060.00610.78
5.4.320.0050.02011.54
5.4.310.0060.02311.40
5.4.300.0040.02311.57
5.4.290.0050.01911.42
5.4.280.0050.02211.46
5.4.270.0090.01911.38
5.4.260.0060.02011.40
5.4.250.0060.02311.50
5.4.240.0040.02111.44
5.4.230.0040.02211.33
5.4.220.0050.02011.40
5.4.210.0090.01811.43
5.4.200.0020.02311.40
5.4.190.0050.02111.25
5.4.180.0040.02111.24
5.4.170.0100.01711.42
5.4.160.0060.02011.46
5.4.150.0050.01911.47
5.4.140.0080.02011.14
5.4.130.0070.02011.28
5.4.120.0060.02111.19
5.4.110.0060.02111.19
5.4.100.0070.02011.15
5.4.90.0060.02111.06
5.4.80.0050.02211.21
5.4.70.0070.01811.16
5.4.60.0050.02111.19
5.4.50.0070.02011.29
5.4.40.0040.02011.10
5.4.30.0060.02011.23
5.4.20.0050.02111.07
5.4.10.0080.01711.24
5.4.00.0040.02210.94
5.3.290.0050.02111.61
5.3.280.0070.02011.50
5.3.270.0080.01911.59
5.3.260.0050.02211.59
5.3.250.0070.02211.62
5.3.240.0060.02111.53
5.3.230.0050.02311.54
5.3.220.0060.02011.52
5.3.210.0090.02111.45
5.3.200.0080.01911.48
5.3.190.0080.02011.54
5.3.180.0060.02011.56
5.3.170.0040.02111.57
5.3.160.0050.02111.60
5.3.150.0030.02211.59
5.3.140.0040.02111.45
5.3.130.0070.02111.48
5.3.120.0070.02111.52
5.3.110.0080.02011.42
5.3.100.0060.02111.26
5.3.90.0040.02111.27
5.3.80.0090.01811.17
5.3.70.0070.01911.17
5.3.60.0060.02011.21
5.3.50.0020.02411.17
5.3.40.0050.02111.13
5.3.30.0040.02211.22
5.3.20.0050.02011.03
5.3.10.0060.02210.98
5.3.00.0070.02610.92
5.2.170.0070.0159.36
5.2.160.0060.0149.29
5.2.150.0040.0189.36
5.2.140.0050.0169.37
5.2.130.0040.0169.28
5.2.120.0030.0179.30
5.2.110.0060.0169.29
5.2.100.0070.0159.16
5.2.90.0030.0179.30
5.2.80.0050.0179.10
5.2.70.0020.0209.24
5.2.60.0060.0169.10
5.2.50.0060.0169.18
5.2.40.0030.0189.09
5.2.30.0050.0189.03
5.2.20.0060.0179.01
5.2.10.0020.0199.05
5.2.00.0040.0168.93
5.1.60.0030.0158.36
5.1.50.0050.0138.29
5.1.40.0040.0158.23
5.1.30.0040.0208.49
5.1.20.0060.0208.48
5.1.10.0060.0148.36
5.1.00.0040.0148.28
5.0.50.0060.0097.17
5.0.40.0040.0127.10
5.0.30.0040.0197.01
5.0.20.0040.0146.99
5.0.10.0050.0096.98
5.0.00.0040.0166.98
4.4.90.0030.0106.24
4.4.80.0050.0076.24
4.4.70.0030.0106.23
4.4.60.0030.0106.23
4.4.50.0050.0086.24
4.4.40.0020.0146.21
4.4.30.0030.0096.24
4.4.20.0030.0096.28
4.4.10.0020.0106.28
4.4.00.0040.0126.24
4.3.110.0020.0096.19
4.3.100.0030.0096.19
4.3.90.0030.0086.17
4.3.80.0020.0136.15
4.3.70.0020.0106.17
4.3.60.0050.0076.17
4.3.50.0030.0096.17
4.3.40.0020.0196.13
4.3.30.0030.0125.50
4.3.20.0030.0135.49
4.3.10.0030.0085.47
4.3.00.0020.01111.68

preferences:
40.55 ms | 401 KiB | 5 Q