3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const A = 'a'; } echo A::A; runkit_constant_redefine('A::A', 'b'); echo A::A;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3o6ES
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'a'
   10     1        INIT_FCALL_BY_NAME                                       'runkit_constant_redefine'
          2        SEND_VAL_EX                                              'A%3A%3AA'
          3        SEND_VAL_EX                                              'b'
          4        DO_FCALL                                      0          
   12     5        ECHO                                                     'a'
          6      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.95 ms | 1392 KiB | 13 Q