3v4l.org

run code in 200+ php & hhvm versions
<?php for($limit=10,$str=str_repeat(" ",$limit);$limit>=0;--$limit){ $arr=explode(" ",$str,$limit); if(($count=count($arr)) > $limit){ throw new LogicException("explode() returned more elements than the limit! someone send a bugreport! limit: {$limit} elements: {$count}"); } }
based on AEZ36
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 7
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 7
Branch analysis from position: 28
Branch analysis from position: 7
filename:       /in/5TjXl
function name:  (null)
number of ops:  29
compiled vars:  !0 = $limit, !1 = $str, !2 = $arr, !3 = $count
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 10
         1        INIT_FCALL                                               'str_repeat'
         2        SEND_VAL                                                 '+'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                         $5      
         5        ASSIGN                                                   !1, $5
         6      > JMP                                                      ->26
   4     7    >   INIT_FCALL                                               'explode'
         8        SEND_VAL                                                 '+'
         9        SEND_VAR                                                 !1
        10        SEND_VAR                                                 !0
        11        DO_ICALL                                         $7      
        12        ASSIGN                                                   !2, $7
   5    13        COUNT                                            ~9      !2
        14        ASSIGN                                           $10     !3, ~9
        15        IS_SMALLER                                       ~11     !0, $10
        16      > JMPZ                                                     ~11, ->25
   6    17    >   NEW                                              $12     :24
        18        ROPE_INIT                                     4  ~14     'explode%28%29+returned+more+elements+than+the+limit%21+someone+send+a+bugreport%21+limit%3A+'
        19        ROPE_ADD                                      1  ~14     ~14, !0
        20        ROPE_ADD                                      2  ~14     ~14, '+elements%3A+'
        21        ROPE_END                                      3  ~13     ~14, !3
        22        SEND_VAL_EX                                              ~13
        23        DO_FCALL                                      0          
        24      > THROW                                         0          $12
   3    25    >   PRE_DEC                                                  !0
        26    >   IS_SMALLER_OR_EQUAL                              ~18     0, !0
        27      > JMPNZ                                                    ~18, ->7
   8    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0