3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Hello! 123 test this? 456. done? 100%"; $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/aObYp
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $int
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Hello%21+123+test+this%3F+456.+done%3F+100%25'
    4     1        INIT_FCALL                                                   'intval'
          2        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%5B%5E0-9%5D%2B%2F', ''
          3        OP_DATA                                                      !0
          4        SEND_VAL                                                     ~3
          5        SEND_VAL                                                     10
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        ECHO                                                         !1
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.78 ms | 3262 KiB | 14 Q