3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.64 ms | 1397 KiB | 13 Q