3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weight = $_POST["txtWeight"]; $height = $_POST["txtHeight"]; $unit = $_POST["optUnit"]; $message = ""; if($unit == "metric") { $bmiCalc = $weight/($height*$height); #This Line $message = "Metric BMI: $bmiCalc"; } else { $bmiCalc = ($weight * 703)/($height * $height); $message = "Imperial BMI: $bmiCalc"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2CGfa
function name:  (null)
number of ops:  27
compiled vars:  !0 = $weight, !1 = $height, !2 = $unit, !3 = $message, !4 = $bmiCalc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_R                      global              ~5      '_POST'
          1        FETCH_DIM_R                                      ~6      ~5, 'txtWeight'
          2        ASSIGN                                                   !0, ~6
    5     3        FETCH_R                      global              ~8      '_POST'
          4        FETCH_DIM_R                                      ~9      ~8, 'txtHeight'
          5        ASSIGN                                                   !1, ~9
    6     6        FETCH_R                      global              ~11     '_POST'
          7        FETCH_DIM_R                                      ~12     ~11, 'optUnit'
          8        ASSIGN                                                   !2, ~12
    7     9        ASSIGN                                                   !3, ''
    9    10        IS_EQUAL                                                 !2, 'metric'
         11      > JMPZ                                                     ~15, ->19
   11    12    >   MUL                                              ~16     !1, !1
         13        DIV                                              ~17     !0, ~16
         14        ASSIGN                                                   !4, ~17
   12    15        NOP                                                      
         16        FAST_CONCAT                                      ~19     'Metric+BMI%3A+', !4
         17        ASSIGN                                                   !3, ~19
         18      > JMP                                                      ->26
   16    19    >   MUL                                              ~21     !0, 703
         20        MUL                                              ~22     !1, !1
         21        DIV                                              ~23     ~21, ~22
         22        ASSIGN                                                   !4, ~23
   17    23        NOP                                                      
         24        FAST_CONCAT                                      ~25     'Imperial+BMI%3A+', !4
         25        ASSIGN                                                   !3, ~25
   18    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.62 ms | 1398 KiB | 13 Q