3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MyFunc($content) { // The Nested Functions function DoThis() { echo 'Yeah!'; } function DoThat() { echo 'Nah!'; } echo DoThis(); } // The Main Script $string = 'Yes yes'; //echo MyFunc($string); echo DoThat();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U4tOT
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, 'Yes+yes'
   25     1        INIT_FCALL_BY_NAME                                       'DoThat'
          2        DO_FCALL                                      0  $2      
          3        ECHO                                                     $2
          4      > RETURN                                                   1

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U4tOT
function name:  MyFunc
number of ops:  7
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    6     1        DECLARE_FUNCTION                                         'dothis'
    9     2        DECLARE_FUNCTION                                         'dothat'
   13     3        INIT_FCALL_BY_NAME                                       'DoThis'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
   18     6      > RETURN                                                   null

End of function myfunc

Function %00dothis%2Fin%2FU4tOT%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U4tOT
function name:  DoThis
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Yeah%21'
    8     1      > RETURN                                                   null

End of function %00dothis%2Fin%2FU4tOT%3A6%240

Function %00dothat%2Fin%2FU4tOT%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U4tOT
function name:  DoThat
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'Nah%21'
   11     1      > RETURN                                                   null

End of function %00dothat%2Fin%2FU4tOT%3A9%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.58 ms | 1394 KiB | 13 Q