3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const POP = 'test'; } class B extends A { const POP = 'huu'; } echo B::POP; $b = 'B'; echo <<<EOT Teest $b EOT;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ZTVG
function name:  (null)
number of ops:  6
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'huu'
   16     1        ASSIGN                                                   !0, 'B'
   18     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      'Teest+', !0
          4        ECHO                                                     ~2
   19     5      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.22 ms | 1392 KiB | 13 Q