3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0; $i<10000; $i++) { $dot = strrpos("bla.txt", '.'); if ($dot === false) { return ''; } echo (string) substr("bla.txt", $dot + 1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/OjlXi
function name:  (null)
number of ops:  21
compiled vars:  !0 = $i, !1 = $dot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->18
    4     2    >   INIT_FCALL                                               'strrpos'
          3        SEND_VAL                                                 'bla.txt'
          4        SEND_VAL                                                 '.'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        TYPE_CHECK                                    4          !1
          8      > JMPZ                                                     ~5, ->10
    8     9    > > RETURN                                                   ''
   11    10    >   INIT_FCALL                                               'substr'
         11        SEND_VAL                                                 'bla.txt'
         12        ADD                                              ~6      !1, 1
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        CAST                                          6  ~8      $7
         16        ECHO                                                     ~8
    3    17        PRE_INC                                                  !0
         18    >   IS_SMALLER                                               !0, 10000
         19      > JMPNZ                                                    ~10, ->2
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.63 ms | 1395 KiB | 17 Q