3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ '1' => [ 'dates' => []], '2' => [ 'dates' => []], '3' => [ 'dates' => []], ]; var_dump(count($myArray), count($myArray, true)); var_dump('All dates are empty: ', 2 * count($myArray) === count($myArray, true)); $myArray = [ '1' => [ 'dates' => ['2']], '2' => [ 'dates' => []], '3' => [ 'dates' => []], ]; var_dump(count($myArray), count($myArray, true)); var_dump('Has NON empty dates: ', 2 * count($myArray) < count($myArray, true));
Output for git.master, git.master_jit, rfc.property-hooks
int(3) int(6) string(21) "All dates are empty: " bool(true) int(3) int(7) string(21) "Has NON empty dates: " bool(true)

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:
98.82 ms | 405 KiB | 5 Q