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.0090.00918.48
8.3.30.0120.00318.96
8.3.20.0040.00420.16
8.3.10.0040.00423.48
8.3.00.0080.00019.38
8.2.170.0110.00322.96
8.2.160.0130.00020.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00326.16
8.2.120.0080.00021.09
8.2.110.0060.00322.08
8.2.100.0050.00517.98
8.2.90.0090.00019.05
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.16
8.2.20.0030.00617.75
8.2.10.0070.00018.05
8.2.00.0000.00817.71
8.1.270.0030.00523.79
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.09
8.1.230.0110.00018.86
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0000.00818.49
8.1.160.0000.00822.00
8.1.150.0040.00418.88
8.1.140.0000.00817.44
8.1.130.0000.00717.79
8.1.120.0030.00317.51
8.1.110.0040.00417.43
8.1.100.0000.00717.46
8.1.90.0030.00317.52
8.1.80.0070.00017.34
8.1.70.0030.00317.31
8.1.60.0050.00317.46
8.1.50.0030.00517.50
8.1.40.0070.00017.46
8.1.30.0040.00417.49
8.1.20.0000.00817.49
8.1.10.0020.00517.46
8.1.00.0030.00617.29
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.50
8.0.270.0030.00317.27
8.0.260.0000.00617.17
8.0.250.0030.00316.96
8.0.240.0040.00416.92
8.0.230.0030.00316.91
8.0.220.0030.00316.91
8.0.210.0080.00016.77
8.0.200.0030.00316.83
8.0.190.0050.00316.95
8.0.180.0020.00516.87
8.0.170.0040.00416.88
8.0.160.0040.00416.89
8.0.150.0030.00316.83
8.0.140.0020.00516.84
8.0.130.0050.00013.25
8.0.120.0050.00316.79
8.0.110.0080.00016.88
8.0.100.0000.00716.77
8.0.90.0080.00016.87
8.0.80.0100.01116.91
8.0.70.0080.00016.72
8.0.60.0060.00316.80
8.0.50.0080.00016.91
8.0.30.0100.01217.07
8.0.20.0080.01117.40
8.0.10.0050.00216.84
8.0.00.0120.00516.78
7.4.330.0060.00015.04
7.4.320.0030.00316.49
7.4.300.0060.00016.44
7.4.290.0000.00716.60
7.4.280.0000.00716.42
7.4.270.0060.00016.45
7.4.260.0050.00516.47
7.4.250.0080.00016.46
7.4.240.0040.00316.58
7.4.230.0070.00016.53
7.4.220.0140.00416.60
7.4.210.0100.01016.61
7.4.200.0070.00016.68
7.4.160.0070.01016.40
7.4.150.0110.00817.40
7.4.140.0070.01017.86
7.4.130.0060.01216.58
7.4.120.0120.00816.66
7.4.110.0100.01316.56
7.4.100.0090.00916.55
7.4.90.0180.00916.36
7.4.80.0060.01219.39
7.4.70.0100.00716.60
7.4.60.0080.00816.46
7.4.50.0030.00316.59
7.4.40.0040.01516.57
7.4.30.0060.01116.39
7.4.00.0060.00615.08
7.3.330.0000.00513.04
7.3.320.0060.00012.94
7.3.310.0000.00716.27
7.3.300.0030.00316.24
7.3.290.0070.00716.14
7.3.280.0100.00816.24
7.3.270.0060.01117.40
7.3.260.0120.00916.32
7.3.250.0110.00516.38
7.3.240.0060.01116.32
7.3.230.0100.00616.39
7.3.210.0070.01016.26
7.3.200.0080.00819.39
7.3.190.0100.01116.18
7.3.180.0160.00016.38
7.3.170.0100.00616.27
7.3.160.0040.01116.48
7.3.10.0100.00316.38
7.3.00.0120.00316.59
7.2.330.0110.00616.37
7.2.320.0140.00416.33
7.2.310.0090.00916.45
7.2.300.0100.00616.45
7.2.290.0140.00916.64
7.2.130.0070.00716.88
7.2.120.0000.01616.99
7.2.110.0030.00916.92
7.2.100.0100.00716.62
7.2.90.0090.00617.10
7.2.80.0110.00416.88
7.2.70.0080.00616.90
7.2.60.0090.00516.76
7.2.50.0080.00916.69
7.2.40.0070.00316.84
7.2.30.0140.00016.92
7.2.20.0060.00917.01
7.2.10.0070.00416.86
7.2.00.0070.01016.85
7.1.250.0130.00015.61
7.1.200.0030.00615.62
7.1.70.0100.00617.05
7.1.60.0000.02419.40
7.1.50.0060.01617.00
7.1.00.0030.07722.57
7.0.200.0030.00516.74
7.0.140.0130.06321.96
7.0.60.0030.04719.85
7.0.50.0030.06717.79
7.0.40.0030.05320.04
7.0.30.0170.04320.01
7.0.20.0200.04320.11
7.0.10.0170.07720.20
7.0.00.0030.07320.01
5.6.280.0000.07721.14
5.6.210.0100.08020.55
5.6.200.0070.06718.19
5.6.190.0130.08020.61
5.6.180.3230.05320.41
5.6.170.0070.05020.51
5.6.160.0030.04020.47
5.6.150.0070.06018.13
5.6.140.0100.07318.16
5.6.130.0100.05318.20
5.6.120.0030.08720.97
5.6.110.0100.08720.99
5.6.100.0070.06321.11
5.6.90.0070.08720.96
5.6.80.0100.06720.28
5.6.70.4430.04020.34
5.5.350.0270.06720.39
5.5.340.0100.08018.02
5.5.330.0000.09320.14
5.5.320.0430.04720.34
5.5.310.0270.06020.20
5.5.300.0070.07317.96
5.5.290.0070.08017.97
5.5.280.0130.05320.97
5.5.270.0170.07320.76
5.5.260.0000.04320.76
5.5.250.0070.04020.54
5.5.240.0200.03720.25
5.4.450.0300.05019.48
5.4.440.0800.04019.58
5.4.430.0500.04719.46
5.4.420.0430.04719.23
5.4.410.0530.03319.43
5.4.400.0230.05018.78
5.4.390.0630.03719.22
5.4.380.0400.06318.47
5.4.370.0230.06018.66
5.4.360.0430.04718.62
5.4.350.0230.06018.73
5.4.340.0500.07318.76
5.4.320.0070.04112.45
5.4.310.0110.04112.45
5.4.300.0070.03712.45
5.4.290.0030.04112.45
5.4.280.0070.03412.34
5.4.270.0060.03512.34
5.4.260.0070.03512.34
5.4.250.0050.03812.35
5.4.240.0050.04012.35
5.4.230.0080.03612.34
5.4.220.0080.04412.34
5.4.210.0080.03412.34
5.4.200.0070.04012.34
5.4.190.0060.03712.33
5.4.180.0060.04112.33
5.4.170.0050.04012.35
5.4.160.0080.03312.34
5.4.150.0050.03612.34
5.4.140.0040.03812.02
5.4.130.0050.03612.01
5.4.120.0070.03411.97
5.4.110.0080.03611.96
5.4.100.0070.03511.96
5.4.90.0040.03811.96
5.4.80.0060.03511.96
5.4.70.0090.03711.96
5.4.60.0030.03811.96
5.4.50.0040.03511.96
5.4.40.0040.03611.95
5.4.30.0030.03711.95
5.4.20.0050.03511.95
5.4.10.0060.03411.94
5.4.00.0050.03711.44
5.3.290.0040.04112.80
5.3.280.0080.04212.71
5.3.270.0070.04812.73
5.3.260.0060.03812.72
5.3.250.0070.03912.72
5.3.240.0050.03912.72
5.3.230.0050.03812.71
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0090.03412.68
5.3.190.0090.04012.68
5.3.180.0090.03512.68
5.3.170.0050.03812.67
5.3.160.0090.03812.68
5.3.150.0110.03712.67
5.3.140.0070.03812.66
5.3.130.0030.04212.66
5.3.120.0040.04412.66
5.3.110.0040.04512.66
5.3.100.0090.03512.12
5.3.90.0080.04112.08
5.3.80.0060.03512.08
5.3.70.0050.04112.07
5.3.60.0050.03612.06
5.3.50.0110.04212.00
5.3.40.0060.03712.00
5.3.30.0040.03611.95
5.3.20.0020.03811.72
5.3.10.0040.03511.69
5.3.00.0070.03311.67
5.2.170.0050.0309.18
5.2.160.0080.0299.18
5.2.150.0080.0319.18
5.2.140.0060.0339.18
5.2.130.0040.0299.14
5.2.120.0030.0309.14
5.2.110.0070.0299.14
5.2.100.0070.0259.14
5.2.90.0030.0309.14
5.2.80.0020.0329.13
5.2.70.0020.0329.13
5.2.60.0040.0319.09
5.2.50.0080.0359.05
5.2.40.0060.0309.03
5.2.30.0030.0399.01
5.2.20.0080.0289.00
5.2.10.0060.0368.93
5.2.00.0090.0278.79
5.1.60.0040.0248.07
5.1.50.0040.0258.07
5.1.40.0070.0228.06
5.1.30.0030.0278.41
5.1.20.0030.0288.43
5.1.10.0030.0278.15
5.1.00.0040.0268.15
5.0.50.0060.0266.63
5.0.40.0040.0216.48
5.0.30.0040.0316.30
5.0.20.0040.0216.27
5.0.10.0020.0276.25
5.0.00.0030.0316.24
4.4.90.0030.0174.78
4.4.80.0020.0164.76
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0040.0154.76
4.4.20.0020.0174.85
4.4.10.0050.0164.85
4.4.00.0020.0264.76
4.3.110.0020.0174.66
4.3.100.0040.0204.67
4.3.90.0010.0214.63
4.3.80.0020.0274.58
4.3.70.0010.0184.63
4.3.60.0050.0144.63
4.3.50.0040.0144.63
4.3.40.0040.0224.53
4.3.30.0030.0143.29
4.3.20.0000.0173.27
4.3.10.0040.0133.23
4.3.00.0030.01715.64

preferences:
44.36 ms | 400 KiB | 5 Q