3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "The Quick : Brown Fox Jumped Over The Lazy / Dog"; $halfWay = (int)(strlen($text) / 2); var_export( preg_split( '~.{0,' . $halfWay . '}\K\s~s', $text, 2 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6uAfY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $text, !1 = $halfWay
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'The+Quick+%3A+Brown+Fox+Jumped+Over+The+Lazy+%2F+Dog'
    4     1        STRLEN                                               ~3      !0
          2        DIV                                                  ~4      ~3, 2
          3        CAST                                              4  ~5      ~4
          4        ASSIGN                                                       !1, ~5
    5     5        INIT_FCALL                                                   'var_export'
    6     6        INIT_FCALL                                                   'preg_split'
    7     7        CONCAT                                               ~7      '%7E.%7B0%2C', !1
          8        CONCAT                                               ~8      ~7, '%7D%5CK%5Cs%7Es'
          9        SEND_VAL                                                     ~8
    8    10        SEND_VAR                                                     !0
    9    11        SEND_VAL                                                     2
    6    12        DO_ICALL                                             $9      
    9    13        SEND_VAR                                                     $9
    5    14        DO_ICALL                                                     
   11    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.85 ms | 2008 KiB | 15 Q