3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (sqrt(7) == floor(sqrt(7))) echo "7 is a perfect square"; if (sqrt(9) == floor(sqrt(9))) echo "9 is a perfect square";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 12
filename:       /in/7jEJe
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sqrt'
          1        SEND_VAL                                                 7
          2        DO_ICALL                                         $0      
          3        INIT_FCALL                                               'floor'
          4        INIT_FCALL                                               'sqrt'
          5        SEND_VAL                                                 7
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9        IS_EQUAL                                                 $0, $2
         10      > JMPZ                                                     ~3, ->12
    4    11    >   ECHO                                                     '7+is+a+perfect+square'
    6    12    >   INIT_FCALL                                               'sqrt'
         13        SEND_VAL                                                 9
         14        DO_ICALL                                         $4      
         15        INIT_FCALL                                               'floor'
         16        INIT_FCALL                                               'sqrt'
         17        SEND_VAL                                                 9
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                         $6      
         21        IS_EQUAL                                                 $4, $6
         22      > JMPZ                                                     ~7, ->24
    7    23    >   ECHO                                                     '9+is+a+perfect+square'
         24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.46 ms | 1001 KiB | 15 Q