3v4l.org

run code in 300+ PHP versions simultaneously
<?php $transactions[date('Y-m-d', $transaction[0])][$transaction[4]] += $transaction[1]; if($transaction[4] == 'maintenance') { echo $transaction[1] . " converts to " . $transactions[date('Y-m-d', $transaction[0])][$transaction[4]] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/hP35E
function name:  (null)
number of ops:  27
compiled vars:  !0 = $transactions, !1 = $transaction
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        FETCH_DIM_R                                      ~2      !1, 0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        FETCH_DIM_R                                      ~5      !1, 4
          6        FETCH_DIM_R                                      ~7      !1, 1
          7        FETCH_DIM_RW                                     $4      !0, $3
          8        ASSIGN_DIM_OP                +=               1          $4, ~5
          9        OP_DATA                                                  ~7
    3    10        FETCH_DIM_R                                      ~8      !1, 4
         11        IS_EQUAL                                                 ~8, 'maintenance'
         12      > JMPZ                                                     ~9, ->26
    4    13    >   FETCH_DIM_R                                      ~10     !1, 1
         14        CONCAT                                           ~11     ~10, '+converts+to++'
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        FETCH_DIM_R                                      ~12     !1, 0
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $13     
         20        FETCH_DIM_R                                      ~15     !1, 4
         21        FETCH_DIM_R                                      ~14     !0, $13
         22        FETCH_DIM_R                                      ~16     ~14, ~15
         23        CONCAT                                           ~17     ~11, ~16
         24        CONCAT                                           ~18     ~17, '%0A'
         25        ECHO                                                     ~18
    5    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.97 ms | 1400 KiB | 15 Q