3v4l.org

run code in 300+ PHP versions simultaneously
<?php $times = array( '7:30pm', '2:00pm', '8:00pm', ); //sort($times); print_r($times); $results = array(array()); foreach ($times as $time_range) { foreach ($results as $combination) { array_push($results, array_merge(array($time_range), $combination)); } } //sort($results); print_r($results);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/U2AUf
function name:  (null)
number of ops:  26
compiled vars:  !0 = $times, !1 = $results, !2 = $time_range, !3 = $combination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4        ASSIGN                                                   !1, <array>
   14     5      > FE_RESET_R                                       $7      !0, ->21
          6    > > FE_FETCH_R                                               $7, !2, ->21
   15     7    > > FE_RESET_R                                       $8      !1, ->19
          8    > > FE_FETCH_R                                               $8, !3, ->19
   16     9    >   INIT_FCALL                                               'array_push'
         10        SEND_REF                                                 !1
         11        INIT_FCALL                                               'array_merge'
         12        INIT_ARRAY                                       ~9      !2
         13        SEND_VAL                                                 ~9
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                                 
   15    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $8
   14    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $7
   20    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.26 ms | 1396 KiB | 19 Q