3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode( array ( 'id' => NULL, 'name' => 'Full survey', 'partnerid' => 1, 'questions' => array ( 0 => array ( 'id' => NULL, 'question' => 'What is the answer ?', 'questiontypeid' => 1, 'validtionrules' => 'Validation Rules', 'order' => 1, 'required' => true, 'defaultvalue' => array ( 0 => array ( 'id' => NULL, 'questionid' => NULL, 'answer' => 'This is the answer.', 'value' => 'That\'s a value.', 'order' => 1 ), ), 'isEditing' => true, ), 1 => array ( 'id' => NULL, 'question' => 'What is the second answer ?', 'questiontypeid' => 1, 'validtionrules' => 'Yet Another Validation Rules', 'order' => 2, 'required' => false, 'defaultvalue' => array ( 0 => array ( 'id' => NULL, 'questionid' => NULL, 'answer' => 'This is the second answer.', 'value' => 'That\'s another value.', 'order' => 1 ), ), 'isEditing' => true, ), ), 'access_token' => 'abc', ) );
Output for git.master, git.master_jit, rfc.property-hooks
{"id":null,"name":"Full survey","partnerid":1,"questions":[{"id":null,"question":"What is the answer ?","questiontypeid":1,"validtionrules":"Validation Rules","order":1,"required":true,"defaultvalue":[{"id":null,"questionid":null,"answer":"This is the answer.","value":"That's a value.","order":1}],"isEditing":true},{"id":null,"question":"What is the second answer ?","questiontypeid":1,"validtionrules":"Yet Another Validation Rules","order":2,"required":false,"defaultvalue":[{"id":null,"questionid":null,"answer":"This is the second answer.","value":"That's another value.","order":1}],"isEditing":true}],"access_token":"abc"}

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