3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Haha { const HEH='wow'; } $nest='HEH'; $nest2='nest'; echo constant('Haha::'.$$nest2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ahtaj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $nest, !1 = $nest2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'HEH'
    8     1        ASSIGN                                                   !1, 'nest'
    9     2        INIT_FCALL                                               'constant'
          3        FETCH_R                      local               ~4      !1
          4        CONCAT                                           ~5      'Haha%3A%3A', ~4
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        ECHO                                                     $6
          8      > RETURN                                                   1

Class Haha: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.52 ms | 1394 KiB | 15 Q