3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg = "~((?:Name|FFL):(:?.*)(?:\\r\\n|\\r|\\n|;))~"; $text = " Name: Triple Canopy "; $x = preg_split($reg, $text); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jWZRp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $reg, !1 = $text, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7E%28%28%3F%3AName%7CFFL%29%3A%28%3A%3F.%2A%29%28%3F%3A%5Cr%5Cn%7C%5Cr%7C%5Cn%7C%3B%29%29%7E'
    4     1        ASSIGN                                                   !1, '%0AName%3A%0ATriple+Canopy%0A'
    8     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.35 ms | 1394 KiB | 17 Q