3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.25 ms | 1393 KiB | 13 Q