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); reset($data); $key = key(current($data)); echo end(explode('\0', $key));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LFWtH
function name:  (null)
number of ops:  26
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                                                 
    9     7        INIT_FCALL                                               'reset'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
   10    10        INIT_FCALL                                               'key'
         11        INIT_FCALL                                               'current'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !1, $9
   12    17        INIT_FCALL                                               'end'
         18        INIT_FCALL                                               'explode'
         19        SEND_VAL                                                 '%5C0'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
         22        SEND_VAR_NO_REF                               0          $11
         23        DO_ICALL                                         $12     
         24        ECHO                                                     $12
         25      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.99 ms | 1386 KiB | 25 Q