3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $data = (array) new Foo(); var_dump($data); $key = '\0test\0214'; echo end(explode('\0', $key));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TBs81
function name:  (null)
number of ops:  17
compiled vars:  !0 = $data, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        CAST                                          7  ~4      $2
          3        ASSIGN                                                   !0, ~4
    8     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   10     7        ASSIGN                                                   !1, '%5C0test%5C0214'
   12     8        INIT_FCALL                                               'end'
          9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%5C0'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        SEND_VAR_NO_REF                               0          $8
         14        DO_ICALL                                         $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.59 ms | 1386 KiB | 19 Q