3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.39 ms | 1397 KiB | 13 Q