3v4l.org

run code in 300+ PHP versions simultaneously
<?php function somefunc() { return 23; } if($int = somefunc() && $int == 23) { echo 'Equal'; } else { echo 'Not Equal'; } echo "\n"; var_dump($int);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
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: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/FlE6u
function name:  (null)
number of ops:  15
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'somefunc'
          1        DO_FCALL                                      0  $1      
          2      > JMPZ_EX                                          ~2      $1, ->5
          3    >   IS_EQUAL                                         ~3      !0, 23
          4        BOOL                                             ~2      ~3
          5    >   ASSIGN                                           ~4      !0, ~2
          6      > JMPZ                                                     ~4, ->9
    8     7    >   ECHO                                                     'Equal'
    7     8      > JMP                                                      ->10
   10     9    >   ECHO                                                     'Not+Equal'
   12    10    >   ECHO                                                     '%0A'
   13    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function somefunc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
248.59 ms | 1012 KiB | 15 Q