3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 5; public $b = 'b'; public $c = null; protected $d = "d"; private $e = "eeeee"; public function __construct() { $this->c = new \StdClass(); $this->c->a = 5; $this->c->b = "q"; } } echo serialize(new A);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M3h7u
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'serialize'
          1        NEW                                              $0      'A'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M3h7u
function name:  __construct
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'c'
          3        OP_DATA                                                  $1
   18     4        FETCH_OBJ_W                                      $3      'c'
          5        ASSIGN_OBJ                                               $3, 'a'
          6        OP_DATA                                                  5
   19     7        FETCH_OBJ_W                                      $5      'c'
          8        ASSIGN_OBJ                                               $5, 'b'
          9        OP_DATA                                                  'q'
   20    10      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.31 ms | 1395 KiB | 15 Q