3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'a=b'; $pattern = '/(=|!=|<|<=|>|>=)/'; $output = preg_split($pattern, $subject, PREG_SPLIT_DELIM_CAPTURE); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mSP8Y
function name:  (null)
number of ops:  12
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'a%3Db'
    6     1        ASSIGN                                                   !1, '%2F%28%3D%7C%21%3D%7C%3C%7C%3C%3D%7C%3E%7C%3E%3D%29%2F'
    8     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
   10     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.23 ms | 1394 KiB | 17 Q