3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test(ArrayAccess $errors) { $errors[] = 'This is an error!'; } } $foo->test($error, $errors = array()); var_dump($errors);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/REl0g
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo, !1 = $error, !2 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                         !0, 'test'
          1        SEND_VAR_EX                                              !1
          2        ASSIGN                                           ~3      !2, <array>
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
   14     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Foo:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/REl0g
function name:  test
number of ops:  4
compiled vars:  !0 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  'This+is+an+error%21'
    9     3      > RETURN                                                   null

End of function test

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.6 ms | 1386 KiB | 15 Q