3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.02 ms | 1392 KiB | 13 Q