3v4l.org

run code in 300+ PHP versions simultaneously
<?php $templates = array( 'family' => array( 'product.category_overview' => 'Family Overview', 'product.category_overview_slideshow' => 'Family Overview W/ Slideshow', 'product.category_overview' => 'Family Overview No Parallax' ), 'category' => array( 'product.category_detail' => 'Category Overview' ), 'group' => array( 'product.group' => 'Group w/ 1 Line Art', 'product.group_multi' => 'Group w/ 2 Line Art' ), 'product' => array( 'product.detail' => 'Product Detail' ), 'content' => array( 'content.home' => 'Basic Content Home', 'content.about' => 'Basic Content About' ), 'legacy' => array( 'detail' => 'Product Detail' ) ); $templates = array_map( function($template) { print_r($template); }, $templates);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kfD9
function name:  (null)
number of ops:  8
compiled vars:  !0 = $templates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   28     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F5kfD9%3A28%240'
   30     3        SEND_VAL                                                 ~2
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
   28     6        ASSIGN                                                   !0, $3
   30     7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F5kfD9%3A28%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kfD9
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $template
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   30     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F5kfD9%3A28%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.46 ms | 1386 KiB | 17 Q