3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(new ArrayObject(['1'])); echo json_encode([]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5JgEV
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        NEW                                              $0      'ArrayObject'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.73 ms | 1394 KiB | 15 Q