3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Sisa pulsa Rp.8225.Aktif sd 18/01/2017."; $int = intval(preg_replace('/[^0-9]+/', '', $string), 10); echo $int;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEWC9
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Sisa+pulsa+Rp.8225.Aktif+sd+18%2F01%2F2017.'
    4     1        INIT_FCALL                                               'intval'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2B%2F'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 10
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    6    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.8 ms | 1385 KiB | 17 Q