3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { public function func():int{return "asdasd";} }; $res = $a->func(); echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CoS8E
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $res
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
    7     4        INIT_METHOD_CALL                                         !0, 'func'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    8     7        ECHO                                                     !1
          8      > RETURN                                                   1

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

End of function func

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.92 ms | 1393 KiB | 13 Q