3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "ab"; $s1 = "cAbfAbe"; $s2 = stristr($s1,$s); echo $s2."\n"; 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/Ef2Si
function name:  (null)
number of ops:  25
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        CONCAT                                           ~7      !2, '%0A'
          8        ECHO                                                     ~7
    7     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 0
         12        COUNT                                            ~8      !0
         13        ADD                                              ~9      ~8, 1
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        ECHO                                                     $10
    8    17        ECHO                                                     '%0A'
    9    18        INIT_FCALL                                               'str_ireplace'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $11     
         23        ECHO                                                     $11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1395 KiB | 19 Q