3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "ab"; $s1 = "cAbfAbe"; $s2 = stristr($s1,$s); echo $s2; echo substr($s2,0,count($s)+1); echo "\n"; echo str_ireplace($s,$s,$s1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F8cqC
function name:  (null)
number of ops:  24
compiled vars:  !0 = $s, !1 = $s1, !2 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ab'
    4     1        ASSIGN                                                   !1, 'cAbfAbe'
    5     2        INIT_FCALL                                               'stristr'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        ECHO                                                     !2
    7     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 0
         11        COUNT                                            ~7      !0
         12        ADD                                              ~8      ~7, 1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        ECHO                                                     $9
    8    16        ECHO                                                     '%0A'
    9    17        INIT_FCALL                                               'str_ireplace'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $10     
         22        ECHO                                                     $10
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.34 ms | 1395 KiB | 19 Q