3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(rand(1,10)); foreach(str_split(12345,1) as $a) var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Tj6ir
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'rand'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 10
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'str_split'
          8        SEND_VAL                                                 12345
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $3      
         11      > FE_RESET_R                                       $4      $3, ->17
         12    > > FE_FETCH_R                                               $4, !0, ->17
         13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $4
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.97 ms | 1399 KiB | 19 Q