3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = 'toto.php'; for( $i=0;$i<10000;$i++) $ext = in_array( substr( $file, strrpos( $file, "." ) + 1 ), array('js','php') );
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 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/GdUGq
function name:  (null)
number of ops:  18
compiled vars:  !0 = $file, !1 = $i, !2 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'toto.php'
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
    4     3    >   INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'strrpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '.'
          8        DO_ICALL                                         $5      
          9        ADD                                              ~6      $5, 1
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        IN_ARRAY                                         ~8      $7, <array>
         13        ASSIGN                                                   !2, ~8
    3    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10000
         16      > JMPNZ                                                    ~11, ->3
    4    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.43 ms | 1395 KiB | 17 Q