3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = NULL; $c = ''; print $a ?? '1b'; print "\n"; print $a ?: '2b'; print "\n"; print $c ?? '1d'; print "\n"; print $c ?: '2d'; print "\n"; print $e ?? '1f'; print "\n"; print $e ?: '2f';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZBAa1
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $c, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, ''
    6     2        COALESCE                                         ~5      !0
          3        QM_ASSIGN                                        ~5      '1b'
          4        ECHO                                                     ~5
    7     5        ECHO                                                     '%0A'
    9     6        JMP_SET                                          ~6      !0, ->8
          7        QM_ASSIGN                                        ~6      '2b'
          8        ECHO                                                     ~6
   10     9        ECHO                                                     '%0A'
   12    10        COALESCE                                         ~7      !1
         11        QM_ASSIGN                                        ~7      '1d'
         12        ECHO                                                     ~7
   13    13        ECHO                                                     '%0A'
   15    14        JMP_SET                                          ~8      !1, ->16
         15        QM_ASSIGN                                        ~8      '2d'
         16        ECHO                                                     ~8
   16    17        ECHO                                                     '%0A'
   18    18        COALESCE                                         ~9      !2
         19        QM_ASSIGN                                        ~9      '1f'
         20        ECHO                                                     ~9
   19    21        ECHO                                                     '%0A'
   21    22        JMP_SET                                          ~10     !2, ->24
         23        QM_ASSIGN                                        ~10     '2f'
         24        ECHO                                                     ~10
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 1442 KiB | 13 Q