3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! 123 test this? <456>. done? 100%"; $int = intval(preg_replace('~<(.*?)>~', '', $string), 10); echo $int;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eo7cT
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, 'Hello%21+123+test+this%3F+%3C456%3E.+done%3F+100%25'
    4     1        INIT_FCALL                                               'intval'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7E%3C%28.%2A%3F%29%3E%7E'
          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:
170.63 ms | 1394 KiB | 17 Q