3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "50+16-0*387/2+49"; $digits = preg_split("/\D+/", $str, 0, PREG_SPLIT_NO_EMPTY); $symbols = preg_split("/\d+/", $str, 0, PREG_SPLIT_NO_EMPTY); var_export($digits); echo "\n---\n"; var_export($symbols);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nAmiM
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $digits, !2 = $symbols
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '50%2B16-0%2A387%2F2%2B49'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5CD%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%5Cd%2B%2F'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !2, $6
    8    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    9    18        ECHO                                                     '%0A---%0A'
   10    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.65 ms | 1002 KiB | 15 Q