3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 23; $sum = array_sum(str_split(gmp_strval($number))); var_dump($sum);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pvrv4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $number, !1 = $sum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 23
    5     1        INIT_FCALL                                               'array_sum'
          2        INIT_FCALL                                               'str_split'
          3        INIT_FCALL_BY_NAME                                       'gmp_strval'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.04 ms | 1394 KiB | 22 Q