3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sad() { return 'nonsense'; } function stop() { return 'please stop'; } function sing() {} function beAwesome() {} // life motto if (sad() == true) { sad().stop(); sing(); } else { beAwesome(); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Zgfa
function name:  (null)
number of ops:  20
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   3     1        NOP                                                      
   4     2        NOP                                                      
   5     3        NOP                                                      
   8     4        INIT_FCALL                                               'sad'
         5        DO_FCALL                                      0  $0      
         6        BOOL                                             ~1      $0
         7      > JMPZ                                                     ~1, ->17
   9     8    >   INIT_FCALL                                               'sad'
         9        DO_FCALL                                      0  $2      
        10        INIT_FCALL                                               'stop'
        11        DO_FCALL                                      0  $3      
        12        CONCAT                                           ~4      $2, $3
        13        FREE                                                     ~4
  10    14        INIT_FCALL                                               'sing'
        15        DO_FCALL                                      0          
        16      > JMP                                                      ->19
  12    17    >   INIT_FCALL                                               'beawesome'
        18        DO_FCALL                                      0          
  14    19    > > RETURN                                                   1

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

End of function sad

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

End of function stop

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

End of function sing

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

End of function beawesome

Generated using Vulcan Logic Dumper, using php 7.3.0