3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 'c'; echo $a ?? 'b'."\n"; echo $a ?? $b ?? $c ?? 'd';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fv3HC
function name:  (null)
number of ops:  12
compiled vars:  !0 = $c, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'c'
    4     1        COALESCE                                         ~4      !1
          2        QM_ASSIGN                                        ~4      'b%0A'
          3        ECHO                                                     ~4
    5     4        COALESCE                                         ~5      !1
          5        COALESCE                                         ~6      !2
          6        COALESCE                                         ~7      !0
          7        QM_ASSIGN                                        ~7      'd'
          8        QM_ASSIGN                                        ~6      ~7
          9        QM_ASSIGN                                        ~5      ~6
         10        ECHO                                                     ~5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.5 ms | 1397 KiB | 13 Q