3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1 2 3 4 5 6 7 8 9 Apollo-1 10'; if (preg_match_all('/(?<!\S)[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?(?!\S)/', $str, $matches)) { print_r($matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/t7qMI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1+2+3+4+5+6+7+8+9+Apollo-1+10'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%3C%21%5CS%29%5B-%2B%5D%3F%5Cd%2A%5C.%3F%5Cd%2B%28%3F%3A%5BeE%5D%5B-%2B%5D%3F%5Cd%2B%29%3F%28%3F%21%5CS%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->11
    5     7    >   INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1398 KiB | 17 Q