3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2_$8', 'eOaUi')); die; echo preg_replace_callback('/([a-z])([A-Z])/', function (array $matches) { var_dump($matches); }, 'eOaUi');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/ASYvM
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtolower'
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5Ba-z%5D%29%28%5BA-Z%5D%29%2F'
          3        SEND_VAL                                                 '%241_%242_%248'
          4        SEND_VAL                                                 'eOaUi'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8        ECHO                                                     $1
    5     9      > EXIT                                                     
    7    10*       INIT_FCALL                                               'preg_replace_callback'
         11*       SEND_VAL                                                 '%2F%28%5Ba-z%5D%29%28%5BA-Z%5D%29%2F'
         12*       DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FASYvM%3A7%240'
   12    13*       SEND_VAL                                                 ~2
         14*       SEND_VAL                                                 'eOaUi'
         15*       DO_ICALL                                         $3      
         16*       ECHO                                                     $3
         17*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FASYvM%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ASYvM
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FASYvM%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1395 KiB | 21 Q