3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function test(string $s, int $i, mixed $m) {} } class B extends A { public static function test($s, $i, $m) { var_dump($s, $i, $m); } } B::test('string', 1, NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdCsl
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'B', 'test'
          1        SEND_VAL                                                 'string'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 null
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function test

End of class A.

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

End of function test

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.43 ms | 1400 KiB | 15 Q