3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5); if(null !== JSON_PRETTY_PRINT && 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 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/M0uvI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'defined'
          2        SEND_VAL                                                 128
          3        DO_ICALL                                         $2      
          4        BOOL                                             ~3      $2
          5      > JMPZ                                                     ~3, ->12
    5     6    >   INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 128
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
    6    11        ECHO                                                     128
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.44 ms | 1394 KiB | 17 Q