3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = function() { p($this->name); }; class F { private $name = 'F'; } $f->call(new F);
based on 5mo2j
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/roHgD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FroHgD0x7f3f376f402d'
   5     1        ASSIGN                                                   !0, ~1
   7     2        NOP                                                      
  11     3        INIT_METHOD_CALL                                         !0, 'call'
         4        NEW                                              $4      :-3
         5        DO_FCALL                                      0          
         6        SEND_VAR_NO_REF                               0          $4
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FroHgD0x7f3f376f402d:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/roHgD
function name:  {closure}
number of ops:  5
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_FCALL_BY_NAME                                       'p'
         1        FETCH_OBJ_FUNC_ARG                               $0      'name'
         2        SEND_VAR_EX                                              $0
         3        DO_FCALL                                      0          
   5     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FroHgD0x7f3f376f402d

Class F: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0