3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace security; function get_user() { $user = (object) array('email' => 'abcd@abcd.com', 'name' => 'John Doe'); return $user; } echo "<li><p class=\"navbar-text\">Welcome, {${function(){$x=\security\get_user()->name;return 'x';}}}</p></li>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JS6ZS
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ROPE_INIT                                     3  ~3      '%3Cli%3E%3Cp+class%3D%22navbar-text%22%3EWelcome%2C+'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00security%5C%7Bclosure%7D%2Fin%2FJS6ZS%3A9%240'
          2        FETCH_R                      local               ~1      ~0
          3        ROPE_ADD                                      1  ~3      ~3, ~1
          4        ROPE_END                                      2  ~2      ~3, '%3C%2Fp%3E%3C%2Fli%3E'
          5        ECHO                                                     ~2
          6      > RETURN                                                   1

Function security%5Cget_user:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JS6ZS
function name:  security\get_user
number of ops:  4
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   CAST                                          8  ~1      <array>
          1        ASSIGN                                                   !0, ~1
    6     2      > RETURN                                                   !0
    7     3*     > RETURN                                                   null

End of function security%5Cget_user

Function %00security%5C%7Bclosure%7D%2Fin%2FJS6ZS%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JS6ZS
function name:  security\{closure}
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'security%5Cget_user'
          1        DO_FCALL                                      0  $1      
          2        FETCH_OBJ_R                                      ~2      $1, 'name'
          3        ASSIGN                                                   !0, ~2
          4      > RETURN                                                   'x'
          5*     > RETURN                                                   null

End of function %00security%5C%7Bclosure%7D%2Fin%2FJS6ZS%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.28 ms | 1402 KiB | 14 Q