3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla($howlong){ echo "blah $howlong ...\n"; } function blee($c){ return $c(); } $now = 'for here and now'; $f = function()use($now){ bla($now); }; blee( $f ); blee("bla");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g5281
function name:  (null)
number of ops:  11
compiled vars:  !0 = $now, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'for+here+and+now'
   13     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fg5281%3A13%240'
          2        BIND_LEXICAL                                             ~3, !0
          3        ASSIGN                                                   !1, ~3
   17     4        INIT_FCALL                                               'blee'
          5        SEND_VAR                                                 !1
          6        DO_FCALL                                      0          
   18     7        INIT_FCALL                                               'blee'
          8        SEND_VAL                                                 'bla'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g5281
function name:  bla
number of ops:  6
compiled vars:  !0 = $howlong
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      'blah+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '+...%0A'
          4        ECHO                                                     ~1
    5     5      > 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/g5281
function name:  blee
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0  $1      
          3      > RETURN                                                   $1
    9     4*     > RETURN                                                   null

End of function blee

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

End of function %00%7Bclosure%7D%2Fin%2Fg5281%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.83 ms | 1399 KiB | 16 Q