3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_numerics ($str) { preg_match_all('/\d+/', $str, $matches); sort($matches); return $matches[0]; } $one = "aclCheckDate('20050950', '==') or aclCheckDate('20050922', '==') or aclCheckDate('20050923', '==') or aclCheckDate('20050926', '==') or aclCheckDate('20050927', '==') or aclCheckDate('20050928', '==') or aclCheckDate('20050929', '==') or aclCheckDate('20050930', '==')"; print_r(get_numerics($one));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBRXJ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $one
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'aclCheckDate%28%2720050950%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050922%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050923%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050926%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050927%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050928%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050929%27%2C+%27%3D%3D%27%29+or+aclCheckDate%28%2720050930%27%2C+%27%3D%3D%27%29'
   11     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'get_numerics'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function get_numerics:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBRXJ
function name:  get_numerics
number of ops:  12
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cd%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~4      !1, 0
         10      > RETURN                                                   ~4
    7    11*     > RETURN                                                   null

End of function get_numerics

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1389 KiB | 20 Q