3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 0 => array ( 'one' => 'A {bad} thing.', 'two' => 'So far so {bad}.', ), 1 => array ( 'one' => 'A {bad} thing, bis.', 'two' => 'So far so {bad}, bis.', ), ); $b = str_replace('{bad}', 'good', $a); echo '$b = '; var_export($b); echo ';', "\n";
Output for rfc.property-hooks, git.master, git.master_jit
Warning: Array to string conversion in /in/tWEWt on line 16 Warning: Array to string conversion in /in/tWEWt on line 16 $b = array ( 0 => 'Array', 1 => 'Array', );

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:
59.73 ms | 2717 KiB | 4 Q