3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<10; $i++){ if ($i %2==0) { echo "$i is even"; } else { echo "$i is odd"; } if (sqrt($i) == floor(sqrt($i))) echo " and is a perfect square"; echo ".<br />\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 2
Branch analysis from position: 28
Branch analysis from position: 2
Branch analysis from position: 24
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
Branch analysis from position: 24
filename:       /in/eUGba
function name:  (null)
number of ops:  29
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->26
    4     2    >   MOD                                              ~2      !0, 2
          3        IS_EQUAL                                                 ~2, 0
          4      > JMPZ                                                     ~3, ->9
    5     5    >   NOP                                                      
          6        FAST_CONCAT                                      ~4      !0, '+is+even'
          7        ECHO                                                     ~4
    4     8      > JMP                                                      ->12
    7     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~5      !0, '+is+odd'
         11        ECHO                                                     ~5
    9    12    >   INIT_FCALL                                               'sqrt'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        INIT_FCALL                                               'floor'
         16        INIT_FCALL                                               'sqrt'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        IS_EQUAL                                                 $6, $8
         22      > JMPZ                                                     ~9, ->24
   10    23    >   ECHO                                                     '+and+is+a+perfect+square'
   11    24    >   ECHO                                                     '.%3Cbr+%2F%3E%0A'
    3    25        PRE_INC                                                  !0
         26    >   IS_SMALLER                                               !0, 10
         27      > JMPNZ                                                    ~11, ->2
   12    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
234.27 ms | 1002 KiB | 15 Q