3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump((new ReflectionClass('libXMLError'))->getProperties());
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array(6) { [0]=> object(ReflectionProperty)#2 (2) { ["name"]=> string(5) "level" ["class"]=> string(11) "LibXMLError" } [1]=> object(ReflectionProperty)#3 (2) { ["name"]=> string(4) "code" ["class"]=> string(11) "LibXMLError" } [2]=> object(ReflectionProperty)#4 (2) { ["name"]=> string(6) "column" ["class"]=> string(11) "LibXMLError" } [3]=> object(ReflectionProperty)#5 (2) { ["name"]=> string(7) "message" ["class"]=> string(11) "LibXMLError" } [4]=> object(ReflectionProperty)#6 (2) { ["name"]=> string(4) "file" ["class"]=> string(11) "LibXMLError" } [5]=> object(ReflectionProperty)#7 (2) { ["name"]=> string(4) "line" ["class"]=> string(11) "LibXMLError" } }
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
array(0) { }

preferences:
113.24 ms | 2049 KiB | 4 Q