3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tests = [ [3, 0], [3, 1], [3, 21], ]; foreach($tests as [$d, $h]){ $img = ''; if ($d == 3 && $h >= 0 && $h < 20) $img = 'https://web.saio.net/images/script/so.gif'; var_dump($img); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 22
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
Branch analysis from position: 16
Branch analysis from position: 13
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/btZTW
function name:  (null)
number of ops:  24
compiled vars:  !0 = $tests, !1 = $d, !2 = $h, !3 = $img
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1      > FE_RESET_R                                           $5      !0, ->22
          2    > > FE_FETCH_R                                                   $5, $6, ->22
          3    >   FETCH_LIST_R                                         $7      $6, 0
          4        ASSIGN                                                       !1, $7
          5        FETCH_LIST_R                                         $9      $6, 1
          6        ASSIGN                                                       !2, $9
          7        FREE                                                         $6
    9     8        ASSIGN                                                       !3, ''
   10     9        IS_EQUAL                                             ~12     !1, 3
         10      > JMPZ_EX                                              ~12     ~12, ->13
         11    >   IS_SMALLER_OR_EQUAL                                  ~13     0, !2
         12        BOOL                                                 ~12     ~13
         13    > > JMPZ_EX                                              ~12     ~12, ->16
         14    >   IS_SMALLER                                           ~14     !2, 20
         15        BOOL                                                 ~12     ~14
         16    > > JMPZ                                                         ~12, ->18
         17    >   ASSIGN                                                       !3, 'https%3A%2F%2Fweb.saio.net%2Fimages%2Fscript%2Fso.gif'
   11    18    >   INIT_FCALL                                                   'var_dump'
         19        SEND_VAR                                                     !3
         20        DO_ICALL                                                     
    8    21      > JMP                                                          ->2
         22    >   FE_FREE                                                      $5
   12    23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.88 ms | 2100 KiB | 14 Q