3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "test 1, test 2, test 2.3 and -8.44 plus 99999999999999999999999999999999999999999999999999"; preg_match_all('/-?\d+(?:\.\d+)?/', $str, $array); $array = array_map/**/("intval", $array[0]); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VMX05
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test+1%2C+test+2%2C+test+2.3+and+-8.44+plus+99999999999999999999999999999999999999999999999999'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F-%3F%5Cd%2B%28%3F%3A%5C.%5Cd%2B%29%3F%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'intval'
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.79 ms | 1011 KiB | 16 Q