3v4l.org

run code in 500+ PHP versions simultaneously
<?php function print_line(string $output): void { echo $output . PHP_EOL; } $rel = [ 'noopener' => true, 'external' => false, 'nofollow' => true, ]; $compiled = array_map(function ($k,$v) { return $k; }, $rel); print_r($compiled);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMrLA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $rel, !1 = $compiled
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
   14     3        SEND_VAL                                                     ~3
          4        SEND_VAR                                                     !0
   12     5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
   16     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > 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/hMrLA
function name:  {closure:/in/hMrLA:12}
number of ops:  4
compiled vars:  !0 = $k, !1 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   13     2      > RETURN                                                       !0
   14     3*     > RETURN                                                       null

End of Dynamic Function 0

Function print_line:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMrLA
function name:  print_line
number of ops:  4
compiled vars:  !0 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    3     1        CONCAT                                               ~1      !0, '%0A'
          2        ECHO                                                         ~1
    4     3      > RETURN                                                       null

End of function print_line

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.31 ms | 1334 KiB | 14 Q