3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DUPA = array('hehe' => 'asdf'); defined(DUPA['hehe']) ? $m = 'tak' : $m = "nie"; echo $m;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQs10
function name:  (null)
number of ops:  15
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'DUPA', <array>
    5     1        INIT_FCALL                                               'defined'
          2        FETCH_CONSTANT                                   ~1      'DUPA'
          3        FETCH_DIM_R                                      ~2      ~1, 'hehe'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->10
          7    >   ASSIGN                                           ~4      !0, 'tak'
          8        QM_ASSIGN                                        ~5      ~4
          9      > JMP                                                      ->12
         10    >   ASSIGN                                           ~6      !0, 'nie'
         11        QM_ASSIGN                                        ~5      ~6
         12    >   FREE                                                     ~5
    6    13        ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.29 ms | 939 KiB | 16 Q