3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retrieveEvent() { //return "red"; return false; } if (!$eventModel = retrieveEvent()) { echo "EventModel assigned false" . PHP_EOL; } else { var_dump($eventModel); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMR50
function name:  (null)
number of ops:  11
compiled vars:  !0 = $eventModel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'retrieveevent'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                           ~2      !0, $1
          3        BOOL_NOT                                         ~3      ~2
          4      > JMPZ                                                     ~3, ->7
    9     5    >   ECHO                                                     'EventModel+assigned+false%0A'
          6      > JMP                                                      ->10
   11     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   12    10    > > RETURN                                                   1

Function retrieveevent:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMR50
function name:  retrieveEvent
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <false>
    6     1*     > RETURN                                                   null

End of function retrieveevent

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.93 ms | 1389 KiB | 16 Q