3v4l.org

run code in 300+ PHP versions simultaneously
<?php $notification = array( 'test' => ' TST', 'tt ' => 'TST ' ); var_dump($notification); array_walk($notification, function (&$value) { return $value = trim($value); }); var_dump($notification);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["test"]=> string(4) " TST" ["tt "]=> string(4) "TST " } array(2) { ["test"]=> string(3) "TST" ["tt "]=> string(3) "TST" }

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