3v4l.org

run code in 300+ PHP versions simultaneously
<?php function google($x){function_exists($x)||eval("function $x($y){echo $y;}");$x(strlen($x));} google('bing'); google('bing'); google('google');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M0jEB
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'google'
          1        SEND_VAL                                                 'bing'
          2        DO_FCALL                                      0          
    6     3        INIT_FCALL                                               'google'
          4        SEND_VAL                                                 'bing'
          5        DO_FCALL                                      0          
    7     6        INIT_FCALL                                               'google'
          7        SEND_VAL                                                 'google'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function google:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/M0jEB
function name:  google
number of ops:  19
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'function_exists'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4      > JMPNZ_EX                                         ~3      $2, ->14
          5    >   ROPE_INIT                                     7  ~5      'function+'
          6        ROPE_ADD                                      1  ~5      ~5, !0
          7        ROPE_ADD                                      2  ~5      ~5, '%28'
          8        ROPE_ADD                                      3  ~5      ~5, !1
          9        ROPE_ADD                                      4  ~5      ~5, '%29%7Becho+'
         10        ROPE_ADD                                      5  ~5      ~5, !1
         11        ROPE_END                                      6  ~4      ~5, '%3B%7D'
         12        INCLUDE_OR_EVAL                                  $9      ~4, EVAL
         13        BOOL                                             ~3      $9
         14    >   INIT_DYNAMIC_CALL                                        !0
         15        STRLEN                                           ~10     !0
         16        SEND_VAL_EX                                              ~10
         17        DO_FCALL                                      0          
         18      > RETURN                                                   null

End of function google

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.65 ms | 1399 KiB | 18 Q