3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Intialize the input $score=rand(50,100); //Determine the Grade //$grade= ($score>=90)?'A':(($score>=80)?'B':(($score>=70)?'C':(($score>=60)?'D':'F'))); if ($score >= 90) { $grade = 'A'; } elseif ($score >= 80) { $grade = 'B'; } elseif ($score >= 70) { $grade = 'C'; } elseif ($score >= 60) { $grade = 'D'; } else { $grade = 'F'; } //Output the Results echo "<h1>A score of $score = $grade</h1>";
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 = 22
Branch analysis from position: 22
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 = 22
Branch analysis from position: 22
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZE6M
function name:  (null)
number of ops:  29
compiled vars:  !0 = $score, !1 = $grade
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 50
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5        IS_SMALLER_OR_EQUAL                                      90, !0
          6      > JMPZ                                                     ~4, ->9
    8     7    >   ASSIGN                                                   !1, 'A'
          8      > JMP                                                      ->22
   10     9    >   IS_SMALLER_OR_EQUAL                                      80, !0
         10      > JMPZ                                                     ~6, ->13
   11    11    >   ASSIGN                                                   !1, 'B'
         12      > JMP                                                      ->22
   13    13    >   IS_SMALLER_OR_EQUAL                                      70, !0
         14      > JMPZ                                                     ~8, ->17
   14    15    >   ASSIGN                                                   !1, 'C'
         16      > JMP                                                      ->22
   16    17    >   IS_SMALLER_OR_EQUAL                                      60, !0
         18      > JMPZ                                                     ~10, ->21
   17    19    >   ASSIGN                                                   !1, 'D'
         20      > JMP                                                      ->22
   19    21    >   ASSIGN                                                   !1, 'F'
   23    22    >   ROPE_INIT                                     5  ~14     '%3Ch1%3EA+score+of+'
         23        ROPE_ADD                                      1  ~14     ~14, !0
         24        ROPE_ADD                                      2  ~14     ~14, '+%3D+'
         25        ROPE_ADD                                      3  ~14     ~14, !1
         26        ROPE_END                                      4  ~13     ~14, '%3C%2Fh1%3E'
         27        ECHO                                                     ~13
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1396 KiB | 15 Q