3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.96 ms | 1394 KiB | 17 Q