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'))); //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 = 25
Branch analysis from position: 25
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 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
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 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QeF9i
function name:  (null)
number of ops:  33
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
    5     5        IS_SMALLER_OR_EQUAL                                      90, !0
          6      > JMPZ                                                     ~4, ->9
          7    >   QM_ASSIGN                                        ~5      'A'
          8      > JMP                                                      ->25
    6     9    >   IS_SMALLER_OR_EQUAL                                      80, !0
         10      > JMPZ                                                     ~6, ->13
         11    >   QM_ASSIGN                                        ~7      'B'
         12      > JMP                                                      ->24
    7    13    >   IS_SMALLER_OR_EQUAL                                      70, !0
         14      > JMPZ                                                     ~8, ->17
         15    >   QM_ASSIGN                                        ~9      'C'
         16      > JMP                                                      ->23
    8    17    >   IS_SMALLER_OR_EQUAL                                      60, !0
         18      > JMPZ                                                     ~10, ->21
         19    >   QM_ASSIGN                                        ~11     'D'
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~11     'F'
         22    >   QM_ASSIGN                                        ~9      ~11
         23    >   QM_ASSIGN                                        ~7      ~9
         24    >   QM_ASSIGN                                        ~5      ~7
    5    25    >   ASSIGN                                                   !1, ~5
   10    26        ROPE_INIT                                     5  ~14     '%3Ch1%3EA+score+of+'
         27        ROPE_ADD                                      1  ~14     ~14, !0
         28        ROPE_ADD                                      2  ~14     ~14, '+%3D+'
         29        ROPE_ADD                                      3  ~14     ~14, !1
         30        ROPE_END                                      4  ~13     ~14, '%3C%2Fh1%3E'
         31        ECHO                                                     ~13
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.96 ms | 1400 KiB | 15 Q