3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set language to desired language $g_lang = 'tr_TR'; putenv("LANG=$g_lang"); setlocale(LC_ALL, $g_lang); class InfoBlob { var $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/usekB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $g_lang, !1 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'tr_TR'
    4     1        INIT_FCALL                                               'putenv'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~3      'LANG%3D', !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'setlocale'
          7        SEND_VAL                                                 6
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   14    10        ECHO                                                     'Instantiating+an+infoBlob+with+a+lowercase+i%3Cbr%3E'
   15    11        NEW                                              $6      'infoBlob'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $6
   16    14        FETCH_OBJ_R                                      ~9      !1, 'foo'
         15        ECHO                                                     ~9
   17    16        ECHO                                                     '%3Cbr%3EInstantiating+an+InfoBlob+with+an+uppercase+I%3Cbr%3E'
   18    17        NEW                                              $10     'InfoBlob'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !1, $10
   19    20        FETCH_OBJ_R                                      ~13     !1, 'foo'
         21        ECHO                                                     ~13
         22      > RETURN                                                   1

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

End of function infoblob

End of class InfoBlob.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.98 ms | 1388 KiB | 17 Q