3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function () {return true;}); public function foo(array $bar) { } foo(1); public function bar($bar) { foreach ($bar as $kruk) { echo $kruk; } } bar(1);

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.240.0100.04319.20
5.4.230.0000.08019.07
5.4.220.0100.03319.19
5.4.210.0000.04019.16
5.4.200.0000.04319.22
5.4.190.0030.04719.23
5.4.180.0030.04319.14
5.4.170.0030.04319.13
5.4.160.0100.06018.95
5.4.150.0000.04018.96
5.4.140.0000.04016.40
5.4.130.0030.03316.30
5.4.120.0030.03316.35
5.4.110.0070.03316.41
5.4.100.0000.03716.49
5.4.90.0000.03716.27
5.4.80.0070.03716.32
5.4.70.0070.03016.36
5.4.60.0070.03016.26
5.4.50.0030.04016.48
5.4.40.0000.03716.34
5.4.30.0100.02716.39
5.4.20.0030.03316.38
5.4.10.0030.03316.36
5.4.00.0070.03715.85
5.3.280.0130.03014.48
5.3.270.0030.05014.65
5.3.260.0000.04314.75
5.3.250.0030.04314.61
5.3.240.0000.04014.68
5.3.230.0000.04014.76
5.3.220.0030.04014.57
5.3.210.0000.05014.49
5.3.200.0000.04314.57
5.3.190.0030.03714.57
5.3.180.0000.03714.56
5.3.170.0030.04314.57
5.3.160.0030.03314.61
5.3.150.0070.03314.59
5.3.140.0030.03714.57
5.3.130.0000.04014.54
5.3.120.0100.03714.70
5.3.110.0070.03314.59
5.3.100.0000.04014.03
5.3.90.0030.03314.09
5.3.80.0030.03314.16
5.3.70.0030.03313.93
5.3.60.0030.03314.04
5.3.50.0030.03313.89
5.3.40.0070.03013.86
5.3.30.0000.03713.91
5.3.20.0030.03713.71
5.3.10.0030.03313.67
5.3.00.0000.03713.60

preferences:
134.92 ms | 1398 KiB | 7 Q