3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [4, 3, 5, 7, 210], [4, 9, 5, 7, 210], [4, 9, 25, 7, 210], ]; foreach ($array as &$row) { array_pop($row); $row[] = array_product($row); } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/5pU3W
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_RW                                      $3      !0, ->12
          2    > > FE_FETCH_RW                                              $3, !1, ->12
   10     3    >   INIT_FCALL                                               'array_pop'
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'array_product'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  $6
    9    11      > JMP                                                      ->2
         12    >   FE_FREE                                                  $3
   13    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.65 ms | 1399 KiB | 19 Q