3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __call($func, array $args) { echo "$func was called"; } } $f = new foo; echo $f-> Я хочу поддержку DSL в PHP();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5bud
function name:  (null)
number of ops:  7
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, '%D0%AF%E2%80%AF%D1%85%D0%BE%D1%87%D1%83%E2%80%AF%D0%BF%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%BA%D1%83%E2%80%AFDSL%E2%80%AF%D0%B2%E2%80%AFPHP'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class Foo:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5bud
function name:  __call
number of ops:  6
compiled vars:  !0 = $func, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      !0, '+was+called'
          4        ECHO                                                     ~2
    6     5      > RETURN                                                   null

End of function __call

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.67 ms | 1393 KiB | 13 Q