3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = null; echo strval($arr['foo']) ?? 'bar';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mX3Pf
function name:  (null)
number of ops:  7
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, null
    5     1        FETCH_DIM_R                                          ~2      !0, 'foo'
          2        CAST                                              6  ~3      ~2
          3        COALESCE                                             ~4      ~3
          4        QM_ASSIGN                                            ~4      'bar'
          5        ECHO                                                         ~4
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
199.71 ms | 2119 KiB | 13 Q