3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DUPA = array('hehe' => 'asdf'); defined(DUPA) ? $m = 'tak' : $m = "nie"; echo $m;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YH10E
function name:  (null)
number of ops:  14
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        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->9
          6    >   ASSIGN                                           ~3      !0, 'tak'
          7        QM_ASSIGN                                        ~4      ~3
          8      > JMP                                                      ->11
          9    >   ASSIGN                                           ~5      !0, 'nie'
         10        QM_ASSIGN                                        ~4      ~5
         11    >   FREE                                                     ~4
    6    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.88 ms | 1394 KiB | 15 Q