3v4l.org

run code in 300+ PHP versions simultaneously
<?php class World { public function ___construct($id,$worldname) { $this->id = $id; $this->worldname = $worldname; } var $id = ""; var $worldname = ""; } class World2 { public function __construct($id,$worldname) { $this->id = $id; $this->worldname = $worldname; } var $id = ""; var $worldname = ""; } $a = new World(1, 2); $b = new World2(3, 4); var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2oRoL
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $2      'World'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   25     5        NEW                                              $5      'World2'
          6        SEND_VAL_EX                                              3
          7        SEND_VAL_EX                                              4
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   27    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function ___construct

End of class World.

Class World2:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2oRoL
function name:  __construct
number of ops:  7
compiled vars:  !0 = $id, !1 = $worldname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        ASSIGN_OBJ                                               'id'
          3        OP_DATA                                                  !0
   18     4        ASSIGN_OBJ                                               'worldname'
          5        OP_DATA                                                  !1
   19     6      > RETURN                                                   null

End of function __construct

End of class World2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1396 KiB | 15 Q