3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function create ($a, $b) { print 'A: ' . $a . ' ' . $b . "\n"; } } class B { public static function create ($a) { print 'B: ' . $a . "\n"; } } A::create(1, 2); B::create(3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NVKBD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'create'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        DO_FCALL                                      0          
   12     4        INIT_STATIC_METHOD_CALL                                  'B', 'create'
          5        SEND_VAL                                                 3
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class A:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NVKBD
function name:  create
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        CONCAT                                           ~2      'A%3A+', !0
          3        CONCAT                                           ~3      ~2, '+'
          4        CONCAT                                           ~4      ~3, !1
          5        CONCAT                                           ~5      ~4, '%0A'
          6        ECHO                                                     ~5
          7      > RETURN                                                   null

End of function create

End of class A.

Class B:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NVKBD
function name:  create
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        CONCAT                                           ~1      'B%3A+', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
          4      > RETURN                                                   null

End of function create

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.28 ms | 1394 KiB | 13 Q