3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.69 ms | 1392 KiB | 13 Q