3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txtnum = "Called Number Call Type Call Time Call Duration Call Charges 9231332454834 SMS2/5/2019 9:31:15 AM-- Minutes 0.00 PK 9230374555790 SMS2/4/2019 8:42:07 PM-- Minutes 0.00 PKR"; $words = explode(' ',$txtnum); $result = array_filter($words, 'ctype_digit'); echo implode(PHP_EOL,$result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GCViG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $txtnum, !1 = $words, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Called+Number+Call+Type+Call+Time+Call+Duration+Call+Charges+9231332454834+SMS2%2F5%2F2019+9%3A31%3A15+AM--+Minutes+0.00+PK+9230374555790+SMS2%2F4%2F2019+8%3A42%3A07+PM--+Minutes+0.00+PKR'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 'ctype_digit'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    5    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%0A'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.18 ms | 1399 KiB | 19 Q