3v4l.org

run code in 300+ PHP versions simultaneously
<?php function df_explode_camel($name) {return preg_split('#(?<=[a-z])(?=[A-Z0-9])#x', $name);} print_r(array_map('df_explode_camel', ['ZohoCRM', 'ZohoInventory', 'Dynamics365']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7cJOD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'df_explode_camel'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function df_explode_camel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7cJOD
function name:  df_explode_camel
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%23%28%3F%3C%3D%5Ba-z%5D%29%28%3F%3D%5BA-Z0-9%5D%29%23x'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of function df_explode_camel

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.31 ms | 1395 KiB | 19 Q