3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ameerpet,|Jeans Corner: 040-50607090@05:45PM/6"; print_R(str_word_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/4k8cr
function name:  (null)
number of ops:  24
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                                               'print_r'
          2        INIT_FCALL                                               'str_word_count'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%2F'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%40'
         13        DO_ICALL                                         $4      
         14        ADD                                              ~5      $4, 1
         15        SEND_VAL                                                 ~5
         16        INIT_FCALL                                               'strpos'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%2F'
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                         $7      
         22        ECHO                                                     $7
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.29 ms | 1395 KiB | 21 Q