3v4l.org

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

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WThZh
function name:  g
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_STATIC_METHOD_CALL                                  'google', !0
          2        DO_FCALL                                      0          
          3      > RETURN                                                   null

End of function g

Class google:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WThZh
function name:  __call
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        STRLEN                                           ~2      !0
          3        ECHO                                                     ~2
          4      > RETURN                                                   null

End of function __call

End of class google.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1398 KiB | 16 Q