3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtolower(preg_replace('/(?!^)[[:upper:]]+/', '_$0', 'isAa_BB CcDd'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7p5mb
function name:  (null)
number of ops:  10
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%3F%21%5E%29%5B%5B%3Aupper%3A%5D%5D%2B%2F'
          3        SEND_VAL                                                 '_%240'
          4        SEND_VAL                                                 'isAa_BB+CcDd'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8        ECHO                                                     $1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.27 ms | 1458 KiB | 15 Q