3v4l.org

run code in 500+ PHP versions simultaneously
<?php $repl = array(1 =>"OK", 2 => "nOK", 3 => "Warning", 4 => "Other"); $myarray = array(1,2,3,4); $new = str_replace($myarray,$repl, $myarray); var_dump($new);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(2) "OK" [1]=> string(3) "nOK" [2]=> string(7) "Warning" [3]=> string(5) "Other" }

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:
41.54 ms | 1459 KiB | 4 Q