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>"; } } $x = new Advert();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRHLg
function name:  (null)
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Advert'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class Advert:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRHLg
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:
152.13 ms | 1399 KiB | 17 Q