3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileName = 'teszt.class.php'; if (strpos($fileName, '.') !== false) { print strtolower(substr($fileName, strripos($fileName, '.') + 1)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Gqq17
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fileName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'teszt.class.php'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018          $2
          6      > JMPZ                                                     ~3, ->20
    4     7    >   INIT_FCALL                                               'strtolower'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'strripos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '.'
         13        DO_ICALL                                         $4      
         14        ADD                                              ~5      $4, 1
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
    5    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.97 ms | 1395 KiB | 21 Q