3v4l.org

run code in 200+ PHP versions simultaneously
<?php class FizzBuzz { public function __call($n, $args) { return [0b10=>@Fizz,0b01=>@Buzz,0b11=>@FizzBuzz][(!($n%3)<<1)|!($n%5)]??$n; } } $fb = new FizzBuzz; var_dump($fb->{"0"}()); var_dump($fb->{"1"}()); var_dump($fb->{"2"}()); var_dump($fb->{"3"}()); var_dump($fb->{"4"}()); var_dump($fb->{"5"}()); var_dump($fb->{"6"}()); var_dump($fb->{"7"}()); var_dump($fb->{"8"}()); var_dump($fb->{"9"}()); var_dump($fb->{"10"}());
based on 5h9Wg

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.0rc20.0040.00914.86
7.4.0rc10.0050.00914.97
7.4.0beta40.0080.00714.95
7.4.0beta20.0060.00814.97
7.4.0beta10.0090.00414.81
7.4.0alpha30.0090.00515.13
7.4.0alpha20.0060.00914.92
7.4.0alpha10.0070.01114.88
7.3.100.0050.00914.67
7.3.90.0080.00614.78
7.3.80.0050.00914.86
7.3.70.0100.00414.73
7.3.60.0060.01114.86
7.3.50.0080.00614.73
7.3.40.0090.00714.85
7.3.30.0060.00814.74
7.3.20.0060.00914.86
7.3.10.0060.00814.98
7.3.00.0100.00414.68
7.2.230.0060.01014.94
7.2.220.0050.00914.88
7.2.210.0090.00615.05
7.2.200.0110.00314.89
7.2.190.0070.00815.05
7.2.180.0090.00914.93
7.2.170.0050.01114.99
7.2.160.0100.00314.96
7.2.150.0040.01015.09
7.2.140.0080.00614.89
7.2.130.0030.01215.12
7.2.120.0100.00515.09
7.2.110.0070.00714.94
7.2.100.0210.00715.02
7.2.90.0050.01015.09
7.2.80.0070.00915.24
7.2.70.0080.01115.14
7.2.60.0060.01215.14
7.2.50.0120.00614.91
7.2.40.0120.00515.12
7.2.30.0070.00915.10
7.2.20.0090.00615.02
7.2.10.0070.00915.12
7.2.00.0110.00615.01
7.1.320.0030.01013.99
7.1.310.0040.01013.69
7.1.300.0080.00613.96
7.1.290.0070.00813.82
7.1.280.0100.00513.95
7.1.270.0080.00513.91
7.1.260.0070.00713.83
7.1.250.0090.00413.95