3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expression = '(1*2)/(3*4)*100+-10'; var_export( preg_split( '~(-?\d+|[()*/+-])~', $expression, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5n1di
function name:  (null)
number of ops:  11
compiled vars:  !0 = $expression
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%281%2A2%29%2F%283%2A4%29%2A100%2B-10'
    4     1        INIT_FCALL                                               'var_export'
    5     2        INIT_FCALL                                               'preg_split'
    6     3        SEND_VAL                                                 '%7E%28-%3F%5Cd%2B%7C%5B%28%29%2A%2F%2B-%5D%29%7E'
    7     4        SEND_VAR                                                 !0
    8     5        SEND_VAL                                                 0
    9     6        SEND_VAL                                                 3
    5     7        DO_ICALL                                         $2      
    9     8        SEND_VAR                                                 $2
    4     9        DO_ICALL                                                 
   11    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.69 ms | 1004 KiB | 15 Q