3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _div($params = array(), $content=null) { //$value = preg_replace("/(\d+)-(\d+)-(\d+)\s(\d+):(\d+):(\d+)/", "$1.$2.$3 $4:$5", $value); if(count($params) > 0) { $createParams = array_map(create_function($key, $value, 'return $key."=\'".$value."\'";'), array_keys($params), array_values($params)); $paramsText = implode(" ",$createParams); } return "<div ".$paramsText.">".$content."</div>"; } print _div(array('field' => 'teszt'), 'faszom');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function create_function() in /in/6Ea8M:5 Stack trace: #0 /in/6Ea8M(11): _div(Array, 'faszom') #1 {main} thrown in /in/6Ea8M on line 5
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:
39.23 ms | 401 KiB | 8 Q