3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = "‐200"; $unicode_hyphen = '‐'; // E2 80 90 is the Unicode multibyte hyphen character your PDFs seem to contain $ascii_hyphen = '-'; $myint = intval(str_replace($unicode_hyphen , $ascii_hyphen , $mystring)); var_dump($myint);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sN5AS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $mystring, !1 = $unicode_hyphen, !2 = $ascii_hyphen, !3 = $myint
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%80%90200'
    6     1        ASSIGN                                                   !1, '%E2%80%90'
    7     2        ASSIGN                                                   !2, '-'
    8     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        CAST                                          4  ~8      $7
          9        ASSIGN                                                   !3, ~8
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.02 ms | 1005 KiB | 15 Q