3v4l.org

run code in 300+ PHP versions simultaneously
<?php function delta(float $a, float $b, float $c): float { return ($b^2) - (4*$a*$c); } echo "Delta wynosi: ".delta(10,2,3) . "\n"; function msc_zerowe(float $a, float $b, float $c): float { return (-$b-sqrt(delta($a, $b, $c)))/2*$a; } echo "Miejsce zerowe wynosi: ".msc_zerowe(1, 25, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wpc6f
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'delta'
          1        SEND_VAL                                                 10
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0  $0      
          5        CONCAT                                           ~1      'Delta+wynosi%3A+', $0
          6        CONCAT                                           ~2      ~1, '%0A'
          7        ECHO                                                     ~2
   15     8        INIT_FCALL                                               'msc_zerowe'
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 25
         11        SEND_VAL                                                 3
         12        DO_FCALL                                      0  $3      
         13        CONCAT                                           ~4      'Miejsce+zerowe+wynosi%3A+', $3
         14        ECHO                                                     ~4
         15      > RETURN                                                   1

Function delta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wpc6f
function name:  delta
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        BW_XOR                                           ~3      !1, 2
          4        MUL                                              ~4      !0, 4
          5        MUL                                              ~5      !2, ~4
          6        SUB                                              ~6      ~3, ~5
          7        VERIFY_RETURN_TYPE                                       ~6
          8      > RETURN                                                   ~6
    6     9*       VERIFY_RETURN_TYPE                                       
         10*     > RETURN                                                   null

End of function delta

Function msc_zerowe:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wpc6f
function name:  msc_zerowe
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   12     3        MUL                                              ~3      !1, -1
          4        INIT_FCALL                                               'sqrt'
          5        INIT_FCALL                                               'delta'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
          9        DO_FCALL                                      0  $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SUB                                              ~6      ~3, $5
         13        DIV                                              ~7      ~6, 2
         14        MUL                                              ~8      !0, ~7
         15        VERIFY_RETURN_TYPE                                       ~8
         16      > RETURN                                                   ~8
   13    17*       VERIFY_RETURN_TYPE                                       
         18*     > RETURN                                                   null

End of function msc_zerowe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.88 ms | 1403 KiB | 18 Q