3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1637, 2844, 2844, 2446, 2111, 2008, 2026 ]; $two = [ 2096, 2046, 1800, 1380, 1087, 739, 516, 399, 297, 387, 621, 923, 1305, 1607, 1555, 1569, 2087, 2224, 2022, 0, 0, 0, 0 ]; $val = array_sum($one) + array_sum($two); var_dump(array_sum($one), array_sum($two), $val);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJrjN
function name:  (null)
number of ops:  22
compiled vars:  !0 = $one, !1 = $two, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   31     1        ASSIGN                                                   !1, <array>
   58     2        INIT_FCALL                                               'array_sum'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        INIT_FCALL                                               'array_sum'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ADD                                              ~7      $5, $6
          9        ASSIGN                                                   !2, ~7
   59    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_sum'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        INIT_FCALL                                               'array_sum'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.94 ms | 940 KiB | 18 Q