3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = 0; $c = 8; $i= sprintf('%0'.($c).'d',0); echo $i; if ('' !== ($p=@$i[7])) { echo '/'.$p; } else { echo 'whoops'; } var_dump((array) true);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QXiCk
function name:  (null)
number of ops:  25
compiled vars:  !0 = $handle, !1 = $c, !2 = $i, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 8
    4     2        INIT_FCALL                                               'sprintf'
          3        CONCAT                                           ~6      '%250', !1
          4        CONCAT                                           ~7      ~6, 'd'
          5        SEND_VAL                                                 ~7
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    5     9        ECHO                                                     !2
    6    10        BEGIN_SILENCE                                    ~10     
         11        FETCH_DIM_R                                      ~11     !2, 7
         12        END_SILENCE                                              ~10
         13        ASSIGN                                           ~12     !3, ~11
         14        IS_NOT_IDENTICAL                                         ~12, ''
         15      > JMPZ                                                     ~13, ->19
    7    16    >   CONCAT                                           ~14     '%2F', !3
         17        ECHO                                                     ~14
         18      > JMP                                                      ->20
    9    19    >   ECHO                                                     'whoops'
   11    20    >   INIT_FCALL                                               'var_dump'
         21        CAST                                          7  ~15     <true>
         22        SEND_VAL                                                 ~15
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.88 ms | 1395 KiB | 17 Q