3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FvjNSj%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vjNSj
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    8     1        FETCH_DIM_R                                      ~1      !0, 1
          2        INIT_FCALL                                               'ucwords'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '_'
          5        SEND_VAL                                                 ''
          6        FETCH_DIM_R                                      ~2      !0, 2
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      ~1, $4
         12      > RETURN                                                   ~5
   10    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FvjNSj%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.13 ms | 1395 KiB | 19 Q