3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenentData = '[{ "surname": "", "name": "Andrea Fiore", "city": "Crocino", "address": "via Emo Mannucci, 2", "telephone": "123456789", "email": "x@gmail.com", "startData": "2019-07-04", "finishData": "2019-07-25", "cardId": "2", "state": "true" }]'; $newMemberData = array( 'surname'=> "newsurname", 'name'=> "name", 'city'=> "city", 'address'=> "address", 'telephone'=> 'phone', 'email'=> 'email', 'startData'=> "startData", 'finishData'=>"finish", 'cardId'=> "cardId", 'state'=> "State", ); $contentDataArray = json_decode($contenentData, true); $contentDataArray[0] = $newMemberData; $contenentData = json_encode($contentDataArray, JSON_PRETTY_PRINT); echo $contenentData;
Output for git.master, git.master_jit, rfc.property-hooks
[ { "surname": "newsurname", "name": "name", "city": "city", "address": "address", "telephone": "phone", "email": "email", "startData": "startData", "finishData": "finish", "cardId": "cardId", "state": "State" } ]

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:
56.75 ms | 401 KiB | 8 Q