3v4l.org

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

Function df_explode_camel:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/vgnAQ
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-Z%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 7.3.0