3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); interface PhpApplication { public function updateStuff(bool $includeNulls = false): void; } final class Joomla implements PhpApplication { public function updateStuff(bool $includeNulls = true): void { var_dump('nulls included: ' . ($includeNulls ? 'yes' : 'no')); } } (new Joomla())->updateStuff(false); (new Joomla())->updateStuff(true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vg1Y3
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'joomla'
   16     1        NEW                                                  $0      'Joomla'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'updateStuff'
          4        SEND_VAL_EX                                                  <false>
          5        DO_FCALL                                          0          
   17     6        NEW                                                  $3      'Joomla'
          7        DO_FCALL                                          0          
          8        INIT_METHOD_CALL                                             $3, 'updateStuff'
          9        SEND_VAL_EX                                                  <true>
         10        DO_FCALL                                          0          
         11      > RETURN                                                       1

Class PhpApplication:
Function updatestuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vg1Y3
function name:  updateStuff
number of ops:  2
compiled vars:  !0 = $includeNulls
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                            !0      <false>
          1      > RETURN                                                       null

End of function updatestuff

End of class PhpApplication.

Class Joomla:
Function updatestuff:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vg1Y3
function name:  updateStuff
number of ops:  10
compiled vars:  !0 = $includeNulls
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                            !0      <true>
   12     1        INIT_FCALL                                                   'var_dump'
          2      > JMPZ                                                         !0, ->5
          3    >   QM_ASSIGN                                            ~1      'yes'
          4      > JMP                                                          ->6
          5    >   QM_ASSIGN                                            ~1      'no'
          6    >   CONCAT                                               ~2      'nulls+included%3A+', ~1
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                                     
   13     9      > RETURN                                                       null

End of function updatestuff

End of class Joomla.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.29 ms | 2161 KiB | 14 Q