3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bmi ($height, $mass) { $height = $height/100; $mass = $mass/($height * $height); return $mass; } $bmi(170 , 50); if($bmi < 18.5){ print "痩せ過ぎです。"; } else if ($bmi >25) { print "太りすぎです。"; } else { print "標準です。"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dqaBq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bmi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_DYNAMIC_CALL                                        !0
          1        SEND_VAL_EX                                              170
          2        SEND_VAL_EX                                              50
          3        DO_FCALL                                      0          
   10     4        IS_SMALLER                                               !0, 18.5
          5      > JMPZ                                                     ~2, ->8
   11     6    >   ECHO                                                     '%E7%97%A9%E3%81%9B%E9%81%8E%E3%81%8E%E3%81%A7%E3%81%99%E3%80%82'
          7      > JMP                                                      ->13
   13     8    >   IS_SMALLER                                               25, !0
          9      > JMPZ                                                     ~3, ->12
   14    10    >   ECHO                                                     '%E5%A4%AA%E3%82%8A%E3%81%99%E3%81%8E%E3%81%A7%E3%81%99%E3%80%82'
         11      > JMP                                                      ->13
   17    12    >   ECHO                                                     '%E6%A8%99%E6%BA%96%E3%81%A7%E3%81%99%E3%80%82'
   19    13    > > RETURN                                                   1

Function bmi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dqaBq
function name:  bmi
number of ops:  9
compiled vars:  !0 = $height, !1 = $mass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        DIV                                              ~2      !0, 100
          3        ASSIGN                                                   !0, ~2
    5     4        MUL                                              ~4      !0, !0
          5        DIV                                              ~5      !1, ~4
          6        ASSIGN                                                   !1, ~5
    6     7      > RETURN                                                   !1
    7     8*     > RETURN                                                   null

End of function bmi

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.57 ms | 1399 KiB | 13 Q