3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1398 KiB | 15 Q