3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " Posting for friend Cupicake i*b mhr 57.5 inb ohr 37.4 inb wand 582,582,569 inb sing 163.9 inb mha 192 inb oha 192 "; $string = strtolower($string); $bs = substr_count($string, 'b'); $ses = substr_count($string, 's'); $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/uBpdS
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $bs, !2 = $ses, !3 = $slashes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+Posting+for+friend+Cupicake%0A%0Ai%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+'
   13     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
   14     5        INIT_FCALL                                               'substr_count'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'b'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
   15    10        INIT_FCALL                                               'substr_count'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 's'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
   16    15        INIT_FCALL                                               'substr_count'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 '%2F'
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !3, $11
   18    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.69 ms | 1386 KiB | 19 Q