3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ameerpet,|Jeans Corner: 040-50607090@05:45PM/6"; echo sub_str_count($str,"/"); echo substr($str,strpos($str,'@')+1,strpos($str,"/"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/diI4b
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Ameerpet%2C%7CJeans+Corner%3A+040-50607090%4005%3A45PM%2F6'
    4     1        INIT_FCALL_BY_NAME                                       'sub_str_count'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              '%2F'
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
    5     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '%40'
         11        DO_ICALL                                         $3      
         12        ADD                                              ~4      $3, 1
         13        SEND_VAL                                                 ~4
         14        INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%2F'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                         $6      
         20        ECHO                                                     $6
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.31 ms | 1395 KiB | 17 Q