3v4l.org

run code in 300+ PHP versions simultaneously
<?php $clock = [21,22,23,24,0,1,2,3,4,5,6,7,8]; foreach($clock as $hour){ $larger = $hour >= 21 ? 'yes' : 'no' ; $smaller = $hour <= 8 ? 'yes' : 'no' ; printf("is %s larger then 21: %s - is %s smaller then 8: %s\n", $hour, $larger, $hour, $smaller); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/NQKVu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $clock, !1 = $hour, !2 = $larger, !3 = $smaller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $5      !0, ->23
          2    > > FE_FETCH_R                                               $5, !1, ->23
    4     3    >   IS_SMALLER_OR_EQUAL                                      21, !1
          4      > JMPZ                                                     ~6, ->7
          5    >   QM_ASSIGN                                        ~7      'yes'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~7      'no'
          8    >   ASSIGN                                                   !2, ~7
    5     9        IS_SMALLER_OR_EQUAL                                      !1, 8
         10      > JMPZ                                                     ~9, ->13
         11    >   QM_ASSIGN                                        ~10     'yes'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~10     'no'
         14    >   ASSIGN                                                   !3, ~10
    6    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 'is+%25s+larger+then+21%3A+%25s+-+is+%25s+smaller+then+8%3A+%25s%0A'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !1
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
    3    22      > JMP                                                      ->2
         23    >   FE_FREE                                                  $5
    7    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.9 ms | 1401 KiB | 15 Q