3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:\d+\.\d+)(?: \d+\.\d+){2}(?: \d+){3}\s*|\G(?!^)(\d+(\.\d+)?)\s/'; $str = '0.91 0.45 0.69 58 47 45 23 83 90 $595 NO IDL'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); $result = array_map(function($x){ return $x[1]; }, array_slice($matches, 1)); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8aK4o
function name:  (null)
number of ops:  23
compiled vars:  !0 = $re, !1 = $str, !2 = $matches, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3A%5Cd%2B%5C.%5Cd%2B%29%28%3F%3A+%5Cd%2B%5C.%5Cd%2B%29%7B2%7D%28%3F%3A+%5Cd%2B%29%7B3%7D%5Cs%2A%7C%5CG%28%3F%21%5E%29%28%5Cd%2B%28%5C.%5Cd%2B%29%3F%29%5Cs%2F'
    4     1        ASSIGN                                                   !1, '0.91+0.45+0.69+58+47+45+23+83+90+%24595+NO+IDL'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'array_map'
         10        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
    8    11        SEND_VAL                                                 ~7
         12        INIT_FCALL                                               'array_slice'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
    6    17        DO_ICALL                                         $9      
         18        ASSIGN                                                   !3, $9
   10    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
         22      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8aK4o
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        FETCH_DIM_R                                      ~1      !0, 1
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.92 ms | 1009 KiB | 17 Q