3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ns01 { class cl01 { const ONE = 1 +1; const ONE2 = [1, 2 ,3]; } } namespace ns02 { class cl02 { const TWO = \ns01\cl01::ONE; function test($tmp = \ns01\cl01::ONE + self::TWO + 2) { return 1 + \ns01\cl01::ONE; } } $tmp = new cl02(); $tmp->test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iur0o
function name:  (null)
number of ops:  6
compiled vars:  !0 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'ns02%5Ccl02'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
   22     5      > RETURN                                                   1

Class ns01\cl01: [no user functions]
Class ns02\cl02:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iur0o
function name:  test
number of ops:  3
compiled vars:  !0 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV_INIT                                        !0      <const ast>
   16     1      > RETURN                                                   3
   17     2*     > RETURN                                                   null

End of function test

End of class ns02\cl02.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1393 KiB | 13 Q