3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sad () { return true; } function song(){ echo "Singing"; } function stop () { echo "Stop"; } function beAwesome () { echo "I'm awsome"; } if (sad() === true) { sad() . stop(); } else { beAwesome(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcEm8
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'sad'
          1        DO_FCALL                                      0  $0      
          2        TYPE_CHECK                                    8          $0
          3      > JMPZ                                                     ~1, ->11
   23     4    >   INIT_FCALL                                               'sad'
          5        DO_FCALL                                      0  $2      
          6        INIT_FCALL                                               'stop'
          7        DO_FCALL                                      0  $3      
          8        CONCAT                                           ~4      $2, $3
          9        FREE                                                     ~4
         10      > JMP                                                      ->13
   26    11    >   INIT_FCALL                                               'beawesome'
         12        DO_FCALL                                      0          
   27    13    > > RETURN                                                   1

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

End of function sad

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

End of function song

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

End of function stop

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

End of function beawesome

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 943 KiB | 18 Q