3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ans = strpos ( "foo" , "bar" ) ; print "ans: " . $ans . "<br />\n" ; if ( $ans ){ }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/X9ofQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ans
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 'foo'
          2        SEND_VAL                                                 'bar'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        CONCAT                                           ~3      'ans%3A+', !0
          6        CONCAT                                           ~4      ~3, '%3Cbr+%2F%3E%0A'
          7        ECHO                                                     ~4
    4     8      > JMPZ                                                     !0, ->9
    5     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.23 ms | 1398 KiB | 15 Q