3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 108464.6749028; $rounded_value = sprintf("%.2f", round($value, 2)); $reversed_value = strrev($rounded_value); $french_number = preg_replace('/(\d{3})/', '$1 ', $reversed_value); $formatted_value = strrev($french_number); echo $formatted_value . "\n"; echo preg_replace('/\..*/', '', $formatted_value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gPacN
function name:  (null)
number of ops:  33
compiled vars:  !0 = $value, !1 = $rounded_value, !2 = $reversed_value, !3 = $french_number, !4 = $formatted_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 108465
    4     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25.2f'
          3        INIT_FCALL                                               'round'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    5    10        INIT_FCALL                                               'strrev'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    6    14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%2F%28%5Cd%7B3%7D%29%2F'
         16        SEND_VAL                                                 '%241+'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !3, $11
    7    20        INIT_FCALL                                               'strrev'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !4, $13
    8    24        CONCAT                                           ~15     !4, '%0A'
         25        ECHO                                                     ~15
    9    26        INIT_FCALL                                               'preg_replace'
         27        SEND_VAL                                                 '%2F%5C..%2A%2F'
         28        SEND_VAL                                                 ''
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $16     
         31        ECHO                                                     $16
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1396 KiB | 21 Q