3v4l.org

run code in 300+ PHP versions simultaneously
<?php $latest_filename = "1444301049_10.PNG"; if((int) substr($latest_filename, -6, -4) >= 10) { $file = (int) substr($latest_filename, -6) + 1; var_dump($file); $string = $path . $name . "_" . (string)$file . ".PNG"; // var_dump($string); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 25
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/a0lAT
function name:  (null)
number of ops:  26
compiled vars:  !0 = $latest_filename, !1 = $file, !2 = $string, !3 = $path, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1444301049_10.PNG'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 -6
          4        SEND_VAL                                                 -4
          5        DO_ICALL                                         $6      
          6        CAST                                          4  ~7      $6
          7        IS_SMALLER_OR_EQUAL                                      10, ~7
          8      > JMPZ                                                     ~8, ->25
    5     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 -6
         12        DO_ICALL                                         $9      
         13        CAST                                          4  ~10     $9
         14        ADD                                              ~11     ~10, 1
         15        ASSIGN                                                   !1, ~11
    6    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    7    19        CONCAT                                           ~14     !3, !4
         20        CONCAT                                           ~15     ~14, '_'
         21        CAST                                          6  ~16     !1
         22        CONCAT                                           ~17     ~15, ~16
         23        CONCAT                                           ~18     ~17, '.PNG'
         24        ASSIGN                                                   !2, ~18
    9    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.9 ms | 1395 KiB | 17 Q