3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1394 KiB | 15 Q