3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.57 ms | 2128 KiB | 13 Q