3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(array_pad([], 3, '?')); echo "\n"; var_export(array_fill(0, 3, '?')); echo "\n"; var_export(str_split(str_repeat('?', 3)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aG8TC
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
          1        INIT_FCALL                                               'array_pad'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 '%3F'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0A'
    7     9        INIT_FCALL                                               'var_export'
         10        INIT_FCALL                                               'array_fill'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 3
         13        SEND_VAL                                                 '%3F'
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
         16        DO_ICALL                                                 
    9    17        ECHO                                                     '%0A'
   11    18        INIT_FCALL                                               'var_export'
         19        INIT_FCALL                                               'str_split'
         20        INIT_FCALL                                               'str_repeat'
         21        SEND_VAL                                                 '%3F'
         22        SEND_VAL                                                 3
         23        DO_ICALL                                         $4      
         24        SEND_VAR                                                 $4
         25        DO_ICALL                                         $5      
         26        SEND_VAR                                                 $5
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.34 ms | 1408 KiB | 23 Q