3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR'; putenv("LANG=$g_lang"); var_dump(setlocale(LC_ALL, $g_lang)); class InfoBlob { public $foo; function InfoBlob() { $this->foo = "Foo"; } } echo ('Instantiating an infoBlob with a lowercase i<br>'); $foobar = new infoBlob(); echo ($foobar->foo); echo ('<br>Instantiating an InfoBlob with an uppercase I<br>'); $foobar = new InfoBlob(); echo ($foobar->foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uOR4v
function name:  (null)
number of ops:  26
compiled vars:  !0 = $g_lang, !1 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'tr_TR'
    6     1        INIT_FCALL                                               'putenv'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~3      'LANG%3D', !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'setlocale'
          8        SEND_VAL                                                 6
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
   16    13        ECHO                                                     'Instantiating+an+infoBlob+with+a+lowercase+i%3Cbr%3E'
   17    14        NEW                                              $7      'infoBlob'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $7
   18    17        FETCH_OBJ_R                                      ~10     !1, 'foo'
         18        ECHO                                                     ~10
   19    19        ECHO                                                     '%3Cbr%3EInstantiating+an+InfoBlob+with+an+uppercase+I%3Cbr%3E'
   20    20        NEW                                              $11     'InfoBlob'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !1, $11
   21    23        FETCH_OBJ_R                                      ~14     !1, 'foo'
         24        ECHO                                                     ~14
         25      > RETURN                                                   1

Class InfoBlob:
Function infoblob:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uOR4v
function name:  InfoBlob
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_OBJ                                               'foo'
          1        OP_DATA                                                  'Foo'
   13     2      > RETURN                                                   null

End of function infoblob

End of class InfoBlob.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1388 KiB | 19 Q