3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => 'john', 1 => 'robinson', 2 => '27-08-1980', 3 => 'football', 4 => 'pizza', ]; $template = "{0} {1} birthday {2} <br /> Hobbie : {3} <br /> favorite : {4}"; $string = reg_replace_callback( '/\{(\d+)\}/', function ($matches) use ($data) { var_dump($matches); return $matches[0]; }, $template ); echo $string;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function reg_replace_callback() in /in/aQLov:13 Stack trace: #0 {main} thrown in /in/aQLov on line 13
Process exited with code 255.

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:
58.76 ms | 401 KiB | 8 Q