3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class{ }; $abc = function() use ($a){ print_r(gettype($a)); }; $abc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/seUBP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $abc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $3      $2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    8     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FseUBP%3A8%241'
          5        BIND_LEXICAL                                             ~6, !0
          6        ASSIGN                                                   !1, ~6
   13     7        INIT_DYNAMIC_CALL                                        !1
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FseUBP%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/seUBP
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   BIND_STATIC                                              !0
   10     1        INIT_FCALL                                               'print_r'
          2        GET_TYPE                                         ~1      !0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FseUBP%3A8%241

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.48 ms | 1395 KiB | 15 Q