3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array("1") as $strTest) { if (is_numeric($strTest)) { if ($strTest > 1) { echo "$strTest is greater than 1!\n"; } else { echo "$strTest is less than or equal to 1!\n"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 16
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/K89Ge
function name:  (null)
number of ops:  18
compiled vars:  !0 = $strTest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $1      <array>, ->16
          1    > > FE_FETCH_R                                               $1, !0, ->16
    5     2    >   INIT_FCALL                                               'is_numeric'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->15
    7     6    >   IS_SMALLER                                               1, !0
          7      > JMPZ                                                     ~3, ->12
    9     8    >   NOP                                                      
          9        FAST_CONCAT                                      ~4      !0, '+is+greater+than+1%21%0A'
         10        ECHO                                                     ~4
         11      > JMP                                                      ->15
   13    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~5      !0, '+is+less+than+or+equal+to+1%21%0A'
         14        ECHO                                                     ~5
    3    15    > > JMP                                                      ->1
         16    >   FE_FREE                                                  $1
   16    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.84 ms | 1395 KiB | 15 Q