3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 3 => 15, 30 => 1, 1 => 1 ); $string = implode( array_map( function($v, $k) { return "$k:$v;"; }, $array, array_keys($array) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WJEkX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'implode'
          2        INIT_FCALL                                               'array_map'
   10     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWJEkX%3A10%240'
   12     4        SEND_VAL                                                 ~3
          5        SEND_VAR                                                 !0
          6        INIT_FCALL                                               'array_keys'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
    9    13        ASSIGN                                                   !1, $6
   13    14      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.56 ms | 1395 KiB | 19 Q