3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new stdClass; $a = "HIDDEN\000-TEXT"; $c->$a = 'foo'; echo addcslashes(print_r($c, true), "\0"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEFe1
function name:  (null)
number of ops:  16
compiled vars:  !0 = $c, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN                                                   !1, 'HIDDEN%00-TEXT'
    4     4        ASSIGN_OBJ                                               !0, !1
          5        OP_DATA                                                  'foo'
    5     6        INIT_FCALL                                               'addcslashes'
          7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        SEND_VAL                                                 '%00'
         13        DO_ICALL                                         $8      
         14        ECHO                                                     $8
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.59 ms | 997 KiB | 15 Q