3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'abc'; $findme = 'a'; $pos = strpos($mystring, $findme); print "answer finding a in abc: " . $pos . "<br />" ; $mystring = 'abc'; $findme = 'z'; $pos = strpos($mystring, $findme); print "answer finding z in abc: " . $pos . "<br />" ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0DsOL
function name:  (null)
number of ops:  21
compiled vars:  !0 = $mystring, !1 = $findme, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abc'
    4     1        ASSIGN                                                   !1, 'a'
    5     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        CONCAT                                           ~7      'answer+finding+a+in+abc%3A+', !2
          8        CONCAT                                           ~8      ~7, '%3Cbr+%2F%3E'
          9        ECHO                                                     ~8
    9    10        ASSIGN                                                   !0, 'abc'
   10    11        ASSIGN                                                   !1, 'z'
   11    12        INIT_FCALL                                               'strpos'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !2, $11
   12    17        CONCAT                                           ~13     'answer+finding+z+in+abc%3A+', !2
         18        CONCAT                                           ~14     ~13, '%3Cbr+%2F%3E'
         19        ECHO                                                     ~14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1386 KiB | 15 Q