3v4l.org

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

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ld50P
function name:  __construct
number of ops:  7
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    4     1        INIT_FCALL                                               'var_dump'
          2        FETCH_R                      global              ~1      'GLOBALS'
          3        FETCH_DIM_R                                      ~2      ~1, 'a'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.82 ms | 1394 KiB | 15 Q