3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} var_dump( $o = (object) array( "0*\0bar" => 1, "\0Foo\0baz" => 2, ) ); function bar(Foo $foo) { var_dump($foo); } bar($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hAf7F
function name:  (null)
number of ops:  9
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
    6     1        CAST                                          8  ~1      <array>
    5     2        ASSIGN                                           ~2      !0, ~1
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
   16     5        INIT_FCALL                                               'bar'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hAf7F
function name:  bar
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   14     4      > RETURN                                                   null

End of function bar

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1397 KiB | 16 Q