3v4l.org

run code in 300+ PHP versions simultaneously
<?php $separator = " "; echo preg_replace('/(?<=\d)\x' . bin2hex($separator[0]) . '(?=\d)/', $separator, number_format(12345678, 0, ".", $separator));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/haYWk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $separator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%80%89'
    4     1        INIT_FCALL                                               'preg_replace'
          2        INIT_FCALL                                               'bin2hex'
          3        FETCH_DIM_R                                      ~2      !0, 0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      '%2F%28%3F%3C%3D%5Cd%29%5Cx', $3
          7        CONCAT                                           ~5      ~4, '%28%3F%3D%5Cd%29%2F'
          8        SEND_VAL                                                 ~5
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'number_format'
         11        SEND_VAL                                                 12345678
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 '.'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.78 ms | 1399 KiB | 19 Q