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"); 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/UM2Q7
function name:  (null)
number of ops:  19
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                                                 
   16     6        ECHO                                                     'Instantiating+an+infoBlob+with+a+lowercase+i%3Cbr%3E'
   17     7        NEW                                              $5      'infoBlob'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   18    10        FETCH_OBJ_R                                      ~8      !1, 'foo'
         11        ECHO                                                     ~8
   19    12        ECHO                                                     '%3Cbr%3EInstantiating+an+InfoBlob+with+an+uppercase+I%3Cbr%3E'
   20    13        NEW                                              $9      'InfoBlob'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $9
   21    16        FETCH_OBJ_R                                      ~12     !1, 'foo'
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Class InfoBlob:
Function infoblob:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UM2Q7
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:
154.03 ms | 1395 KiB | 15 Q