3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = preg_replace('/(?<=[a-zA-Z])([A-Z])(?=[a-zA-Z])/', "_$1", 'spbAddress12'); print preg_replace('/([a-zA-Z])([0-9])/', "$1_$2", $result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lRMVl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%28%3F%3C%3D%5Ba-zA-Z%5D%29%28%5BA-Z%5D%29%28%3F%3D%5Ba-zA-Z%5D%29%2F'
          2        SEND_VAL                                                 '_%241'
          3        SEND_VAL                                                 'spbAddress12'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    3     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%28%5Ba-zA-Z%5D%29%28%5B0-9%5D%29%2F'
          8        SEND_VAL                                                 '%241_%242'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 1385 KiB | 15 Q