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', ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B6YFK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
    5     1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
   58     4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.67 ms | 1393 KiB | 15 Q