3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('qwe','das'); foreach ( array( 'key_to_validate', 'another_one' ) as $key ) { echo trim($array[$key]); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "key_to_validate" in /in/r9mDP on line 5 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/r9mDP on line 5 Warning: Undefined array key "another_one" in /in/r9mDP on line 5 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /in/r9mDP on line 5

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:
38.03 ms | 402 KiB | 8 Q