3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = preg_replace('/\s+/', '', '‪931 015 846'); var_dump($string); $numero = (int)$string; var_dump($numero);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1u9HI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $numero
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 '%E2%80%AA931+015+846'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    4     9        CAST                                          4  ~5      !0
         10        ASSIGN                                                   !1, ~5
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.56 ms | 1394 KiB | 17 Q