3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('error_reporting', E_ALL ); putenv('LC_ALL=ru_RU.UTF-8'); putenv('LANG=ru_RU'); putenv('LANGUAGE=ru_RU'); setlocale (LC_ALL, "ru_RU.UTF-8"); for($i=0; $i<7; $i++){ echo setlocale(LC_ALL, 0) . "<br>\n"; sleep(1); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 19
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 19
Branch analysis from position: 31
Branch analysis from position: 19
filename:       /in/O0jGY
function name:  (null)
number of ops:  32
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'error_reporting'
          2        SEND_VAL                                                 32767
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'putenv'
          5        SEND_VAL                                                 'LC_ALL%3Dru_RU.UTF-8'
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'putenv'
          8        SEND_VAL                                                 'LANG%3Dru_RU'
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'putenv'
         11        SEND_VAL                                                 'LANGUAGE%3Dru_RU'
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'setlocale'
         14        SEND_VAL                                                 6
         15        SEND_VAL                                                 'ru_RU.UTF-8'
         16        DO_ICALL                                                 
    7    17        ASSIGN                                                   !0, 0
         18      > JMP                                                      ->29
    8    19    >   INIT_FCALL                                               'setlocale'
         20        SEND_VAL                                                 6
         21        SEND_VAL                                                 0
         22        DO_ICALL                                         $7      
         23        CONCAT                                           ~8      $7, '%3Cbr%3E%0A'
         24        ECHO                                                     ~8
    9    25        INIT_FCALL                                               'sleep'
         26        SEND_VAL                                                 1
         27        DO_ICALL                                                 
    7    28        PRE_INC                                                  !0
         29    >   IS_SMALLER                                               !0, 7
         30      > JMPNZ                                                    ~11, ->19
   11    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.35 ms | 1396 KiB | 21 Q