3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '4.18'; $b = array(1,2,3,4,5); $c = $a + $b; $c = array_sum([$a, $b]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l9uYH
function name:  (null)
number of ops:  11
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        ADD                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
    7     4        INIT_FCALL                                               'array_sum'
          5        INIT_ARRAY                                       ~7      !0
          6        ADD_ARRAY_ELEMENT                                ~7      !1
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.05 ms | 1394 KiB | 15 Q