3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = []; $list[] = [ "name" => "bill gates", "os" => "windows" ]; $list[] = [ "name" => "steve jobs", "os" => "mac" ]; $list[] = [ "name" => "linus torvals", "os" => "linux" ]; var_dump(implode(', ', (array_map(function ($item) { return implode(' > ',$item); }, $list))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6E13n
function name:  (null)
number of ops:  20
compiled vars:  !0 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0
    6     2        OP_DATA                                                  <array>
   10     3        ASSIGN_DIM                                               !0
   11     4        OP_DATA                                                  <array>
   15     5        ASSIGN_DIM                                               !0
   16     6        OP_DATA                                                  <array>
   20     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%2C+'
         10        INIT_FCALL                                               'array_map'
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6E13n%3A20%240'
         12        SEND_VAL                                                 ~5
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F6E13n%3A20%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.67 ms | 1401 KiB | 19 Q