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); $f = function()use(&$howlong){ $howlong = "right now ..."; bla( $howlong ); }; echo $howlong,"\n"; return $f; } blee()();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZMekc
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     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/ZMekc
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/ZMekc
function name:  blee
number of ops:  11
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        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZMekc%3A11%240'
          5        BIND_LEXICAL                                             ~4, !0
          6        ASSIGN                                                   !1, ~4
   15     7        ECHO                                                     !0
          8        ECHO                                                     '%0A'
   16     9      > RETURN                                                   !1
   17    10*     > RETURN                                                   null

End of function blee

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

End of function %00%7Bclosure%7D%2Fin%2FZMekc%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1398 KiB | 16 Q