3v4l.org

run code in 500+ PHP versions simultaneously
<?php $my_array = [ "user1" => "100", "user2" => "200", "user3" => "300" ]; echo array_sum($my_array) - ($my_array['user3'] ?? 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M4e69
function name:  (null)
number of ops:  10
compiled vars:  !0 = $my_array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        INIT_FCALL                                                   'array_sum'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $2      
          4        FETCH_DIM_IS                                         ~3      !0, 'user3'
          5        COALESCE                                             ~4      ~3
          6        QM_ASSIGN                                            ~4      0
          7        SUB                                                  ~5      $2, ~4
          8        ECHO                                                         ~5
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.61 ms | 2044 KiB | 14 Q