3v4l.org

run code in 300+ PHP versions simultaneously
<?php header/("content-type: text/html;charset=utf-8"); $a = 5; $b = 6; $c = 7; $determinant = ($b * $b)- 4 * ($a * $c); if($determinant > 0) { $x1=(-$b + sqrt($determinant))/(2 * $a); $x2=(-$b - sqrt($determinant))/(2 * $a); echo $x1; echo $x2; } else if ($determinant==0){ $x1 = $x2 = (-$b / (2*$a)); } else{ echo "on ne calcule pas ça"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 32
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FLDiX
function name:  (null)
number of ops:  42
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $determinant, !4 = $x1, !5 = $x2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~6      'header'
          1        DIV                                              ~7      ~6, 'content-type%3A+text%2Fhtml%3Bcharset%3Dutf-8'
          2        FREE                                                     ~7
    5     3        ASSIGN                                                   !0, 5
    6     4        ASSIGN                                                   !1, 6
    7     5        ASSIGN                                                   !2, 7
    9     6        MUL                                              ~11     !1, !1
          7        MUL                                              ~12     !0, !2
          8        MUL                                              ~13     ~12, 4
          9        SUB                                              ~14     ~11, ~13
         10        ASSIGN                                                   !3, ~14
   11    11        IS_SMALLER                                               0, !3
         12      > JMPZ                                                     ~16, ->32
   13    13    >   MUL                                              ~17     !1, -1
         14        INIT_FCALL                                               'sqrt'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $18     
         17        ADD                                              ~19     ~17, $18
         18        MUL                                              ~20     !0, 2
         19        DIV                                              ~21     ~19, ~20
         20        ASSIGN                                                   !4, ~21
   14    21        MUL                                              ~23     !1, -1
         22        INIT_FCALL                                               'sqrt'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $24     
         25        SUB                                              ~25     ~23, $24
         26        MUL                                              ~26     !0, 2
         27        DIV                                              ~27     ~25, ~26
         28        ASSIGN                                                   !5, ~27
   16    29        ECHO                                                     !4
   17    30        ECHO                                                     !5
         31      > JMP                                                      ->41
   20    32    >   IS_EQUAL                                                 !3, 0
         33      > JMPZ                                                     ~29, ->40
   21    34    >   MUL                                              ~30     !1, -1
         35        MUL                                              ~31     !0, 2
         36        DIV                                              ~32     ~30, ~31
         37        ASSIGN                                           ~33     !5, ~32
         38        ASSIGN                                                   !4, ~33
         39      > JMP                                                      ->41
   25    40    >   ECHO                                                     'on+ne+calcule+pas+%C3%A7a'
   27    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.54 ms | 1400 KiB | 15 Q