3v4l.org

run code in 300+ PHP versions simultaneously
<?php $field = "IMACSuperSeriousLabelDCN"; $label = preg_replace('/(?<=[a-z])[A-Z]|[A-Z](?=[a-z])/', ' $0', $field); echo $label . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vg405
function name:  (null)
number of ops:  10
compiled vars:  !0 = $field, !1 = $label
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'IMACSuperSeriousLabelDCN'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%3F%3C%3D%5Ba-z%5D%29%5BA-Z%5D%7C%5BA-Z%5D%28%3F%3D%5Ba-z%5D%29%2F'
          3        SEND_VAL                                                 '+%240'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        CONCAT                                           ~5      !1, '%0A'
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
257.21 ms | 1009 KiB | 14 Q