3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.21 ms | 1393 KiB | 13 Q