3v4l.org

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

Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3DS2q
function name:  bla
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_DIM_IS                                     ~2      !0, 'foo'
          2        COALESCE                                         ~3      ~2
          3        QM_ASSIGN                                        ~3      0
          4        CAST                                          4  ~4      ~3
          5        VERIFY_RETURN_TYPE                                       ~4
          6      > RETURN                                                   ~4
    8     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.41 ms | 1405 KiB | 17 Q