3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { protected $myProperty; public function __construct( $property ) { $this -> myProperty = $property; } public function getPropertyValue() { return $this -> myProperty; } } for( $i = 0; $i<= 100000; $i++ ) { $myClass = new MyClass( 'Property Value' ); echo $myClass -> getPropertyValue(), "\n"; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/cdQiR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $i, !1 = $myClass
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->11
   19     2    >   NEW                                                  $3      'MyClass'
          3        SEND_VAL_EX                                                  'Property+Value'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $3
   21     6        INIT_METHOD_CALL                                             !1, 'getPropertyValue'
          7        DO_FCALL                                          0  $6      
          8        ECHO                                                         $6
          9        ECHO                                                         '%0A'
   17    10        PRE_INC                                                      !0
         11    >   IS_SMALLER_OR_EQUAL                                          !0, 100000
         12      > JMPNZ                                                        ~8, ->2
   22    13    > > RETURN                                                       1

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cdQiR
function name:  __construct
number of ops:  4
compiled vars:  !0 = $property
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    9     1        ASSIGN_OBJ                                                   'myProperty'
          2        OP_DATA                                                      !0
   10     3      > RETURN                                                       null

End of function __construct

Function getpropertyvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cdQiR
function name:  getPropertyValue
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                          ~0      'myProperty'
          1      > RETURN                                                       ~0
   14     2*     > RETURN                                                       null

End of function getpropertyvalue

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.97 ms | 9596 KiB | 13 Q