3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totalQuestions = 100; $questionType = [['english'=> 25], ['maths'=> 25], ['gk'=> 25], ['reasoning'=> 25]]; // print_r($questionType[0]['english']); $counteng = 1; $countmath = 1; $counteng = 1; for($tq = 1; $tq <= $totalQuestions; $tq++){ if($totalQuestions <= $questionType[0]['english']){ echo 'English'. $counteng ; $counteng++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
Branch analysis from position: 14
filename:       /in/2Ngaq
function name:  (null)
number of ops:  18
compiled vars:  !0 = $totalQuestions, !1 = $questionType, !2 = $counteng, !3 = $countmath, !4 = $tq
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 100
    6     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, 1
    9     3        ASSIGN                                                   !3, 1
   10     4        ASSIGN                                                   !2, 1
   11     5        ASSIGN                                                   !4, 1
          6      > JMP                                                      ->15
   12     7    >   FETCH_DIM_R                                      ~11     !1, 0
          8        FETCH_DIM_R                                      ~12     ~11, 'english'
          9        IS_SMALLER_OR_EQUAL                                      !0, ~12
         10      > JMPZ                                                     ~13, ->14
   13    11    >   CONCAT                                           ~14     'English', !2
         12        ECHO                                                     ~14
   14    13        PRE_INC                                                  !2
   11    14    >   PRE_INC                                                  !4
         15    >   IS_SMALLER_OR_EQUAL                                      !4, !0
         16      > JMPNZ                                                    ~17, ->7
   17    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.75 ms | 1393 KiB | 13 Q