3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Random { if (!\class_exists(\Random\Randomizer::class)) { final class Randomizer { public function nextInt(): int { return 1; } } } } namespace { $randomizer = new \Random\Randomizer; \var_dump($randomizer->nextInt()); }
Output for 8.3.6
int(463134319330790738)
Output for 8.3.5
int(6697642399914545500)
Output for 8.3.4
int(8817604363042111986)
Output for 8.3.3
int(6019577458358072454)
Output for 8.3.2
int(3149886474181698835)
Output for 8.3.1
int(8344388949338483305)
Output for 8.3.0
int(6857898588844782600)
Output for 8.2.18
int(8201958609401161883)
Output for 8.2.17
int(2728447205364701211)
Output for 8.2.16
int(6370527817210675804)
Output for 8.2.15
int(6141006819452089795)
Output for 8.2.14
int(7168808142503684916)
Output for 8.2.13
int(443506119038648587)
Output for 8.2.12
int(1431530265421239229)
Output for 8.2.11
int(6167665259461707951)
Output for 8.2.10
int(8334275067854352330)
Output for 8.2.9
int(6775649417732432552)
Output for 8.2.8
int(8988134037844017382)
Output for 8.2.7
int(564887861764551598)
Output for 8.2.6
int(1206090095346430909)
Output for 8.2.5
int(3667677434996616181)
Output for 8.2.4
int(2688002384008025540)
Output for 8.2.3
int(4498278258336667871)
Output for 8.2.2
int(4433829354760423960)
Output for 8.2.1
int(7165825829462015808)
Output for 8.2.0
int(4172000719855440531)
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28
int(1)

preferences:
128.36 ms | 402 KiB | 121 Q