3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething($val) { echo 'YES ' . $val . "\n"; } $something_else = 'set'; isset($something) AND doSomething('something'); isset($something_else) AND doSomething('something else');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/K0cRE
function name:  (null)
number of ops:  14
compiled vars:  !0 = $something_else, !1 = $something
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'set'
    9     1        ISSET_ISEMPTY_CV                                 ~3      !1
          2      > JMPZ_EX                                          ~3      ~3, ->7
          3    >   INIT_FCALL                                               'dosomething'
          4        SEND_VAL                                                 'something'
          5        DO_FCALL                                      0  $4      
          6        BOOL                                             ~3      $4
   10     7    >   ISSET_ISEMPTY_CV                                 ~5      !0
          8      > JMPZ_EX                                          ~5      ~5, ->13
          9    >   INIT_FCALL                                               'dosomething'
         10        SEND_VAL                                                 'something+else'
         11        DO_FCALL                                      0  $6      
         12        BOOL                                             ~5      $6
         13    > > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K0cRE
function name:  doSomething
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      'YES+', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
    5     4      > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1398 KiB | 15 Q