3v4l.org

run code in 500+ 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:  7
compiled vars:  !0 = $field, !1 = $label
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'IMACSuperSeriousLabelDCN'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%28%3F%3C%3D%5Ba-z%5D%29%5BA-Z%5D%7C%5BA-Z%5D%28%3F%3D%5Ba-z%5D%29%2F', '+%240'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    5     4        CONCAT                                               ~5      !1, '%0A'
          5        ECHO                                                         ~5
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.73 ms | 2317 KiB | 13 Q