3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(2=>"kaks", 3=>"kolme"); dump($test); if(isset($test["2"])){ echo $test[2]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/IQ2Ln
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL_BY_NAME                                       'dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    5     4        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 2
          5      > JMPZ                                                     ~3, ->8
    6     6    >   FETCH_DIM_R                                      ~4      !0, 2
          7        ECHO                                                     ~4
    7     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1392 KiB | 13 Q