3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "my name is numbre 9000 900 1"; $dictionary = array("my", "name", "is", "number"); foreach(explode(' ',$string) as $wrd){ if(in_array($wrd, $dictionary) || is_numeric($wrd)){ echo $wrd . PHP_EOL; } else { echo $wrd."->wrong" . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
my name is numbre->wrong 9000 900 1

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