3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '4.18'; $b = array(1,2,3,4,5); $c = array_sum([$a, $b]); var_dump($c); $c = $a + $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2O4ER
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '4.18'
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_sum'
          3        INIT_ARRAY                                       ~5      !0
          4        ADD_ARRAY_ELEMENT                                ~5      !1
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    7    11        ADD                                              ~9      !0, !1
         12        ASSIGN                                                   !2, ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.47 ms | 1394 KiB | 17 Q