3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str='a-1-2-3-4'; print_r(explode('-', $str) + array_fill(0, 3, NULL));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cGHeJ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a-1-2-3-4'
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '-'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'array_fill'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 3
          9        SEND_VAL                                                 null
         10        DO_ICALL                                         $3      
         11        ADD                                              ~4      $2, $3
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.53 ms | 1385 KiB | 19 Q