3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TEST', 123); echo TEST; $str = 'TEST'; echo eval($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gkRut
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TEST'
          2        SEND_VAL                                                 123
          3        DO_ICALL                                                 
    3     4        FETCH_CONSTANT                                   ~2      'TEST'
          5        ECHO                                                     ~2
    5     6        ASSIGN                                                   !0, 'TEST'
    6     7        INCLUDE_OR_EVAL                                  $4      !0, EVAL
          8        ECHO                                                     $4
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.19 ms | 1394 KiB | 15 Q