3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = array(0,0,0,0,0); $testdata = "580,680,480,380"; array_add($output, array_push(explode(",", $testdata), array_sum(explode(",", $testdata)))); var_dump(output); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hBsMd
function name:  (null)
number of ops:  26
compiled vars:  !0 = $output, !1 = $testdata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '580%2C680%2C480%2C380'
    4     2        INIT_FCALL_BY_NAME                                       'array_add'
          3        SEND_VAR_EX                                              !0
          4        INIT_FCALL                                               'array_push'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        SEND_VAR_NO_REF                               0          $4
         10        INIT_FCALL                                               'array_sum'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        SEND_VAR_NO_REF_EX                                       $7
         20        DO_FCALL                                      0          
    5    21        INIT_FCALL                                               'var_dump'
         22        FETCH_CONSTANT                                   ~9      'output'
         23        SEND_VAL                                                 ~9
         24        DO_ICALL                                                 
    7    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.35 ms | 1395 KiB | 21 Q