3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ 0 => '2018-08-21 10:00:00', 1 => '2018-08-28 10:00:00', 2 => '2018-09-04 10:00:00', 3 => '2018-09-11 10:00:00', 4 => '2018-09-18 10:00:00', ]; $array2 = [ '0' => '2018-08-21 10:00:00', '1' => '2018-08-28 10:00:00', '2' => '2018-09-04 10:00:00', '3' => '2018-09-11 10:00:00', '4' => '2018-09-18 10:00:00', ]; $diff = array_diff($array1, $array2); var_dump($array1, $array2, $diff);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(19) "2018-08-21 10:00:00" [1]=> string(19) "2018-08-28 10:00:00" [2]=> string(19) "2018-09-04 10:00:00" [3]=> string(19) "2018-09-11 10:00:00" [4]=> string(19) "2018-09-18 10:00:00" } array(5) { [0]=> string(19) "2018-08-21 10:00:00" [1]=> string(19) "2018-08-28 10:00:00" [2]=> string(19) "2018-09-04 10:00:00" [3]=> string(19) "2018-09-11 10:00:00" [4]=> string(19) "2018-09-18 10:00:00" } array(0) { }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
82.03 ms | 402 KiB | 8 Q