3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['true', true, 'false', false, 1, '1', 0, '0', new stdClass()]; var_dump(filter_var($data, FILTER_VALIDATE_BOOLEAN, FILTER_REQUIRE_ARRAY));
Output for git.master, git.master_jit, rfc.property-hooks
array(9) { [0]=> bool(true) [1]=> bool(true) [2]=> bool(false) [3]=> bool(false) [4]=> bool(true) [5]=> bool(true) [6]=> bool(false) [7]=> bool(false) [8]=> bool(false) }

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:
28.84 ms | 401 KiB | 8 Q