3v4l.org

run code in 500+ 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); }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
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 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/OjlXi
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $dot
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->15
    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    >   ADD                                                  ~6      !1, 1
         11        FRAMELESS_ICALL_2                substr              ~7      'bla.txt', ~6
         12        CAST                                              6  ~8      ~7
         13        ECHO                                                         ~8
    3    14        PRE_INC                                                      !0
         15    >   IS_SMALLER                                                   !0, 10000
         16      > JMPNZ                                                        ~10, ->2
   12    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.77 ms | 11376 KiB | 14 Q