3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.18 ms | 1393 KiB | 13 Q