3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("memory_limit", "5M"); class Foo { public function __set($prop, $value) { echo "__set($prop, $value)\n"; if ($value == "bar") { str_repeat("a", 1e7); } } } $foo = new Foo(); register_shutdown_function(function() use ($foo) { $foo->bar = 'baz'; }); $foo->bar = 'bar';

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.4.10.0080.00019.61
8.3.140.0030.00517.24
8.3.130.0080.00018.58
8.3.120.0060.01019.14
8.3.110.0040.01520.94
8.3.100.0060.00918.71
8.3.90.0050.00326.77
8.3.80.0090.00017.00
8.3.70.0160.00316.88
8.3.60.0090.00916.75
8.3.50.0090.00616.68
8.3.40.0070.01420.17
8.3.30.0070.00721.86
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00526.16
8.2.260.0120.00618.47
8.2.250.0040.00418.60
8.2.240.0030.00618.94
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0090.00018.16
8.2.190.0110.00716.58
8.2.180.0100.01016.50
8.2.170.0140.00719.03
8.2.160.0090.00922.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00326.16
8.2.110.0060.00326.16
8.2.100.0060.00326.16
8.2.90.0050.00526.16
8.2.80.0050.00526.16
8.2.70.0030.00626.16
8.2.60.0060.00326.16
8.2.50.0090.00026.16
8.2.40.0090.00026.16
8.2.30.0060.00326.16
8.2.20.0050.00526.16
8.2.10.0040.00426.16
8.2.00.0030.00626.16
8.1.310.0030.00716.71
8.1.300.0100.00019.88
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0050.00323.99
8.1.260.0030.00626.16
8.1.250.0060.00326.16
8.1.240.0030.00626.16
8.1.230.0080.00026.16
8.1.220.0040.00426.16
8.1.210.0060.00326.16
8.1.200.0060.00326.16
8.1.190.0070.00326.16
8.1.180.0040.00426.16
8.1.170.0030.00626.16
8.1.160.0090.00026.16
8.1.150.0080.00026.16
8.1.140.0040.00426.16
8.1.130.0040.00426.16
8.1.120.0040.00426.16
8.1.110.0030.00626.16
8.1.100.0090.00026.16
8.1.90.0050.00526.16
8.1.80.0060.00326.16
8.1.70.0060.00326.16
8.1.60.0030.00626.16
8.1.50.0080.00026.16
8.1.40.0080.00026.16
8.1.30.0040.00726.16
8.1.20.0100.00026.16
8.1.10.0050.00526.16
8.1.00.0030.00726.16

preferences:
27.05 ms | 403 KiB | 5 Q