3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array( 0 => 4413, 1 => 4414, 2 => 13020, 3 => 13022, 4 => 4801, 5 => 4802, 6 => 4809, 7 => 11204, 8 => 14201, 9 => 14202, 10 => 14203, 11 => 12303, 12 => 12304, 13 => 10113, 14 => 10302, 15 => 10307, 16 => 4, 17 => 10404, 18 => 10502, 19 => 10701, 20 => 10704, 21 => 10801, 22 => 11006, 23 => 11201, 24 => 11305, 25 => 11310, 26 => 11605, 27 => 11702, 28 => 11705, 29 => 11707, 30 => 11803 ); $array_2 = array( 0 => 4413, 1 => 4414, 2 => 13020, 3 => 13022, 4 => 4801, 5 => 4802, 6 => 4809, 7 => 11204, 8 => 14201, 9 => 14202, 10 => 14203, 11 => 12303, 12 => 12304, 13 => 10113, 14 => 10302, 15 => 10307, 16 => 4, 17 => 10404, 18 => 10502, 19 => 10701, 20 => 10704, 21 => 10801, 22 => 11006, 23 => 11201, 24 => 11305, 25 => 11310, 26 => 11605, 27 => 11702, 28 => 11705, 29 => 11707, 30 => 11803, 31 => 4415, 32 => 4416, 33 => 4417, 34 => 4418 ); echo "array_1 does not contain any values not present in array_2:\n"; print_r(array_diff($array_1, $array_2)); echo "\narray_2 contains 4 values that are not present in array_1:\n"; print_r(array_diff($array_2, $array_1));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
array_1 does not contain any values not present in array_2: Array ( ) array_2 contains 4 values that are not present in array_1: Array ( [31] => 4415 [32] => 4416 [33] => 4417 [34] => 4418 )
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
189.81 ms | 407 KiB | 5 Q