3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1392 KiB | 13 Q