3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); class ClassWithTypedProperty { public int $number; public function __construct() { $this->number = 1234; } public function __set($name, $value) { printf("UNEXPECTED SETTING OF %s\n", $name); } } printf("\n--- Typed Property ---\n"); var_dump(new ClassWithTypedProperty());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5CBW
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   18     3        INIT_FCALL                                               'printf'
          4        SEND_VAL                                                 '%0A---+Typed+Property+---%0A'
          5        DO_ICALL                                                 
   19     6        INIT_FCALL                                               'var_dump'
          7        NEW                                              $2      'ClassWithTypedProperty'
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class ClassWithTypedProperty:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5CBW
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_OBJ                                               'number'
          1        OP_DATA                                                  1234
   11     2      > RETURN                                                   null

End of function __construct

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5CBW
function name:  __set
number of ops:  7
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_FCALL                                               'printf'
          3        SEND_VAL                                                 'UNEXPECTED+SETTING+OF+%25s%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   15     6      > RETURN                                                   null

End of function __set

End of class ClassWithTypedProperty.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
367.61 ms | 1003 KiB | 17 Q