3v4l.org

run code in 300+ PHP versions simultaneously
<?php header/("content-type:text/html;chartset=utf-8"); $a=2; $b=5; $c=3; $D=$b*$b - 4*$a*$c; if ($D>0){ $x1= (-$b + sqrt($D)) / 2*$a; $x2= (-$b - sqrt($D)) / 2*$a; echo $x1; echo $x2; } else if ($D==0){ $x1 = $x2 = -$b / 2*$a; echo $x1; echo $x2; }
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 = 41
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/aRhVo
function name:  (null)
number of ops:  42
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $D, !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%3Atext%2Fhtml%3Bchartset%3Dutf-8'
          2        FREE                                                     ~7
    5     3        ASSIGN                                                   !0, 2
    6     4        ASSIGN                                                   !1, 5
    7     5        ASSIGN                                                   !2, 3
    9     6        MUL                                              ~11     !1, !1
          7        MUL                                              ~12     !0, 4
          8        MUL                                              ~13     !2, ~12
          9        SUB                                              ~14     ~11, ~13
         10        ASSIGN                                                   !3, ~14
   11    11        IS_SMALLER                                               0, !3
         12      > JMPZ                                                     ~16, ->32
   12    13    >   MUL                                              ~17     !1, -1
         14        INIT_FCALL                                               'sqrt'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $18     
         17        ADD                                              ~19     ~17, $18
         18        DIV                                              ~20     ~19, 2
         19        MUL                                              ~21     !0, ~20
         20        ASSIGN                                                   !4, ~21
   13    21        MUL                                              ~23     !1, -1
         22        INIT_FCALL                                               'sqrt'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $24     
         25        SUB                                              ~25     ~23, $24
         26        DIV                                              ~26     ~25, 2
         27        MUL                                              ~27     !0, ~26
         28        ASSIGN                                                   !5, ~27
   15    29        ECHO                                                     !4
   16    30        ECHO                                                     !5
         31      > JMP                                                      ->41
   19    32    >   IS_EQUAL                                                 !3, 0
         33      > JMPZ                                                     ~29, ->41
   20    34    >   MUL                                              ~30     !1, -1
         35        DIV                                              ~31     ~30, 2
         36        MUL                                              ~32     !0, ~31
         37        ASSIGN                                           ~33     !5, ~32
         38        ASSIGN                                                   !4, ~33
   22    39        ECHO                                                     !4
   23    40        ECHO                                                     !5
   24    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.16 ms | 1400 KiB | 15 Q