3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { // In Symfony 5.4 this is: // public static function test($s, $i, $m); // In Symfony 6.0 this is: public static function test(string $s, int $i, mixed $m): mixed; } class A implements I { public static function test($s, $i, $m) { var_dump($s, $i, $m); } } A::test('string', 1, NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BabgE
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                                'a'
   16     1        INIT_STATIC_METHOD_CALL                                      'A', 'test'
          2        SEND_VAL_EX                                                  'string'
          3        SEND_VAL_EX                                                  1
          4        SEND_VAL_EX                                                  null
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class I:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BabgE
function name:  test
number of ops:  5
compiled vars:  !0 = $s, !1 = $i, !2 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        VERIFY_RETURN_TYPE                                           
          4      > RETURN                                                       null

End of function test

End of class I.

Class A:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BabgE
function name:  test
number of ops:  9
compiled vars:  !0 = $s, !1 = $i, !2 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
   12     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !0
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !2
          7        DO_ICALL                                                     
   13     8      > RETURN                                                       null

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.6 ms | 1885 KiB | 14 Q