3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [1 => 0, // Implicit conversion from float 1.2 to int loses precision 1.2 => 1, // as string, it fits! '1.1' => 2, ];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvHg8
function name:  (null)
number of ops:  5
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                           ~1      0, 1
    5     1        ADD_ARRAY_ELEMENT                                    ~1      1, 1.2
    7     2        ADD_ARRAY_ELEMENT                                    ~1      2, '1.1'
    3     3        ASSIGN                                                       !0, ~1
    8     4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.77 ms | 1469 KiB | 13 Q