3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$string = "-Lorem Ipsum"; // 1 //$string = "--Lorem Ipsum"; // 2 //$string = "---Lorem Ipsum"; // 3 //$string = "--Lorem-Ipsum"; // 2 echo substr_count($string,'-');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Vnn9
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'substr_count'
          1        SEND_VAR                                                 !0
          2        SEND_VAL                                                 '-'
          3        DO_ICALL                                         $1      
          4        ECHO                                                     $1
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1393 KiB | 15 Q