3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public $baz; } var_dump((object)array(1, 2)); $f = new Foo(); list($f->bar, $f->baz) = (object)array(1, 2); var_dump($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZUpn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          8  ~1      <array>
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    9     4        NEW                                              $3      'Foo'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   10     7        CAST                                          8  ~6      <array>
          8        FETCH_LIST_R                                     $7      ~6, 0
          9        ASSIGN_OBJ                                               !0, 'bar'
         10        OP_DATA                                                  $7
         11        FETCH_LIST_R                                     $9      ~6, 1
         12        ASSIGN_OBJ                                               !0, 'baz'
         13        OP_DATA                                                  $9
         14        FREE                                                     ~6
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.26 ms | 1394 KiB | 15 Q