3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getArrTest() { $arrTest = array('test' => 'hello'); if (!isset($arrTest['test2'])) { return $arrTest['test2'] = 1; } } var_dump(getArrTest());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvcie
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getarrtest'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function getarrtest:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvcie
function name:  getArrTest
number of ops:  8
compiled vars:  !0 = $arrTest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, 'test2'
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->7
    8     4    >   ASSIGN_DIM                                       ~4      !0, 'test2'
          5        OP_DATA                                                  1
          6      > RETURN                                                   ~4
   11     7    > > RETURN                                                   null

End of function getarrtest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1397 KiB | 16 Q