3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'en_GB'); var_dump((string) 3.14); setlocale(LC_ALL, 'ru_RU'); var_dump((string) 3.14);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MaUIT
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'en_GB'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        CAST                                          6  ~1      3.14
          6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'setlocale'
          9        SEND_VAL                                                 6
         10        SEND_VAL                                                 'ru_RU'
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        CAST                                          6  ~4      3.14
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.31 ms | 1432 KiB | 15 Q