3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x; function __construct($num=null) { $this->x = $num; } } $o = new Test($a=2); var_dump($GLOBALS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kNXeJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Test'
          1        ASSIGN                                           ~3      !1, 2
          2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    9     5        INIT_FCALL                                               'var_dump'
          6        FETCH_R                      global              ~6      'GLOBALS'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1386 KiB | 15 Q