3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.74 ms | 1398 KiB | 19 Q