3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($method, $params){ if ($method == 'as') { echo $params[0]; } } } $x = new foo; $x->𝕒s('balls');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ng9DY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, '%F0%9D%95%92s'
          4        SEND_VAL_EX                                              'balls'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class foo:
Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/Ng9DY
function name:  __call
number of ops:  7
compiled vars:  !0 = $method, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        IS_EQUAL                                                 !0, 'as'
          3      > JMPZ                                                     ~2, ->6
    7     4    >   FETCH_DIM_R                                      ~3      !1, 0
          5        ECHO                                                     ~3
    9     6    > > RETURN                                                   null

End of function __call

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.2 ms | 1393 KiB | 13 Q