3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla( $span ){ echo "blah ",$span,"\n"; } function blee(){ $howlong = 'for here and now ...'; call_user_func("bla",$howlong); $howlong = 'for here and right now ...'; $f = function()use($howlong){ bla( $howlong ); }; return $f; } blee()();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UXGdS
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'blee'
          1        DO_FCALL                                      0  $0      
          2        INIT_DYNAMIC_CALL                                        $0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UXGdS
function name:  bla
number of ops:  5
compiled vars:  !0 = $span
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     'blah+'
          2        ECHO                                                     !0
          3        ECHO                                                     '%0A'
    5     4      > RETURN                                                   null

End of function bla

Function blee:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UXGdS
function name:  blee
number of ops:  10
compiled vars:  !0 = $howlong, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'for+here+and+now+...'
    9     1        INIT_FCALL                                               'bla'
          2        SEND_USER                                                !0
          3        DO_FCALL                                      0          
   11     4        ASSIGN                                                   !0, 'for+here+and+right+now+...'
   12     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FUXGdS%3A12%240'
          6        BIND_LEXICAL                                             ~5, !0
          7        ASSIGN                                                   !1, ~5
   15     8      > RETURN                                                   !1
   16     9*     > RETURN                                                   null

End of function blee

Function %00%7Bclosure%7D%2Fin%2FUXGdS%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UXGdS
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $howlong
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   BIND_STATIC                                              !0
   13     1        INIT_FCALL                                               'bla'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   14     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FUXGdS%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.27 ms | 1403 KiB | 16 Q