3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'SalesOrderNumber=SOH123', 'CustomerID=1', 'BigOrEqual>=44', 'SmallOrEqual<=67', 'NotEqual!=123', 'NotEqual<>2000', 'Smaller<21', 'Bigger>12', ]; var_export( array_map( fn($v) => preg_split( '/([!<=>]+)/', $v, 3, PREG_SPLIT_DELIM_CAPTURE ), $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fdOg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'var_export'
   15     2        INIT_FCALL                                                   'array_map'
   16     3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   21     4        SEND_VAL                                                     ~2
   22     5        SEND_VAR                                                     !0
   15     6        DO_ICALL                                             $3      
   22     7        SEND_VAR                                                     $3
   14     8        DO_ICALL                                                     
   24     9      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fdOg
function name:  {closure:/in/7fdOg:16}
number of ops:  9
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   RECV                                                 !0      
          1        INIT_FCALL                                                   'preg_split'
   17     2        SEND_VAL                                                     '%2F%28%5B%21%3C%3D%3E%5D%2B%29%2F'
   18     3        SEND_VAR                                                     !0
   19     4        SEND_VAL                                                     3
   20     5        SEND_VAL                                                     2
   16     6        DO_ICALL                                             $1      
   20     7      > RETURN                                                       $1
   21     8*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.42 ms | 1984 KiB | 16 Q