3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Model { private $id; } $time = microtime(true); for ($i = 0; $i < 500000; $i++) { $model = new Model; $refl = new ReflectionClass('Model'); $property = $refl->getProperty('id'); $property->setAccessible(true); $property->setValue($model, 'test'); } $time = microtime(true) - $time; echo 'ReflectionClass took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
Output for 7.1.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.393 seconds and returned 0 entries
Output for 5.4.5, 7.0.14
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.507 seconds and returned 0 entries
Output for 7.0.6
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.325 seconds and returned 0 entries
Output for 7.0.5
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.377 seconds and returned 0 entries
Output for 7.0.4
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.357 seconds and returned 0 entries
Output for 7.0.3
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.317 seconds and returned 0 entries
Output for 7.0.2
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.331 seconds and returned 0 entries
Output for 7.0.1
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.356 seconds and returned 0 entries
Output for 7.0.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.342 seconds and returned 0 entries
Output for 5.6.28
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.016 seconds and returned 0 entries
Output for 5.6.21
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.563 seconds and returned 0 entries
Output for 5.3.14, 5.6.20
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.650 seconds and returned 0 entries
Output for 5.6.19
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.553 seconds and returned 0 entries
Output for 5.6.18
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.552 seconds and returned 0 entries
Output for 5.6.17
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.642 seconds and returned 0 entries
Output for 5.6.16
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.529 seconds and returned 0 entries
Output for 5.6.15
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.515 seconds and returned 0 entries
Output for 5.5.9, 5.5.14, 5.5.28, 5.5.32, 5.6.14
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.612 seconds and returned 0 entries
Output for 5.6.13
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.619 seconds and returned 0 entries
Output for 5.6.12
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.635 seconds and returned 0 entries
Output for 5.6.11
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.643 seconds and returned 0 entries
Output for 5.5.1, 5.6.10
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.621 seconds and returned 0 entries
Output for 5.5.24, 5.6.9
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.603 seconds and returned 0 entries
Output for 5.4.42, 5.6.8
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.606 seconds and returned 0 entries
Output for 5.6.7
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.610 seconds and returned 0 entries
Output for 5.4.16, 5.6.6
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.479 seconds and returned 0 entries
Output for 5.6.5
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.480 seconds and returned 0 entries
Output for 5.6.4
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.490 seconds and returned 0 entries
Output for 5.5.15 - 5.5.16, 5.6.3
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.598 seconds and returned 0 entries
Output for 5.5.18, 5.6.2
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.602 seconds and returned 0 entries
Output for 5.6.1
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.641 seconds and returned 0 entries
Output for 5.5.8, 5.5.25, 5.5.34, 5.6.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.605 seconds and returned 0 entries
Output for 5.4.20, 5.4.30, 5.5.5, 5.5.35
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.616 seconds and returned 0 entries
Output for 5.5.33
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.646 seconds and returned 0 entries
Output for 5.5.31
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.639 seconds and returned 0 entries
Output for 5.5.30
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.626 seconds and returned 0 entries
Output for 5.5.29
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.615 seconds and returned 0 entries
Output for 5.5.3, 5.5.27
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.608 seconds and returned 0 entries
Output for 5.4.6, 5.5.26
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.604 seconds and returned 0 entries
Output for 5.5.23
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.559 seconds and returned 0 entries
Output for 5.5.22
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.565 seconds and returned 0 entries
Output for 5.5.21
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.484 seconds and returned 0 entries
Output for 5.5.20
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.755 seconds and returned 0 entries
Output for 5.5.19
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.527 seconds and returned 0 entries
Output for 5.5.13
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.928 seconds and returned 0 entries
Output for 5.5.12
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.613 seconds and returned 0 entries
Output for 5.4.11, 5.5.11
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.614 seconds and returned 0 entries
Output for 5.5.10
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.636 seconds and returned 0 entries
Output for 5.4.40, 5.5.7
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.599 seconds and returned 0 entries
Output for 5.5.6
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.600 seconds and returned 0 entries
Output for 5.5.4
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.611 seconds and returned 0 entries
Output for 5.5.2
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.567 seconds and returned 0 entries
Output for 5.4.26, 5.5.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.601 seconds and returned 0 entries
Output for 5.4.21, 5.4.45
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.593 seconds and returned 0 entries
Output for 5.4.44
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.609 seconds and returned 0 entries
Output for 5.4.4, 5.4.12, 5.4.43
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.596 seconds and returned 0 entries
Output for 5.4.39, 5.4.41
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.588 seconds and returned 0 entries
Output for 5.4.38
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.503 seconds and returned 0 entries
Output for 5.4.7, 5.4.14, 5.4.18, 5.4.37
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.595 seconds and returned 0 entries
Output for 5.4.36
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.464 seconds and returned 0 entries
Output for 5.4.35
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.482 seconds and returned 0 entries
Output for 5.4.34
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.587 seconds and returned 0 entries
Output for 5.4.32
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.574 seconds and returned 0 entries
Output for 5.4.31
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.586 seconds and returned 0 entries
Output for 5.4.29
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.590 seconds and returned 0 entries
Output for 5.4.25, 5.4.28
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.583 seconds and returned 0 entries
Output for 5.4.27
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.579 seconds and returned 0 entries
Output for 5.4.24
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.494 seconds and returned 0 entries
Output for 5.4.19, 5.4.23
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.594 seconds and returned 0 entries
Output for 5.4.22
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.582 seconds and returned 0 entries
Output for 5.4.9, 5.4.17
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.591 seconds and returned 0 entries
Output for 5.4.15
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.571 seconds and returned 0 entries
Output for 5.4.13
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.589 seconds and returned 0 entries
Output for 5.4.10
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.537 seconds and returned 0 entries
Output for 5.4.8
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.498 seconds and returned 0 entries
Output for 5.4.3
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.560 seconds and returned 0 entries
Output for 5.4.2
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.475 seconds and returned 0 entries
Output for 5.4.1
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.491 seconds and returned 0 entries
Output for 5.4.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.474 seconds and returned 0 entries
Output for 5.3.29
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.891 seconds and returned 0 entries
Output for 5.3.28
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.845 seconds and returned 0 entries
Output for 5.3.4, 5.3.18, 5.3.27
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.831 seconds and returned 0 entries
Output for 5.3.26
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.857 seconds and returned 0 entries
Output for 5.3.25
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.843 seconds and returned 0 entries
Output for 5.3.24
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.729 seconds and returned 0 entries
Output for 5.3.23
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.737 seconds and returned 0 entries
Output for 5.3.22
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.878 seconds and returned 0 entries
Output for 5.3.21
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.890 seconds and returned 0 entries
Output for 5.3.20
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.724 seconds and returned 0 entries
Output for 5.3.19
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.851 seconds and returned 0 entries
Output for 5.3.17
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.835 seconds and returned 0 entries
Output for 5.3.1, 5.3.16
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.819 seconds and returned 0 entries
Output for 5.3.15
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.867 seconds and returned 0 entries
Output for 5.3.13
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.730 seconds and returned 0 entries
Output for 5.3.12
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 1.235 seconds and returned 0 entries
Output for 5.3.11
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.779 seconds and returned 0 entries
Output for 5.3.10
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.711 seconds and returned 0 entries
Output for 5.3.9
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.680 seconds and returned 0 entries
Output for 5.3.8
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.820 seconds and returned 0 entries
Output for 5.3.7
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.874 seconds and returned 0 entries
Output for 5.3.6
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.836 seconds and returned 0 entries
Output for 5.3.5
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.816 seconds and returned 0 entries
Output for 5.3.3
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.823 seconds and returned 0 entries
Output for 5.3.2
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.813 seconds and returned 0 entries
Output for 5.3.0
Notice: Undefined variable: data_diff1 in /in/7IBWq on line 19 ReflectionClass took 0.838 seconds and returned 0 entries
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined method ReflectionProperty::setAccessible() in /in/7IBWq on line 14
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7IBWq on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7IBWq on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/7IBWq on line 4
Process exited with code 255.