3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array_combine(range(1,12), array_map(function($i) { return date('M', mktime(1,0,0,$i,1,1970)); }, range(1,12))); var_dump($months);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvKAQ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $months
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_combine'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 12
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'array_map'
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FpvKAQ%3A3%240'
          8        SEND_VAL                                                 ~2
          9        INIT_FCALL                                               'range'
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 12
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        ASSIGN                                                   !0, $5
    4    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FpvKAQ%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvKAQ
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'M'
          3        INIT_FCALL                                               'mktime'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 0
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 1970
         10        DO_ICALL                                         $1      
         11        SEND_VAR                                                 $1
         12        DO_ICALL                                         $2      
         13      > RETURN                                                   $2
         14*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FpvKAQ%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.32 ms | 1396 KiB | 25 Q