3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { public function stuff() { $lamda = new Closure(); var_dump(spl_object_hash($lambda)); } } $x = new Thing(); $x->stuff(); $x->stuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9pQc0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Thing'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'stuff'
          4        DO_FCALL                                      0          
   12     5        INIT_METHOD_CALL                                         !0, 'stuff'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Thing:
Function stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9pQc0
function name:  stuff
number of ops:  10
compiled vars:  !0 = $lamda, !1 = $lambda
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'Closure'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'spl_object_hash'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
    7     9      > RETURN                                                   null

End of function stuff

End of class Thing.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.93 ms | 1395 KiB | 17 Q