3v4l.org

run code in 300+ PHP versions simultaneously
<?php function df_explode_camel($name) {return preg_split('#(?<=[a-z])(?=[A-Z])#x', $name);} echo df_explode_camel('ZohoCRM') . "\n"; echo df_explode_camel('ZohoInventory') . "\n"; echo df_explode_camel('Dynamics365');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5oudA
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'df_explode_camel'
          1        SEND_VAL                                                 'ZohoCRM'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
    4     5        INIT_FCALL                                               'df_explode_camel'
          6        SEND_VAL                                                 'ZohoInventory'
          7        DO_FCALL                                      0  $2      
          8        CONCAT                                           ~3      $2, '%0A'
          9        ECHO                                                     ~3
    5    10        INIT_FCALL                                               'df_explode_camel'
         11        SEND_VAL                                                 'Dynamics365'
         12        DO_FCALL                                      0  $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Function df_explode_camel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5oudA
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 8.0.0


preferences:
146.82 ms | 1402 KiB | 18 Q