3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { foreach(range(0, 100000000) as $foo){echo sprintf('Bonjour %s', $foo);} } catch (Throwable $t) { var_dump($t); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LRuTF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $foo, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 100000000
          3        DO_ICALL                                         $2      
          4      > FE_RESET_R                                       $3      $2, ->12
          5    > > FE_FETCH_R                                               $3, !0, ->12
          6    >   INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 'Bonjour+%25s'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11      > JMP                                                      ->5
         12    >   FE_FREE                                                  $3
         13      > JMP                                                      ->18
    4    14  E > > CATCH                                       last         'Throwable'
    5    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.05 ms | 1395 KiB | 19 Q