3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Book { public $pages; public function __construct(Page ...$pages) { $this->pages = $pages; } } $book = new Book(); var_dump($book->pages);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/39rmk
function name:  (null)
number of ops:  8
compiled vars:  !0 = $book
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Book'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~4      !0, 'pages'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function __construct

End of class Book.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.49 ms | 1394 KiB | 15 Q