3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = 'This is test22 is a test11 abc test mlk'; echo substr_count($text, 'test',0,0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mn8Rl
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'This+is+test22+is+a+test11+abc+test+mlk'
    5     1        INIT_FCALL                                                   'substr_count'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'test'
          4        SEND_VAL                                                     0
          5        SEND_VAL                                                     0
          6        DO_ICALL                                             $2      
          7        ECHO                                                         $2
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.45 ms | 1708 KiB | 13 Q