3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Copied from tests/_support/Commands/Foobar.php $template = "<?php use Config\App; use CodeIgniter\CLI\CLI; return [ 'foo' => 'The command will use this as foo.', 'bar' => 'The command will use this as bar.', 'baz' => 'The baz is here.', 'bas' => CLI::color('bas', 'green') . (new App())->baseURL, ]; "; preg_match( '/(?P<imports>(?:^use [^;]+;$\n?)+)/m', $template, $match ); var_dump($match); // empty 'imports'
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(41) "use Config\App; use CodeIgniter\CLI\CLI; " ["imports"]=> string(41) "use Config\App; use CodeIgniter\CLI\CLI; " [1]=> string(41) "use Config\App; use CodeIgniter\CLI\CLI; " }

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