3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (string)array_shift([array_sum([substr("4", 1)])]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvj15
function name:  (null)
number of ops:  15
compiled vars:  none
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                                         $0      
          6        INIT_ARRAY                                       ~1      $0
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                         $2      
          9        INIT_ARRAY                                       ~3      $2
         10        SEND_VAL_EX                                              ~3
         11        DO_ICALL                                         $4      
         12        CAST                                          6  ~5      $4
         13        ECHO                                                     ~5
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.75 ms | 1398 KiB | 19 Q