3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Starting...\n'; $class = 'PharFileInfo'; echo 'Locale: '.setlocale(LC_ALL, '0')."\n"; echo "$class exists? ".var_export(class_exists($class), true)."\n"; echo 'Locale: '.setlocale(LC_ALL, 'tr_TR.UTF-8')."\n"; echo "$class exists? ".var_export(class_exists($class), true)."\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P1aEg
function name:  (null)
number of ops:  41
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Starting...%5Cn'
    3     1        ASSIGN                                                   !0, 'PharFileInfo'
    4     2        INIT_FCALL                                               'setlocale'
          3        SEND_VAL                                                 6
          4        SEND_VAL                                                 '0'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      'Locale%3A+', $2
          7        CONCAT                                           ~4      ~3, '%0A'
          8        ECHO                                                     ~4
    5     9        NOP                                                      
         10        FAST_CONCAT                                      ~5      !0, '+exists%3F+'
         11        INIT_FCALL                                               'var_export'
         12        INIT_FCALL                                               'class_exists'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $7      
         18        CONCAT                                           ~8      ~5, $7
         19        CONCAT                                           ~9      ~8, '%0A'
         20        ECHO                                                     ~9
    6    21        INIT_FCALL                                               'setlocale'
         22        SEND_VAL                                                 6
         23        SEND_VAL                                                 'tr_TR.UTF-8'
         24        DO_ICALL                                         $10     
         25        CONCAT                                           ~11     'Locale%3A+', $10
         26        CONCAT                                           ~12     ~11, '%0A'
         27        ECHO                                                     ~12
    7    28        NOP                                                      
         29        FAST_CONCAT                                      ~13     !0, '+exists%3F+'
         30        INIT_FCALL                                               'var_export'
         31        INIT_FCALL                                               'class_exists'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $14     
         34        SEND_VAR                                                 $14
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $15     
         37        CONCAT                                           ~16     ~13, $15
         38        CONCAT                                           ~17     ~16, '%0A'
         39        ECHO                                                     ~17
    8    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.45 ms | 1396 KiB | 19 Q