3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 6; $y = 4; $sum = $x + $y; //sum = 10 $ten = "Ten"; if ($sum >= 10 && $ten == "Ten") { $answer = "Correct"; echo "Your answer is: $answer"; } else { $answer = "Incorrect"; echo "Your answer is: $answer"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
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: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/7fRQr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $x, !1 = $y, !2 = $sum, !3 = $ten, !4 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 6
    4     1        ASSIGN                                                   !1, 4
    5     2        ADD                                              ~7      !0, !1
          3        ASSIGN                                                   !2, ~7
    6     4        ASSIGN                                                   !3, 'Ten'
    9     5        IS_SMALLER_OR_EQUAL                              ~10     10, !2
          6      > JMPZ_EX                                          ~10     ~10, ->9
          7    >   IS_EQUAL                                         ~11     !3, 'Ten'
          8        BOOL                                             ~10     ~11
          9    > > JMPZ                                                     ~10, ->15
   10    10    >   ASSIGN                                                   !4, 'Correct'
   11    11        NOP                                                      
         12        FAST_CONCAT                                      ~13     'Your+answer+is%3A+', !4
         13        ECHO                                                     ~13
         14      > JMP                                                      ->19
   14    15    >   ASSIGN                                                   !4, 'Incorrect'
   15    16        NOP                                                      
         17        FAST_CONCAT                                      ~15     'Your+answer+is%3A+', !4
         18        ECHO                                                     ~15
   17    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.93 ms | 1393 KiB | 13 Q