3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(get_defined_constants(true)); $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5); if(defined(JSON_PRETTY_PRINT)){ echo json_encode($arr, JSON_PRETTY_PRINT); echo JSON_PRETTY_PRINT; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/bVJOs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'get_defined_constants'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !0, <array>
    7     7        INIT_FCALL                                               'defined'
          8        SEND_VAL                                                 128
          9        DO_ICALL                                         $4      
         10      > JMPZ                                                     $4, ->17
    8    11    >   INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 128
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
    9    16        ECHO                                                     128
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.79 ms | 1394 KiB | 21 Q