3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.02 ms | 1394 KiB | 15 Q