3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new DateTime('now', new DateTimeZone('UTC')); $date = $data->format('Y-m-d H:i:s'); $name = 'Acompanhamento'; $k = null; $log = json_decode($k,true); $log[] = array('in_'.$name => $date); $k = json_encode($log); var_dump($log); var_dump($k); print_r(json_decode($k,true));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/tbFHl on line 8 array(1) { [0]=> array(1) { ["in_Acompanhamento"]=> string(19) "2015-11-16 19:35:23" } } string(45) "[{"in_Acompanhamento":"2015-11-16 19:35:23"}]" Array ( [0] => Array ( [in_Acompanhamento] => 2015-11-16 19:35:23 ) )

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:
48.15 ms | 402 KiB | 8 Q