3v4l.org

run code in 300+ PHP versions simultaneously
<?php function run($value) { $remain = preg_replace('/^([0-9]\+\-\*\/\(\)\.)/', '', $value); echo $remain . "\n" . $value; } run('23*10 /SDF ($_LEADS * 2) 3');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CXFoC
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'run'
          1        SEND_VAL                                                 '23%2A10+%2FSDF+%28%24_LEADS+%2A+2%29+3'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CXFoC
function name:  run
number of ops:  11
compiled vars:  !0 = $value, !1 = $remain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5E%28%5B0-9%5D%5C%2B%5C-%5C%2A%5C%2F%5C%28%5C%29%5C.%29%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    8     7        CONCAT                                           ~4      !1, '%0A'
          8        CONCAT                                           ~5      ~4, !0
          9        ECHO                                                     ~5
    9    10      > RETURN                                                   null

End of function run

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.75 ms | 1397 KiB | 16 Q