3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo preg_replace('/.*\K,/', ' and', 'item 1, item 2, item 3');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngRBD
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_3                preg_replace        ~0      '%2F.%2A%5CK%2C%2F', '+and'
          1        OP_DATA                                                      'item+1%2C+item+2%2C+item+3'
          2        ECHO                                                         ~0
          3      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.49 ms | 1910 KiB | 13 Q