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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u0fvI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, 'Yes+yes'
   22     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/u0fvI
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
   17     6      > RETURN                                                   null

End of function myfunc

Function %00dothis%2Fin%2Fu0fvI%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u0fvI
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%2Fu0fvI%3A6%240

Function %00dothat%2Fin%2Fu0fvI%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u0fvI
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%2Fu0fvI%3A9%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.94 ms | 1399 KiB | 14 Q