3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('DEMO', "f\0oo"); $r = new ReflectionConstant('DEMO'); echo $r; var_dump( $r->getValue() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Au101
function name:  (null)
number of ops:  15
compiled vars:  !0 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'DEMO'
          2        SEND_VAL                                                     'f%00oo'
          3        DO_ICALL                                                     
    4     4        NEW                                                  $2      'ReflectionConstant'
          5        SEND_VAL_EX                                                  'DEMO'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $2
    5     8        ECHO                                                         !0
    6     9        INIT_FCALL                                                   'var_dump'
         10        INIT_METHOD_CALL                                             !0, 'getValue'
         11        DO_FCALL                                          0  $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.87 ms | 1395 KiB | 15 Q