3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Advert { protected $id; protected $headline; protected $text; protected $url; protected $billing; protected $remaining; protected $total; public function __construct(array $data) { echo "<pre>" . print_r(get_class_vars($this), true) . "</pre>"; } } $data = array(); $x = new Advert($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bQJdD
function name:  (null)
number of ops:  6
compiled vars:  !0 = $data, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ASSIGN                                                   !0, <array>
   19     1        NEW                                              $3      'Advert'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
          5      > RETURN                                                   1

Class Advert:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bQJdD
function name:  __construct
number of ops:  13
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'get_class_vars'
          3        FETCH_THIS                                       ~1      
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      '%3Cpre%3E', $3
         10        CONCAT                                           ~5      ~4, '%3C%2Fpre%3E'
         11        ECHO                                                     ~5
   15    12      > RETURN                                                   null

End of function __construct

End of class Advert.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.14 ms | 1395 KiB | 17 Q