3v4l.org

run code in 300+ PHP versions simultaneously
<?php ///on php version < 8.4 class Foo { private $data = null; public function issetData(){ return $this->data !== null; } public function setData($data){ $this->data = $data; } } $foo = new Foo(); var_dump($foo->issetData()); $foo->setData(123); var_dump($foo->issetData());

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.120.0090.01124.38
8.4.110.0050.00420.43
8.4.100.0110.01019.08
8.4.90.0130.00720.53
8.4.80.0040.00518.77
8.4.70.0100.00920.70
8.4.60.0140.00618.60
8.4.50.0090.00720.47
8.4.40.0140.00717.54
8.4.30.0130.00920.52
8.4.20.0130.00918.17
8.4.10.0130.00319.48
8.3.250.0090.00916.98
8.3.240.0100.00916.95
8.3.230.0130.00816.84
8.3.220.0100.00819.05
8.3.210.0050.00218.49
8.3.200.0040.00516.40
8.3.190.0070.00717.36
8.3.180.0120.00718.96
8.3.170.0090.00917.29
8.3.160.0030.01218.53
8.3.150.0290.00317.52
8.3.140.0140.00418.34
8.3.50.0100.00718.66
8.2.290.0100.00820.51
8.2.280.0130.00718.17
8.2.270.0040.00418.39
8.2.260.0040.01118.32
8.1.320.0050.00316.43

preferences:
26.16 ms | 403 KiB | 5 Q