3v4l.org

run code in 300+ PHP versions simultaneously
<?php $node = array( 'a' => 1, 'b' => 2, ); $node = (object) $node; var_dump($node); print_r($node->a == 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hYMNs
function name:  (null)
number of ops:  12
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        CAST                                          8  ~2      !0
          2        ASSIGN                                                   !0, ~2
    9     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'print_r'
          7        FETCH_OBJ_R                                      ~5      !0, 'a'
          8        IS_EQUAL                                         ~6      ~5, 1
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.6 ms | 1385 KiB | 17 Q