3v4l.org

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

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6v5EX
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      
    7     1        INIT_FCALL_BY_NAME                                       'DoThis'
          2        DO_FCALL                                      0  $1      
          3        ECHO                                                     $1
   10     4        DECLARE_FUNCTION                                         'dothis'
   13     5        DECLARE_FUNCTION                                         'dothat'
   18     6      > RETURN                                                   null

End of function myfunc

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

End of function %00dothis%2Fin%2F6v5EX%3A10%240

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

End of function %00dothat%2Fin%2F6v5EX%3A13%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.17 ms | 1399 KiB | 14 Q