3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( 'From' => 'webmaster@example.com', 'Reply-To' => 'webmaster@example.com', 'X-Mailer' => 'PHP/' . phpversion(), ); print_r(implode(array_map( function ($v, $k) { return $k . ': ' . $v; }, $headers, array_keys($headers) ), '\r\n'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DR3ss
function name:  (null)
number of ops:  24
compiled vars:  !0 = $headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~1      'webmaster%40example.com', 'From'
    5     1        ADD_ARRAY_ELEMENT                                ~1      'webmaster%40example.com', 'Reply-To'
    6     2        INIT_FCALL                                               'phpversion'
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      'PHP%2F', $2
          5        ADD_ARRAY_ELEMENT                                ~1      ~3, 'X-Mailer'
    3     6        ASSIGN                                                   !0, ~1
    9     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'implode'
          9        INIT_FCALL                                               'array_map'
   10    10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDR3ss%3A10%240'
         11        SEND_VAL                                                 ~5
   11    12        SEND_VAR                                                 !0
   12    13        INIT_FCALL                                               'array_keys'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
   13    19        SEND_VAL                                                 '%5Cr%5Cn'
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FDR3ss%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DR3ss
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        CONCAT                                           ~2      !1, '%3A+'
          3        CONCAT                                           ~3      ~2, !0
          4      > RETURN                                                   ~3
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDR3ss%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.8 ms | 1396 KiB | 23 Q