3v4l.org

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

Class class@anonymous:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MnghI
function name:  get
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   3
    7     1*     > RETURN                                                   null

End of function get

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.21 ms | 1393 KiB | 13 Q