3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $isTrue = true; function foo() { echo 'foo'; $this->isTrue = false; } function bar() { echo 'bar'; } function baz() { if ($this->isTrue) { $this->foo(); } if (!$this->isTrue) { $this->bar(); } } } (new Foo)->baz();

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)
8.3.60.0120.00316.63
8.3.50.0170.00320.04
8.3.40.0130.00720.16
8.3.30.0030.01318.69
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.180.0150.00425.92
8.2.170.0040.01118.91
8.2.160.0070.01022.96
8.2.150.0000.00725.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0080.00020.62
8.2.110.0100.00621.43
8.2.100.0030.00620.47
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0000.00918.94
8.1.230.0030.00618.88
8.1.10.0020.00617.41

preferences:
39.66 ms | 400 KiB | 5 Q