3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Verification { public function __construct(private string $id) {} public function getId(): string { return $this->id; } } $items = [new Verification('1-2-3-4')]; $foo = Verification::getId(...);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G8va8
function name:  (null)
number of ops:  9
compiled vars:  !0 = $items, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Verification'
          1        SEND_VAL_EX                                              '1-2-3-4'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~4      $2
          4        ASSIGN                                                   !0, ~4
   15     5        INIT_STATIC_METHOD_CALL                                  'Verification', 'getId'
          6        ZEND_CALLABLE_CONVERT                            ~6      
          7        ASSIGN                                                   !1, ~6
          8      > RETURN                                                   1

Class Verification:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G8va8
function name:  __construct
number of ops:  4
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'id'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function __construct

Function getid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G8va8
function name:  getId
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'id'
          1        VERIFY_RETURN_TYPE                                       ~0
          2      > RETURN                                                   ~0
   10     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function getid

End of class Verification.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.83 ms | 995 KiB | 13 Q