3v4l.org

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

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

End of function %00%7Bclosure%7D%2Fin%2FdeXbE%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.81 ms | 1386 KiB | 19 Q