3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.98 ms | 1009 KiB | 14 Q