3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump( array_map( function( $day ) { return str_pad( $day, 2, '0', STR_PAD_LEFT ); }, range(1, 31) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aE6HO
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    5     3        SEND_VAL                                                     ~0
          4        INIT_FCALL                                                   'range'
          5        SEND_VAL                                                     1
          6        SEND_VAL                                                     31
          7        DO_ICALL                                             $1      
          8        SEND_VAR                                                     $1
    3     9        DO_ICALL                                             $2      
    5    10        SEND_VAR                                                     $2
    3    11        DO_ICALL                                                     
    5    12      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aE6HO
function name:  {closure:/in/aE6HO:3}
number of ops:  9
compiled vars:  !0 = $day
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'str_pad'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     2
          4        SEND_VAL                                                     '0'
          5        SEND_VAL                                                     0
          6        DO_ICALL                                             $1      
          7      > RETURN                                                       $1
    5     8*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.96 ms | 3662 KiB | 17 Q