3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1394 KiB | 17 Q