3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! I am Peter! I am 30! How are you!"; $needle = "I am 30!"; $find = (strpos($string, $needle)); echo $find;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7To67
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $needle, !2 = $find
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello%21+I+am+Peter%21+I+am+30%21+How+are+you%21'
    5     1        ASSIGN                                                   !1, 'I+am+30%21'
    7     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    8     7        ECHO                                                     !2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.08 ms | 1393 KiB | 15 Q