3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); interface tester { public function test(?string $argument = null): void; } class testerImplementation implements tester { public function test(string $argument = null): void {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4u1L
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
   10     3        DECLARE_CLASS                                                'testerimplementation'
   14     4      > RETURN                                                       1

Class tester:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4u1L
function name:  test
number of ops:  2
compiled vars:  !0 = $argument
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                            !0      null
          1      > RETURN                                                       null

End of function test

End of class tester.

Class testerImplementation:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4u1L
function name:  test
number of ops:  2
compiled vars:  !0 = $argument
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV_INIT                                            !0      null
   13     1      > RETURN                                                       null

End of function test

End of class testerImplementation.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.72 ms | 489 KiB | 10 Q