3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = '821.jpg'; echo strpos($f, '.'); strslice($f, 0, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ph1V
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '821.jpg'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    5     6        INIT_FCALL_BY_NAME                                       'strslice'
          7        SEND_VAR_EX                                              !0
          8        SEND_VAL_EX                                              0
          9        SEND_VAL_EX                                              3
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.2 ms | 1394 KiB | 15 Q