3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/AjQWY
function name:  (null)
number of ops:  12
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      > JMPZ                                                     $2, ->11
    5     5    >   INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 128
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    6    10        ECHO                                                     128
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.62 ms | 1394 KiB | 17 Q