3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="this is school of sachin". $pattern="sch"; echo strpos($a,$pattern);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EjTFf
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                           ~2      !1, 'sch'
          1        CONCAT                                           ~3      'this+is+school+of+sachin', ~2
    5     2        ASSIGN                                                   !0, ~3
    9     3        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ECHO                                                     $5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160 ms | 1394 KiB | 15 Q