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"); if (setlocale(LC_ALL, $g_lang) === false) { die('Setting locale failed.'); } class InfoBlob { function InfoBlob() { $this->foo = "Foo"; } } echo ("Instantiating an infoBlob with a lowercase i\n"); $foobar = new infoBlob(); echo ("$foobar->foo\n"); echo ("Instantiating an InfoBlob with an uppercase I\n"); $foobar = new InfoBlob(); echo ("$foobar->foo\n");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ujTe7
function name:  (null)
number of ops:  30
compiled vars:  !0 = $g_lang, !1 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'tr_TR'
    7     1        INIT_FCALL                                               'putenv'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~3      'LANG%3D', !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'setlocale'
          7        SEND_VAL                                                 6
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        TYPE_CHECK                                    4          $5
         11      > JMPZ                                                     ~6, ->13
   11    12    > > EXIT                                                     'Setting+locale+failed.'
   20    13    >   ECHO                                                     'Instantiating+an+infoBlob+with+a+lowercase+i%0A'
   21    14        NEW                                              $7      'infoBlob'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $7
   22    17        FETCH_OBJ_R                                      ~10     !1, 'foo'
         18        NOP                                                      
         19        FAST_CONCAT                                      ~11     ~10, '%0A'
         20        ECHO                                                     ~11
   23    21        ECHO                                                     'Instantiating+an+InfoBlob+with+an+uppercase+I%0A'
   24    22        NEW                                              $12     'InfoBlob'
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !1, $12
   25    25        FETCH_OBJ_R                                      ~15     !1, 'foo'
         26        NOP                                                      
         27        FAST_CONCAT                                      ~16     ~15, '%0A'
         28        ECHO                                                     ~16
         29      > RETURN                                                   1

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

End of function infoblob

End of class InfoBlob.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.2 ms | 1396 KiB | 17 Q