3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1394 KiB | 19 Q