3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingDoer { protected $things; public function __construct(string $string = NULL, int $int = 0, Throwable $throwable = NULL) { $this->things[] = $string; $this->things[] = $int; $this->things[] = $throwable; } public function do() { print_r($this->things); } } $thing = new ThingDoer(); $thing->do();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bsik0
function name:  (null)
number of ops:  6
compiled vars:  !0 = $thing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'ThingDoer'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'do'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class ThingDoer:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bsik0
function name:  __construct
number of ops:  13
compiled vars:  !0 = $string, !1 = $int, !2 = $throwable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      0
          2        RECV_INIT                                        !2      null
    6     3        FETCH_OBJ_W                                      $3      'things'
          4        ASSIGN_DIM                                               $3
          5        OP_DATA                                                  !0
    7     6        FETCH_OBJ_W                                      $5      'things'
          7        ASSIGN_DIM                                               $5
          8        OP_DATA                                                  !1
    8     9        FETCH_OBJ_W                                      $7      'things'
         10        ASSIGN_DIM                                               $7
         11        OP_DATA                                                  !2
    9    12      > RETURN                                                   null

End of function __construct

Function do:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bsik0
function name:  do
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_OBJ_R                                      ~0      'things'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function do

End of class ThingDoer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1396 KiB | 15 Q