3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 150; $y = 3; $z = ($x*$y) + 5; if ($z <= 0) { $resposta = "A"; } else { if ($z <= 100) $resposta = "B"; elseif (!($z <= 100)) $resposta = "C"; else $resposta = "D"; } echo $z; echo $resposta;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N2Yrj
function name:  (null)
number of ops:  22
compiled vars:  !0 = $x, !1 = $y, !2 = $z, !3 = $resposta
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 150
    3     1        ASSIGN                                                   !1, 3
    4     2        MUL                                              ~6      !0, !1
          3        ADD                                              ~7      ~6, 5
          4        ASSIGN                                                   !2, ~7
    5     5        IS_SMALLER_OR_EQUAL                                      !2, 0
          6      > JMPZ                                                     ~9, ->9
    6     7    >   ASSIGN                                                   !3, 'A'
          8      > JMP                                                      ->19
    8     9    >   IS_SMALLER_OR_EQUAL                                      !2, 100
         10      > JMPZ                                                     ~11, ->13
         11    >   ASSIGN                                                   !3, 'B'
         12      > JMP                                                      ->19
    9    13    >   IS_SMALLER_OR_EQUAL                              ~13     !2, 100
         14        BOOL_NOT                                         ~14     ~13
         15      > JMPZ                                                     ~14, ->18
         16    >   ASSIGN                                                   !3, 'C'
         17      > JMP                                                      ->19
   10    18    >   ASSIGN                                                   !3, 'D'
   12    19    >   ECHO                                                     !2
   13    20        ECHO                                                     !3
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1394 KiB | 13 Q