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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.96 ms | 1386 KiB | 21 Q