3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*echo preg_replace_callback('/([a-z]+)(_[a-z]+)/', function($u) { var_dump($u); return ucwords(str_replace('_', '', $u[1])); } , 'rob_tr_yuui'); */ echo preg_replace('/([a-z]+)(_[a-z]+)/', '$1.$2', 'rob_tr_yuui');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GXAcK
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%28%5Ba-z%5D%2B%29%28_%5Ba-z%5D%2B%29%2F'
          2        SEND_VAL                                                 '%241.%242'
          3        SEND_VAL                                                 'rob_tr_yuui'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1393 KiB | 15 Q