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.0110.00716.50
8.3.50.0180.00523.01
8.3.40.0110.00718.67
8.3.30.0130.00319.10
8.3.20.0040.00420.22
8.3.10.0000.00723.61
8.3.00.0040.00419.15
8.2.180.0060.01316.50
8.2.170.0120.00322.96
8.2.160.0030.01020.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0040.00421.00
8.2.110.0080.00020.56
8.2.100.0070.00418.16
8.2.90.0030.00619.23
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0030.00519.95
8.2.30.0020.00518.09
8.2.20.0030.00617.68
8.2.10.0000.00718.05
8.2.00.0040.00417.66
8.1.280.0000.01525.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.96
8.1.230.0120.00018.97
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.24
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.56
8.1.160.0040.00422.09
8.1.150.0040.00418.92
8.1.140.0000.00717.51
8.1.130.0000.00717.87
8.1.120.0030.00317.51
8.1.110.0040.00417.37
8.1.100.0040.00417.42
8.1.90.0030.00517.48
8.1.80.0040.00417.46
8.1.70.0040.00417.43
8.1.60.0050.00517.48
8.1.50.0050.00317.45
8.1.40.0080.00017.50
8.1.30.0050.00317.55
8.1.20.0040.00417.71
8.1.10.0070.00017.47
8.1.00.0030.00617.27
8.0.300.0000.00818.77
8.0.290.0090.00016.63
8.0.280.0030.00318.48
8.0.270.0030.00317.36
8.0.260.0000.00717.33
8.0.250.0030.00316.96
8.0.240.0000.00616.82
8.0.230.0030.00316.81
8.0.220.0030.00316.90
8.0.210.0040.00416.76
8.0.200.0030.00316.88
8.0.190.0000.00716.95
8.0.180.0050.00316.88
8.0.170.0060.00316.82
8.0.160.0050.00216.80
8.0.150.0070.00016.84
8.0.140.0000.00716.70
8.0.130.0000.00513.33
8.0.120.0030.00516.77
8.0.110.0000.00716.84
8.0.100.0000.00716.77
8.0.90.0040.00416.89
8.0.80.0030.01316.84
8.0.70.0040.00416.77
8.0.60.0050.00316.91
8.0.50.0040.00416.75
8.0.30.0070.01617.09
8.0.20.0090.00917.40
8.0.10.0080.00016.96
8.0.00.0060.01116.77
7.4.330.0000.00615.03
7.4.320.0000.00716.45
7.4.300.0040.00416.50
7.4.290.0040.00416.48
7.4.280.0000.00716.59
7.4.270.0070.00016.64
7.4.260.0030.00316.47
7.4.250.0050.00216.39
7.4.240.0030.00416.55
7.4.230.0040.00416.41
7.4.220.0030.01516.52
7.4.210.0100.00616.52
7.4.200.0030.00316.41
7.4.160.0130.00916.57
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0100.00716.58
7.4.120.0030.01416.48
7.4.110.0030.01416.67
7.4.100.0100.01016.53
7.4.90.0060.01116.30
7.4.80.0070.01019.39
7.4.70.0080.00816.63
7.4.60.0040.01416.70
7.4.50.0000.00716.36
7.4.40.0060.01316.55
7.4.30.0070.01016.57
7.4.00.0080.00615.12
7.3.330.0060.00012.89
7.3.320.0000.00513.10
7.3.310.0040.00416.27
7.3.300.0040.00416.19
7.3.290.0040.01616.15
7.3.280.0030.01316.19
7.3.270.0100.01117.40
7.3.260.0060.01216.41
7.3.250.0100.01216.32
7.3.240.0090.00916.22
7.3.230.0070.01116.57
7.3.210.0070.01016.47
7.3.200.0080.00819.39
7.3.190.0090.00916.09
7.3.180.0120.00416.20
7.3.170.0060.00916.58
7.3.160.0130.00316.18
7.2.330.0150.00316.50
7.2.320.0090.01416.57
7.2.310.0040.01616.76
7.2.300.0060.00916.75
7.2.290.0170.00516.43
7.2.00.0070.00419.44
7.1.200.0030.00915.83
7.1.70.0060.00317.18
7.1.60.0090.01519.40
7.1.50.0160.02034.77
7.1.00.0030.07722.50
7.0.200.0030.00616.90
7.0.140.0030.07721.95
7.0.60.0130.07719.93
7.0.50.0170.06317.88
7.0.40.0130.04720.09
7.0.30.0370.04020.20
7.0.20.0230.04720.17
7.0.10.0070.08720.01
7.0.00.0100.08720.08
5.6.280.0070.07021.11
5.6.210.0070.08720.47
5.6.200.0100.06018.17
5.6.190.0030.06720.35
5.6.180.4200.03720.45
5.6.170.0300.07320.51
5.6.160.0070.08720.61
5.6.150.0070.04318.08
5.6.140.0100.08018.21
5.6.130.0170.04718.21
5.6.120.0000.04320.87
5.6.110.0030.08720.98
5.6.100.0070.04020.97
5.6.90.0200.07021.03
5.6.80.0170.07020.34
5.5.350.0200.07720.43
5.5.340.0070.08017.96
5.5.330.0070.06320.06
5.5.320.0430.04020.29
5.5.310.0270.08020.34
5.5.300.0200.06717.94
5.5.290.0000.08717.96
5.5.280.0070.05020.75
5.5.270.0030.04320.77
5.5.260.0100.08020.74
5.5.250.0030.04020.57
5.5.240.0200.07020.16
5.4.450.0330.04319.26
5.4.440.0400.04319.41
5.4.430.0730.04719.45
5.4.420.0330.06019.56
5.4.410.0530.04319.23
5.4.400.0330.03719.25
5.4.390.0830.04319.08
5.4.380.0370.05318.62
5.4.370.0800.05318.71
5.4.360.0230.06018.60
5.4.350.0430.04718.64
5.4.340.0400.05018.67
5.4.320.0070.03512.45
5.4.310.0100.04112.45
5.4.300.0080.03312.45
5.4.290.0070.03912.45
5.4.280.0070.04112.34
5.4.270.0080.04012.35
5.4.260.0070.03812.34
5.4.250.0040.03912.34
5.4.240.0070.03412.34
5.4.230.0060.04712.34
5.4.220.0060.03612.34
5.4.210.0090.03212.34
5.4.200.0060.03812.34
5.4.190.0100.04112.34
5.4.180.0040.03712.33
5.4.170.0080.03312.35
5.4.160.0070.03412.34
5.4.150.0050.03812.34
5.4.140.0060.03712.02
5.4.130.0060.03712.01
5.4.120.0060.03411.97
5.4.110.0110.03711.96
5.4.100.0040.03711.96
5.4.90.0060.03811.96
5.4.80.0050.03711.96
5.4.70.0080.03211.96
5.4.60.0060.03411.96
5.4.50.0080.03511.96
5.4.40.0040.03711.95
5.4.30.0130.03411.95
5.4.20.0110.03511.95
5.4.10.0010.03911.95
5.4.00.0040.03811.43
5.3.290.0080.04012.80
5.3.280.0070.03712.71
5.3.270.0060.03812.72
5.3.260.0070.03812.72
5.3.250.0090.04112.71
5.3.240.0030.04012.71
5.3.230.0050.04212.71
5.3.220.0100.03212.68
5.3.210.0040.04112.68
5.3.200.0060.03612.68
5.3.190.0090.03512.68
5.3.180.0080.03512.68
5.3.170.0130.04012.67
5.3.160.0060.04212.68
5.3.150.0090.04012.68
5.3.140.0030.03912.66
5.3.130.0070.03812.66
5.3.120.0050.04912.66
5.3.110.0100.04112.66
5.3.100.0060.03912.12
5.3.90.0040.04112.08
5.3.80.0070.03912.07
5.3.70.0070.03712.08
5.3.60.0070.04012.06
5.3.50.0040.03812.00
5.3.40.0070.03612.00
5.3.30.0060.03711.94
5.3.20.0070.03411.72
5.3.10.0050.03611.69
5.3.00.0070.03511.68
5.2.170.0050.0329.18
5.2.160.0030.0329.18
5.2.150.0020.0399.18
5.2.140.0060.0329.17
5.2.130.0020.0329.14
5.2.120.0030.0309.13
5.2.110.0060.0329.14
5.2.100.0070.0269.13
5.2.90.0040.0299.14
5.2.80.0030.0319.13
5.2.70.0040.0309.13
5.2.60.0050.0299.09
5.2.50.0060.0289.05
5.2.40.0080.0289.03
5.2.30.0060.0289.01
5.2.20.0010.0339.00
5.2.10.0020.0308.94
5.2.00.0040.0298.80
5.1.60.0030.0258.08
5.1.50.0060.0248.07
5.1.40.0030.0308.05
5.1.30.0040.0288.41
5.1.20.0040.0288.43
5.1.10.0050.0248.15
5.1.00.0070.0258.15
5.0.50.0020.0276.63
5.0.40.0050.0196.49
5.0.30.0040.0306.30
5.0.20.0040.0196.27
5.0.10.0040.0196.25
5.0.00.0040.0306.24
4.4.90.0020.0164.78
4.4.80.0010.0184.76
4.4.70.0050.0144.75
4.4.60.0040.0184.75
4.4.50.0040.0154.77
4.4.40.0030.0294.71
4.4.30.0010.0184.76
4.4.20.0040.0154.85
4.4.10.0050.0134.85
4.4.00.0010.0274.75
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0030.0274.58
4.3.70.0020.0154.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0040.0324.54
4.3.30.0010.0173.29
4.3.20.0010.0203.27
4.3.10.0020.0153.23
4.3.00.0030.01715.64

preferences:
30.55 ms | 401 KiB | 5 Q