3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array('a1','a2', 'a3','a4'); $result[]=array(); foreach ($a1 as $a2) { $result[]='"'.$a2.'"'; } $comma_separated = implode(",", $result); $comma_separated;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Dp6Y3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a1, !1 = $result, !2 = $a2, !3 = $comma_separated
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !1
          2        OP_DATA                                                  <array>
    5     3      > FE_RESET_R                                       $6      !0, ->10
          4    > > FE_FETCH_R                                               $6, !2, ->10
    6     5    >   CONCAT                                           ~8      '%22', !2
          6        CONCAT                                           ~9      ~8, '%22'
          7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  ~9
    5     9      > JMP                                                      ->4
         10    >   FE_FREE                                                  $6
   10    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   11    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.99 ms | 1395 KiB | 15 Q