3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [123]; unset($array[0]); if($array === []){ // then $array[] = "x"; // will result in assert([0 => "x"] === $array); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/5c4fE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        UNSET_DIM                                                !0, 0
    6     2        IS_IDENTICAL                                             !0, <array>
          3      > JMPZ                                                     ~2, ->12
    7     4    >   ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'x'
    8     6        ASSERT_CHECK                                             
          7        INIT_FCALL                                               'assert'
          8        IS_IDENTICAL                                     ~4      !0, <array>
          9        SEND_VAL                                                 ~4
         10        SEND_VAL                                                 'assert%28%5B0+%3D%3E+%27x%27%5D+%3D%3D%3D+%24array%29'
         11        DO_ICALL                                                 
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.56 ms | 998 KiB | 14 Q