3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = unserialize(new ReflectionClass('Collator'));
Output for 7.1.0
Notice: unserialize(): Error at offset 0 of 3536 bytes in /in/afrj9 on line 3
Output for 5.4.34 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 5.6.28, 7.0.0 - 7.0.4, 7.0.6 - 7.0.14
Notice: unserialize(): Error at offset 0 of 3368 bytes in /in/afrj9 on line 3
Output for 7.0.5
Fatal error: Uncaught ReflectionException: Class Collator does not exist in /in/afrj9:3 Stack trace: #0 /in/afrj9(3): ReflectionClass->__construct('Collator') #1 {main} thrown in /in/afrj9 on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Notice: Unable to unserialize: [Class [ <internal:> class Collator ] { - Constants [24] { Constant [ integer SORT_NUMERIC {2} ] Constant [ integer SORT_REGULAR {0} ] Constant [ integer SORT_STRING {1} ] Constant [ integer PRIMARY {0} ] Constant [ integer OFF {16} ] Constant [ integer ON {17} ] Constant [ integer SHIFTED {20} ] Constant [ integer FRENCH_COLLATION {0} ] Constant [ integer ALTERNATE_HANDLING {1} ] Constant [ integer CASE_FIRST {2} ] Constant [ integer CASE_LEVEL {3} ] Constant [ integer NORMALIZATION_MODE {4} ] Constant [ integer STRENGTH {5} ] Constant [ integer NUMERIC_COLLATION {7} ] Constant [ integer SECONDARY {1} ] Constant [ integer TERTIARY {2} ] Constant [ integer DEFAULT_STRENGTH {2} ] Constant [ integer QUATERNARY {3} ] Constant [ integer IDENTICAL {15} ] Constant [ integer NON_IGNORABLE {21} ] Constant [ integer LOWER_FIRST {24} ] Constant [ integer UPPER_FIRST {25} ] Constant [ integer DEFAULT_VAL]. Expected ':' but got 'l'. in /in/afrj9 on line 3
Output for hhvm-3.10.0
Notice: Unable to unserialize: [Class [ <internal:> class Collator ] { - Constants [24] { Constant [ integer DEFAULT_VALUE {-1} ] Constant [ integer SORT_NUMERIC {2} ] Constant [ integer SORT_REGULAR {0} ] Constant [ integer SORT_STRING {1} ] Constant [ integer PRIMARY {0} ] Constant [ integer OFF {16} ] Constant [ integer ON {17} ] Constant [ integer SHIFTED {20} ] Constant [ integer FRENCH_COLLATION {0} ] Constant [ integer ALTERNATE_HANDLING {1} ] Constant [ integer CASE_FIRST {2} ] Constant [ integer CASE_LEVEL {3} ] Constant [ integer NORMALIZATION_MODE {4} ] Constant [ integer STRENGTH {5} ] Constant [ integer NUMERIC_COLLATION {7} ] Constant [ integer SECONDARY {1} ] Constant [ integer TERTIARY {2} ] Constant [ integer DEFAULT_STRENGTH {2} ] Constant [ integer QUATERNARY {3} ] Constant [ integer IDENTICAL {15} ] Constant [ integer NON_IGNORABLE {21} ] Constant [ integer LOWER_FIRST {24} ] Constant [ integer UPPER_FIR]. Expected ':' but got 'l'. in /in/afrj9 on line 3
Output for 5.0.3 - 5.4.32, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Collator does not exist' in /in/afrj9:3 Stack trace: #0 /in/afrj9(3): ReflectionClass->__construct('Collator') #1 {main} thrown in /in/afrj9 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Collator does not exist' in /in/afrj9:3 Stack trace: #0 {main} thrown in /in/afrj9 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/afrj9 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/afrj9 on line 3