3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $collator = new Collator('en'); var_dump($collator->compare('Æther', 'AEther'));
Output for 5.4.0 - 5.4.45, 5.5.35, 5.6.21 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.6 - 7.1.0
int(1)
Output for 7.0.0 - 7.0.5
Fatal error: Uncaught Error: Class 'Collator' not found in /in/6um2e:3 Stack trace: #0 {main} thrown in /in/6um2e on line 3
Process exited with code 255.
Output for 5.2.3 - 5.3.29, 5.5.0 - 5.5.34, 5.6.0 - 5.6.20
Fatal error: Class 'Collator' not found in /in/6um2e on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Class 'Collator' not found in <b>/in/6um2e</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: collator in <b>/in/6um2e</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: collator in <b>/in/6um2e</b> on line <b>3</b><br />