3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data['dataArray'] = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5); echo json_encode($data['dataArray'], JSON_PRETTY_PRINT); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bhSt
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'dataArray'
          1        OP_DATA                                                  <array>
    4     2        INIT_FCALL                                               'json_encode'
          3        FETCH_DIM_R                                      ~2      !0, 'dataArray'
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 128
          6        DO_ICALL                                         $3      
          7        ECHO                                                     $3
    5     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.34 ms | 1394 KiB | 15 Q