3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = array(0,0,0,0,0); $testdata = "580,680,480,380"; $output += explode(",", $testdata).push(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/PLeP5
function name:  (null)
number of ops:  23
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                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        INIT_FCALL_BY_NAME                                       'push'
          7        INIT_FCALL                                               'array_sum'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2C'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        SEND_VAR_NO_REF_EX                                       $6
         15        DO_FCALL                                      0  $7      
         16        CONCAT                                           ~8      $4, $7
         17        ASSIGN_OP                                     1          !0, ~8
    5    18        INIT_FCALL                                               'var_dump'
         19        FETCH_CONSTANT                                   ~10     'output'
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.65 ms | 1386 KiB | 19 Q