3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1394 KiB | 15 Q