3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(substr((int)preg_replace("/[^0-9]/", "", "991007359 - 5852713")),0,9);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aY2f2
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          4        SEND_VAL                                                 ''
          5        SEND_VAL                                                 '991007359+-+5852713'
          6        DO_ICALL                                         $0      
          7        CAST                                          4  ~1      $0
          8        SEND_VAL                                                 ~1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 9
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.86 ms | 1394 KiB | 19 Q