3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i < 256; $i++) { $char = chr($i); echo $i . ' : ' . (($i >= '0') ? 'true' : 'false') . "\n"; } foreach (array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z') as $l) { echo $l . ' : ' . (($l >= '0') ? 'true' : 'false') . "\n"; } for ($i = 1; $i < 1000; $i++) { echo $i . ' : ' . (($i >= '0') ? 'true' : 'false') . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 30
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 33
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 33
Branch analysis from position: 45
Branch analysis from position: 33
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 33
Branch analysis from position: 45
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/Mpm4b
function name:  (null)
number of ops:  46
compiled vars:  !0 = $i, !1 = $char, !2 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->16
    4     2    >   INIT_FCALL                                               'chr'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        CONCAT                                           ~6      !0, '+%3A+'
          7        IS_SMALLER_OR_EQUAL                                      '0', !0
          8      > JMPZ                                                     ~7, ->11
          9    >   QM_ASSIGN                                        ~8      'true'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      'false'
         12    >   CONCAT                                           ~9      ~6, ~8
         13        CONCAT                                           ~10     ~9, '%0A'
         14        ECHO                                                     ~10
    3    15        PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 256
         17      > JMPNZ                                                    ~12, ->2
    9    18    > > FE_RESET_R                                       $13     <array>, ->30
         19    > > FE_FETCH_R                                               $13, !2, ->30
   10    20    >   CONCAT                                           ~14     !2, '+%3A+'
         21        IS_SMALLER_OR_EQUAL                                      '0', !2
         22      > JMPZ                                                     ~15, ->25
         23    >   QM_ASSIGN                                        ~16     'true'
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~16     'false'
         26    >   CONCAT                                           ~17     ~14, ~16
         27        CONCAT                                           ~18     ~17, '%0A'
         28        ECHO                                                     ~18
    9    29      > JMP                                                      ->19
         30    >   FE_FREE                                                  $13
   13    31        ASSIGN                                                   !0, 1
         32      > JMP                                                      ->43
   14    33    >   CONCAT                                           ~20     !0, '+%3A+'
         34        IS_SMALLER_OR_EQUAL                                      '0', !0
         35      > JMPZ                                                     ~21, ->38
         36    >   QM_ASSIGN                                        ~22     'true'
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~22     'false'
         39    >   CONCAT                                           ~23     ~20, ~22
         40        CONCAT                                           ~24     ~23, '%0A'
         41        ECHO                                                     ~24
   13    42        PRE_INC                                                  !0
         43    >   IS_SMALLER                                               !0, 1000
         44      > JMPNZ                                                    ~26, ->33
   15    45    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.43 ms | 1400 KiB | 15 Q