3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_this = new class { public $Code = 'en'; }; echo sprintf( '<script type="text/javascript">var Lang=%s;</script>', json_encode($_this) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qQunD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $_this
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    6     4        INIT_FCALL                                               'sprintf'
    7     5        SEND_VAL                                                 '%3Cscript+type%3D%22text%2Fjavascript%22%3Evar+Lang%3D%25s%3B%3C%2Fscript%3E'
    8     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
    9    12      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1394 KiB | 17 Q