3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'one' => array( 'title' => 'Title One', 'uri' => 'http://example.com/one', ), 'two' => array( 'title' => 'Title Two', 'uri' => 'http://example.com/two', ), ); $final_string = implode(' | ', array_map(function($item) { return '<a href="' . $item['uri'] . '">' . $item['title'] . '</a>'; }, $values)); echo $final_string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cS4AK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $values, !1 = $final_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '+%7C+'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FcS4AK%3A14%240'
   16     5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
   14    10        ASSIGN                                                   !1, $5
   18    11        ECHO                                                     !1
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FcS4AK%3A14%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cS4AK
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        FETCH_DIM_R                                      ~1      !0, 'uri'
          2        CONCAT                                           ~2      '%3Ca+href%3D%22', ~1
          3        CONCAT                                           ~3      ~2, '%22%3E'
          4        FETCH_DIM_R                                      ~4      !0, 'title'
          5        CONCAT                                           ~5      ~3, ~4
          6        CONCAT                                           ~6      ~5, '%3C%2Fa%3E'
          7      > RETURN                                                   ~6
   16     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FcS4AK%3A14%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 1395 KiB | 17 Q