3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(trim(' é ', null)); var_dump(trim(' é ', false)); var_dump(trim(' é ', 0)); var_dump(trim(' é ', '')); var_dump(trim('0é0', null)); var_dump(trim('0é0', false)); var_dump(trim('0é0', 0)); var_dump(trim('0é0', ''));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: trim(): Passing null to parameter #2 ($characters) of type string is deprecated in /in/GcnsF on line 2 string(4) " é " string(4) " é " string(4) " é " string(4) " é " Deprecated: trim(): Passing null to parameter #2 ($characters) of type string is deprecated in /in/GcnsF on line 6 string(4) "0é0" string(4) "0é0" string(2) "é" string(4) "0é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:
46.34 ms | 402 KiB | 8 Q