3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pos = strpos('xyz','a'); echo isset($pos); echo $pos !== true; echo "'$pos'";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hPla4
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 'xyz'
          2        SEND_VAL                                                 'a'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        ISSET_ISEMPTY_CV                                 ~3      !0
          6        ECHO                                                     ~3
    5     7        TYPE_CHECK                                  1014  ~4      !0
          8        ECHO                                                     ~4
    6     9        ROPE_INIT                                     3  ~6      '%27'
         10        ROPE_ADD                                      1  ~6      ~6, !0
         11        ROPE_END                                      2  ~5      ~6, '%27'
         12        ECHO                                                     ~5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1394 KiB | 15 Q