3v4l.org

run code in 300+ PHP versions simultaneously
<?php $infos = [ [ 'activity_type' => 'Professions Libérales', 'speciality' => [ [ 'name' => 'K1', 'position' => 0, ], [ 'name' => 'F1', 'position' => 10, ], [ 'name' => 'K4', 'position' => 20, ], [ 'name' => 'C2', 'position' => 30, ], ] ], [ 'activity_type' => 'Hôpitaux', 'speciality' => [ [ 'name' => 'K1', 'position' => 0, ], [ 'name' => 'F1', 'position' => 10, ], [ 'name' => 'K4', 'position' => 20, ], [ 'name' => 'C2', 'position' => 30, ], ] ] ]; echo json_encode($infos, JSON_PRETTY_PRINT);
Output for git.master, git.master_jit, rfc.property-hooks
[ { "activity_type": "Professions Lib\u00e9rales", "speciality": [ { "name": "K1", "position": 0 }, { "name": "F1", "position": 10 }, { "name": "K4", "position": 20 }, { "name": "C2", "position": 30 } ] }, { "activity_type": "H\u00f4pitaux", "speciality": [ { "name": "K1", "position": 0 }, { "name": "F1", "position": 10 }, { "name": "K4", "position": 20 }, { "name": "C2", "position": 30 } ] } ]

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:
47.74 ms | 403 KiB | 8 Q