3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "i*b mhr 57.5 inb ohr 37.4 inb wand 582,582,569 inb sing 163.9 inb mha 192 inb oha 192"; $slashes = substr_count($string, '/'); var_dump($slashes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fu0Tl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $slashes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'i%2Ab+mhr+57.5%0Ainb+ohr+37.4%0A%0Ainb+wand+582%2C582%2C569%0Ainb+sing+163.9%0A%0Ainb+mha+192%0Ainb+oha+192'
   12     1        INIT_FCALL                                               'substr_count'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2F'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.14 ms | 1394 KiB | 17 Q