3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.38 ms | 1394 KiB | 15 Q