3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo error_reporting(), "\n"; error_reporting(-1); namespace one { function assert($assertion, $description) { echo __FUNCTION__, "\n"; assert($assertion, $description); } } namespace two { use function one\assert; assert('1 == true'); assert('true == false'); } namespace three { assert('1 == true'); assert('true == false'); }

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.270.0130.05718.98
5.4.260.0030.06018.98
5.4.250.0130.07718.99
5.4.240.0130.06018.75
5.4.230.0130.06018.91
5.4.220.0070.06018.99
5.4.210.0200.06019.06
5.4.200.0170.05718.78
5.4.190.0070.08718.85
5.4.180.0130.05719.05
5.4.170.0130.07019.05
5.4.160.0170.06019.04
5.4.150.0100.08018.89
5.4.140.0070.06316.47
5.4.130.0170.06316.57
5.4.120.0170.05316.46
5.4.110.0270.05716.46
5.4.100.0030.06316.51
5.4.90.0100.06716.55
5.4.80.0170.04316.49
5.4.70.0070.07716.48
5.4.60.0170.05716.46
5.4.50.0100.06716.33
5.4.40.0170.06716.53
5.4.30.0100.06716.52
5.4.20.0130.05316.46
5.4.10.0130.06716.52
5.4.00.0030.07015.84
5.3.280.0070.05714.57
5.3.270.0000.06714.61
5.3.260.0200.05714.59
5.3.250.0230.03714.59
5.3.240.0200.05314.41
5.3.230.0100.06714.59
5.3.220.0130.07014.60
5.3.210.0100.06314.70
5.3.200.0100.06714.38
5.3.190.0100.07714.63
5.3.180.0200.06014.55
5.3.170.0100.05714.54
5.3.160.0130.05014.55
5.3.150.0170.06714.65
5.3.140.0030.06714.72
5.3.130.0170.06714.69
5.3.120.0070.08014.74
5.3.110.0000.07014.53
5.3.100.0170.06314.02
5.3.90.0170.05014.00
5.3.80.0170.04014.19
5.3.70.0130.05314.09
5.3.60.0100.06014.15
5.3.50.0130.05713.93
5.3.40.0000.07013.87
5.3.30.0070.05014.08
5.3.20.0130.06013.50
5.3.10.0070.05713.60
5.3.00.0170.04713.71

preferences:
130.1 ms | 1398 KiB | 7 Q