3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); /* Akzeptiert NULL Werte */ function test(int? $obj) { } test(null); test(2);

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.0.20.0170.04720.09
7.0.10.0070.08020.20
7.0.00.0070.07720.06
5.6.170.0300.07720.47
5.6.160.0100.04720.57
5.6.150.0030.04318.17
5.6.140.0030.04018.21
5.6.130.0170.06318.28
5.6.120.0000.04321.03
5.6.110.0030.04321.11
5.6.100.0030.04021.02
5.6.90.0100.08720.98
5.6.80.0100.07020.29
5.5.310.0270.04320.34
5.5.300.0070.03317.96
5.5.290.0100.06018.08
5.5.280.0070.03720.65
5.5.270.0000.07320.75
5.5.260.0100.08020.85
5.5.250.0070.04020.58
5.5.240.0070.02720.27

preferences:
141.64 ms | 1394 KiB | 7 Q