3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "0By"; echo strstr($s, 'By', true) ?: $s; // should be "0", but it is "0By" because of the loose ternary check
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4kYeU
function name:  (null)
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '0By'
    4     1        FRAMELESS_ICALL_3                strstr              ~2      !0, 'By'
          2        OP_DATA                                                      <true>
          3        JMP_SET                                              ~3      ~2, ->5
          4        QM_ASSIGN                                            ~3      !0
          5        ECHO                                                         ~3
    5     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.32 ms | 1990 KiB | 13 Q