3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = "234565432421_13/16/18_asda_2312.jpg"; echo strpos($file, "_"); echo $date = substr($file, strpos($file, "_")+1,strpos($file, "_"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7XsQK
function name:  (null)
number of ops:  23
compiled vars:  !0 = $file, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '234565432421_13%2F16%2F18_asda_2312.jpg'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '_'
          4        DO_ICALL                                         $3      
          5        ECHO                                                     $3
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '_'
         11        DO_ICALL                                         $4      
         12        ADD                                              ~5      $4, 1
         13        SEND_VAL                                                 ~5
         14        INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '_'
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                         $7      
         20        ASSIGN                                           ~8      !1, $7
         21        ECHO                                                     ~8
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.02 ms | 1395 KiB | 17 Q