3v4l.org

run code in 500+ PHP versions simultaneously
<?php $var = " Buy Some Dude"; var_export(substr($var, 0, strpos($var, " By")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f7ue2
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '+Buy+Some+Dude'
    4     1        INIT_FCALL                                                   'var_export'
          2        FRAMELESS_ICALL_2                strpos              ~2      !0, '+By'
          3        FRAMELESS_ICALL_3                substr              ~3      !0, 0
          4        OP_DATA                                                      ~2
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.03 ms | 1985 KiB | 14 Q