3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master_array[] = (array)json_decode('{"results":[{"cat_id":2,"cat_name":"bicycle repairs"}]}', true); $master_array[] = (array)json_decode(null, true); $master_array[] = (array)json_decode('{"results":[{"cat_id":"4","cat_name":"plumber"},{"cat_id":"5","cat_name":"Electrician"},{"cat_id":"6","cat_name":"vet"}]}', true); var_export(array_merge(...array_column($master_array, 'results')));
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/BVFCa on line 3 array ( 0 => array ( 'cat_id' => 2, 'cat_name' => 'bicycle repairs', ), 1 => array ( 'cat_id' => '4', 'cat_name' => 'plumber', ), 2 => array ( 'cat_id' => '5', 'cat_name' => 'Electrician', ), 3 => array ( 'cat_id' => '6', 'cat_name' => 'vet', ), )

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:
161.29 ms | 406 KiB | 5 Q