3v4l.org

run code in 500+ PHP versions simultaneously
<?php $names = [ ['Joe','Moe','Joey'], ['John','Doe','Curly'], ['Jimmy','Fallon','Funny'] ]; $output = implode(",", array_map(function($row) { return sprintf("(%s)", implode(",", array_map(function($name) { return "'$name'"; }, $row))); }, $names)); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PLu1g
function name:  (null)
number of ops:  10
compiled vars:  !0 = $names, !1 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
   13     3        SEND_VAL                                                     ~3
          4        SEND_VAR                                                     !0
    9     5        DO_ICALL                                             $4      
          6        FRAMELESS_ICALL_2                implode             ~5      '%2C', $4
          7        ASSIGN                                                       !1, ~5
   15     8        ECHO                                                         !1
   16     9      > 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/PLu1g
function name:  {closure:/in/PLu1g:9}
number of ops:  12
compiled vars:  !0 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
   12     3        SEND_VAL                                                     ~1
          4        SEND_VAR                                                     !0
   10     5        DO_ICALL                                             $2      
          6        FRAMELESS_ICALL_2                implode             ~3      '%2C', $2
   12     7        ROPE_INIT                                         3  ~5      '%28'
          8        ROPE_ADD                                          1  ~5      ~5, ~3
          9        ROPE_END                                          2  ~4      ~5, '%29'
         10      > RETURN                                                       ~4
   13    11*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PLu1g
function name:  {closure:{closure:/in/PLu1g:9}:10}
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1        ROPE_INIT                                         3  ~2      '%27'
          2        ROPE_ADD                                          1  ~2      ~2, !0
          3        ROPE_END                                          2  ~1      ~2, '%27'
          4      > RETURN                                                       ~1
   12     5*     > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.35 ms | 2028 KiB | 14 Q