3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('A', null); class Foo { const NO_VALUE = null; public static function bar(Foo $param = A) { if ($param == self::NO_VALUE) echo "Param was NO_VALUE" else echo "Param was a valid instance of Foo"; } }

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)
5.4.130.0170.04112.04
5.4.120.0230.07811.99
5.4.110.0150.04311.99
5.4.100.0190.04111.99
5.4.90.0180.04311.99
5.4.80.0160.04311.98
5.4.70.0320.05411.98
5.4.60.0170.04111.98
5.4.50.0150.04111.99
5.4.40.0140.04511.97
5.4.30.0150.05711.97
5.4.20.0130.04411.97
5.4.10.0130.04311.97
5.4.00.0150.04211.46
5.3.230.0140.04712.71
5.3.220.0180.04312.68
5.3.210.0260.06512.68
5.3.200.0120.04612.68
5.3.190.0170.04312.68
5.3.180.0160.04512.67
5.3.170.0160.04412.67
5.3.160.0140.04612.67
5.3.150.0150.04512.67
5.3.140.0210.07112.66
5.3.130.0230.07012.66
5.3.120.0140.04512.66
5.3.110.0130.04812.66
5.3.100.0180.04312.12
5.3.90.0160.04312.09
5.3.80.0190.04112.07
5.3.70.0270.07612.08
5.3.60.0140.04512.06
5.3.50.0180.04012.01
5.3.40.0190.04012.00
5.3.30.0160.04311.96
5.3.20.0150.05711.74
5.3.10.0150.04111.70
5.3.00.0220.06411.69

preferences:
142.05 ms | 1386 KiB | 7 Q