3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Basis { public function __construct($args = null) { if (is_numeric($args) && $args > 0) echo 'Geen argumenten gebruiken halve gare!'; } } class Testing extends Basis { public function __construct() { parent::__construct(func_num_args()); } } $test = new Testing('stiekem een argument toegevoegd!');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4TdeE
function name:  (null)
number of ops:  5
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Testing'
          1        SEND_VAL_EX                                              'stiekem+een+argument+toegevoegd%21'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class Basis:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 7
filename:       /in/4TdeE
function name:  __construct
number of ops:  10
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    6     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPZ_EX                                          ~2      $1, ->7
          5    >   IS_SMALLER                                       ~3      0, !0
          6        BOOL                                             ~2      ~3
          7    > > JMPZ                                                     ~2, ->9
          8    >   ECHO                                                     'Geen+argumenten+gebruiken+halve+gare%21'
    7     9    > > RETURN                                                   null

End of function __construct

End of class Basis.

Class Testing:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4TdeE
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        FUNC_NUM_ARGS                                    ~0      
          2        SEND_VAL_EX                                              ~0
          3        DO_FCALL                                      0          
   15     4      > RETURN                                                   null

End of function __construct

End of class Testing.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.42 ms | 1401 KiB | 15 Q