3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $bar = 42; } $obj = new foo; $propname="foobar"; $a = (array) $obj; var_dump($a); var_dump("a\0k"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ipn7m
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $propname, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $3      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    6     3        ASSIGN                                                   !1, 'foobar'
    7     4        CAST                                          7  ~7      !0
          5        ASSIGN                                                   !2, ~7
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 'a%00k'
         11        DO_ICALL                                                 
   10    12      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.53 ms | 1394 KiB | 15 Q