3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vouchers = array( 1 => 100, 3 => 150, 5 => 100 ); $specials = array( 3 => true ); $discounts = array(); $orders = [200,300,500,1000]; foreach ($orders as $order) { $discounts[$order] = array(); } var_dump($discounts);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/HNpRS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $vouchers, !1 = $specials, !2 = $discounts, !3 = $orders, !4 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   13     2        ASSIGN                                                   !2, <array>
   14     3        ASSIGN                                                   !3, <array>
   15     4      > FE_RESET_R                                       $9      !3, ->9
          5    > > FE_FETCH_R                                               $9, !4, ->9
   16     6    >   ASSIGN_DIM                                               !2, !4
          7        OP_DATA                                                  <array>
   15     8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $9
   20    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.98 ms | 1394 KiB | 15 Q