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.0040.01116.63
8.3.50.0070.01222.75
8.3.40.0000.01718.87
8.3.30.0070.00718.93
8.3.20.0000.00720.21
8.3.10.0040.00423.48
8.3.00.0060.00319.36
8.2.180.0060.01016.75
8.2.170.0000.01422.96
8.2.160.0110.00420.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.71
8.2.110.0100.00020.52
8.2.100.0080.00418.16
8.2.90.0000.00719.08
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00917.93
8.2.50.0030.00518.07
8.2.40.0040.00418.22
8.2.30.0040.00417.93
8.2.20.0030.00517.59
8.2.10.0000.00718.07
8.2.00.0000.00717.68
8.1.280.0100.01325.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00622.04
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0020.00717.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0030.00322.00
8.1.150.0030.00318.80
8.1.140.0000.00717.32
8.1.130.0000.00717.78
8.1.120.0030.00317.46
8.1.110.0000.00717.33
8.1.100.0050.00317.31
8.1.90.0020.00517.48
8.1.80.0030.00517.42
8.1.70.0030.00317.40
8.1.60.0050.00317.61
8.1.50.0000.00817.43
8.1.40.0050.00217.52
8.1.30.0050.00317.50
8.1.20.0030.00517.69
8.1.10.0030.00517.44
8.1.00.0000.00717.29
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.34
8.0.270.0030.00317.36
8.0.260.0070.00017.13
8.0.250.0000.00716.94
8.0.240.0030.00316.86
8.0.230.0000.00716.84
8.0.220.0030.00316.84
8.0.210.0040.00416.89
8.0.200.0000.00616.96
8.0.190.0040.00416.86
8.0.180.0040.00416.96
8.0.170.0040.00416.81
8.0.160.0040.00416.83
8.0.150.0000.00716.77
8.0.140.0040.00416.70
8.0.130.0000.00613.40
8.0.120.0070.00016.76
8.0.110.0040.00416.82
8.0.100.0030.00316.84
8.0.90.0070.00016.69
8.0.80.0060.00916.94
8.0.70.0000.00716.91
8.0.60.0000.00716.75
8.0.50.0000.00717.00
8.0.30.0120.01117.09
8.0.20.0130.00517.40
8.0.10.0000.00716.82
8.0.00.0090.00816.83
7.4.330.0050.00015.07
7.4.320.0030.00316.51
7.4.300.0060.00016.48
7.4.290.0050.00316.57
7.4.280.0050.00216.39
7.4.270.0030.00316.40
7.4.260.0030.00316.45
7.4.250.0030.00516.45
7.4.240.0050.00216.50
7.4.230.0020.00516.40
7.4.220.0120.00916.64
7.4.210.0070.00716.38
7.4.200.0040.00416.52
7.4.160.0090.00616.57
7.4.150.0090.00917.40
7.4.140.0050.01217.86
7.4.130.0120.00716.50
7.4.120.0120.00516.56
7.4.110.0070.01316.54
7.4.100.0130.00716.47
7.4.90.0100.00716.60
7.4.80.0120.00619.39
7.4.70.0190.00316.51
7.4.60.0090.00916.49
7.4.50.0030.00616.44
7.4.40.0080.01216.52
7.4.30.0120.01216.36
7.4.00.0040.01114.70
7.3.330.0000.00613.00
7.3.320.0000.00512.93
7.3.310.0030.00316.04
7.3.300.0030.00316.02
7.3.290.0100.01016.22
7.3.280.0090.00716.19
7.3.270.0150.00617.40
7.3.260.0100.00716.16
7.3.250.0160.00416.49
7.3.240.0070.01016.51
7.3.230.0240.01416.55
7.3.210.0170.00016.41
7.3.200.0060.01019.39
7.3.190.0120.01016.49
7.3.180.0130.00316.43
7.3.170.0060.00916.50
7.3.160.0120.00416.21
7.3.10.0080.00916.29
7.3.00.0030.01016.52
7.2.330.0110.01316.57
7.2.320.0110.01116.80
7.2.310.0100.00716.47
7.2.300.0090.01216.60
7.2.290.0130.01016.44
7.2.130.0110.00616.75
7.2.120.0120.01216.28
7.2.110.0150.00616.28
7.2.100.0090.01516.42
7.2.90.0110.00816.52
7.2.80.0110.00916.74
7.2.70.0110.00916.55
7.2.60.0130.00716.31
7.2.50.0150.00816.77
7.2.40.0110.00716.28
7.2.30.0160.00816.36
7.2.20.0220.00016.77
7.2.10.0070.01117.04
7.2.00.0090.00717.94
7.1.250.0100.01015.36
7.1.200.0100.00315.89
7.1.70.0030.00316.78
7.1.60.0000.01117.09
7.1.50.0030.00716.89
7.1.40.0000.01016.41
7.1.30.0070.00716.62
7.1.20.0060.01316.47
7.1.10.0000.00716.60
7.1.00.0000.00916.75
7.0.200.0030.00316.75
7.0.190.0090.00016.68
7.0.180.0030.00716.18
7.0.170.0060.00616.28
7.0.160.0000.00816.13
7.0.150.0030.00616.22
7.0.140.0000.00816.40
7.0.130.0000.00816.56
7.0.120.0050.00316.34
7.0.110.0030.00916.20
7.0.100.0020.00516.25
7.0.90.0040.00416.20
7.0.80.0030.00516.30
7.0.70.0000.00816.25
7.0.60.0070.00316.04
7.0.50.0000.00916.49
7.0.40.0000.01215.18
7.0.30.0080.00015.18
7.0.20.0000.00815.18
7.0.10.0070.00415.18
7.0.00.0000.00815.18
5.6.300.0000.05120.77
5.6.290.0030.04420.77
5.6.280.0000.05120.79
5.6.270.0000.04220.93
5.6.260.0030.03920.88
5.6.250.0040.04220.89
5.6.240.0100.03921.05
5.6.230.0030.04520.86
5.6.220.0030.04920.86
5.6.210.0160.03821.01
5.6.200.0030.04420.76
5.6.190.0030.04420.82
5.6.180.0070.04021.03
5.6.170.0000.04620.85
5.6.160.0100.04021.02
5.6.150.0100.03521.00
5.6.140.0060.04820.75
5.6.130.0000.04320.75
5.6.120.0170.04021.02
5.6.110.0070.04320.85
5.6.100.0100.04620.81
5.6.90.0030.03920.70
5.6.80.0030.03920.21
5.6.70.0030.03820.09
5.6.60.0030.04120.37
5.6.50.0130.04520.16
5.6.40.0070.03620.18
5.6.30.0030.03920.28
5.6.20.0030.04520.18
5.6.10.0000.04920.33
5.6.00.0070.04820.26
5.5.380.0000.04117.49
5.5.370.0030.04017.54
5.5.360.0000.05917.60
5.5.350.0070.04117.46
5.5.340.0030.04817.97
5.5.330.0070.03617.94
5.5.320.0000.04618.06
5.5.310.0100.06117.86
5.5.300.0130.04617.74
5.5.290.0030.04017.82
5.5.280.0030.04018.01
5.5.270.0000.04318.01
5.5.260.0000.04317.93
5.5.250.0100.03317.84
5.5.240.0030.04017.13
5.5.230.0030.04317.41
5.5.220.0270.02417.42
5.5.210.0040.03917.35
5.5.200.0100.02917.38
5.5.190.0000.04217.30
5.5.180.0030.04117.38
5.5.160.0030.03917.04
5.5.150.0030.04017.05
5.5.140.0030.04117.37
5.5.130.0070.03417.32
5.5.120.0030.03617.32
5.5.110.0000.04117.22
5.5.100.0000.04517.29
5.5.90.0030.04217.28
5.5.80.0100.03217.08
5.5.70.0030.03717.27
5.5.60.0030.03717.29
5.5.50.0070.03617.27
5.5.40.0030.04117.36
5.5.30.0060.04117.21
5.5.20.0070.03717.30
5.5.10.0000.04617.26
5.5.00.0070.03717.07
5.4.450.0030.04419.14
5.4.440.0070.04019.29
5.4.430.0070.06919.15
5.4.420.0000.04219.39
5.4.410.0000.05719.35
5.4.400.0030.03819.04
5.4.390.0000.04119.05
5.4.380.0000.03818.81
5.4.370.0030.03818.98
5.4.360.0000.04218.98
5.4.350.0030.03918.98
5.4.340.0070.03318.96
5.4.320.0030.04018.84
5.4.310.0070.03419.15
5.4.300.0100.04718.98
5.4.290.0040.03918.97
5.4.280.0070.03919.03
5.4.270.0070.05319.05
5.4.260.0060.03918.86
5.4.250.0030.06319.14
5.4.240.0070.04719.02
5.4.230.0000.04419.06
5.4.220.0100.03419.02
5.4.210.0030.04218.85
5.4.200.0030.06419.11
5.4.190.0030.05818.98
5.4.180.0470.03419.11
5.4.170.0290.02919.11
5.4.160.0000.04319.16
5.4.150.0000.04219.06
5.4.140.0030.03416.50
5.4.130.0000.06116.30
5.4.120.0090.03116.66
5.4.110.0060.03516.39
5.4.100.0030.03716.40
5.4.90.0030.03516.61
5.4.80.0000.03716.67
5.4.70.0130.04016.42
5.4.60.0000.03716.60
5.4.50.0100.03016.30
5.4.40.0000.07816.51
5.4.30.0000.03716.64
5.4.20.0170.03416.30
5.4.10.0030.03816.46
5.4.00.0070.03415.96
5.3.290.0100.03215.18
5.3.280.0030.03415.18
5.3.270.0000.04315.18
5.3.260.0030.03715.18
5.3.250.0000.04015.18
5.3.240.0000.05015.18
5.3.230.0030.03815.18
5.3.220.0000.04115.18
5.3.210.0030.04015.18
5.3.200.0030.05215.18
5.3.190.0000.04015.18
5.3.180.0000.03815.18
5.3.170.0000.04315.18
5.3.160.0000.03715.18
5.3.150.0030.03915.18
5.3.140.0000.03815.18
5.3.130.0000.04015.18
5.3.120.0000.04315.18
5.3.110.0000.04415.18
5.3.100.0240.03415.18
5.3.90.0030.03515.18
5.3.80.0170.03515.18
5.3.70.0030.03515.18
5.3.60.0030.04015.18
5.3.50.0030.03815.18
5.3.40.0000.06115.18
5.3.30.0070.03415.18
5.3.20.0000.03715.18
5.3.10.0000.03815.18
5.3.00.0000.03715.18
5.2.170.0000.03015.18
5.2.160.0000.03315.18
5.2.150.0000.03315.18
5.2.140.0030.02915.18
5.2.130.0000.03315.18
5.2.120.0000.04815.18
5.2.110.0000.03315.18
5.2.100.0030.02915.18
5.2.90.0000.03115.18
5.2.80.0030.02715.18
5.2.70.0000.03115.18
5.2.60.0000.03515.18
5.2.50.0030.04715.18
5.2.40.0070.05915.18
5.2.30.0030.03315.18
5.2.20.0040.02915.18
5.2.10.0070.02915.18
5.2.00.0030.02715.18
5.1.60.0030.02315.18
5.1.50.0000.02715.18
5.1.40.0190.01615.18
5.1.30.0000.03115.18
5.1.20.0030.02315.18
5.1.10.0030.02415.18
5.1.00.0000.02615.18
5.0.50.0000.02215.18
5.0.40.0000.02415.18
5.0.30.0000.03215.18
5.0.20.0030.01715.18
5.0.10.0030.01715.18
5.0.00.0030.03815.18
4.4.90.0030.01615.18
4.4.80.0030.01315.18
4.4.70.0090.00915.18
4.4.60.0060.01515.18
4.4.50.0030.01415.18
4.4.40.0000.03415.18
4.4.30.0000.01715.18
4.4.20.0000.01615.18
4.4.10.0030.01315.18
4.4.00.0000.02915.18
4.3.110.0000.01615.18
4.3.100.0060.01115.18
4.3.90.0000.01515.18
4.3.80.0030.02315.18
4.3.70.0150.01515.18
4.3.60.0000.03215.18
4.3.50.0000.01615.18
4.3.40.0000.04215.18
4.3.30.0040.01815.18
4.3.20.0030.01515.18
4.3.10.0000.01615.18
4.3.00.0070.01415.18

preferences:
44.67 ms | 400 KiB | 5 Q