3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['lastname', 'email', 'phone']; echo implode(",", preg_replace('/^|$/', "'", $array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SGYlX
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5E%7C%24%2F', '%27'
          2        OP_DATA                                                      !0
          3        FRAMELESS_ICALL_2                implode             ~3      '%2C', ~2
          4        ECHO                                                         ~3
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.66 ms | 1588 KiB | 13 Q