3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($var ?? ''); var_dump($var->prop1?->prop2 ?? '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RlDjK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        COALESCE                                         ~1      !0
          2        QM_ASSIGN                                        ~1      ''
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_IS                                     ~3      !0, 'prop1'
          7        JMP_NULL                                         ~4      ~3
          8        FETCH_OBJ_IS                                     ~4      ~3, 'prop2'
          9        COALESCE                                         ~5      ~4
         10        QM_ASSIGN                                        ~5      ''
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.9 ms | 1394 KiB | 15 Q