3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ping_pong() { for ($i = 1; $i <= 10; $i++) { echo 'a' . $i . PHP_EOL; $val = (yield $i); echo 'b' . $i . ':' . $val PHP_EOL; //echo 'ping: ' . $val . PHP_EOL; } } $generator = ping_pong(); foreach ($generator as $value) { echo 'c' . $value . PHP_EOL; //echo 'pong: ' . $generator->send($value) . PHP_EOL; }

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.250.0130.04318.97
5.4.240.0100.05018.98
5.4.230.0100.05319.07
5.4.220.0130.05018.98
5.4.210.0030.05718.94
5.4.200.0130.04718.94
5.4.190.0100.05018.64
5.4.180.0000.05718.98
5.4.170.0070.05318.77
5.4.160.0130.06318.78
5.4.150.0130.07718.91
5.4.140.0070.05316.43
5.4.130.0130.04016.52
5.4.120.0200.04716.39
5.4.110.0070.05316.55
5.4.100.0200.04316.50
5.4.90.0100.05016.54
5.4.80.0100.06716.38
5.4.70.0030.07716.46
5.4.60.0070.04716.38
5.4.50.0170.04016.54
5.4.40.0130.06316.39
5.4.30.0030.05316.45
5.4.20.0070.05016.45
5.4.10.0100.04716.39
5.4.00.0030.05016.03
5.3.280.0000.06014.57
5.3.270.0100.05014.57
5.3.260.0070.05314.67
5.3.250.0030.05714.61
5.3.240.0200.05714.51
5.3.230.0070.05714.59
5.3.220.0070.05014.60
5.3.210.0170.04314.48
5.3.200.0100.05714.48
5.3.190.0130.05714.74
5.3.180.0100.05314.64
5.3.170.0100.05014.48
5.3.160.0030.05714.78
5.3.150.0070.05714.64
5.3.140.0230.03314.71
5.3.130.0030.05714.51
5.3.120.0170.05014.71
5.3.110.0070.05314.56
5.3.100.0130.04313.94
5.3.90.0030.05314.17
5.3.80.0100.04314.24
5.3.70.0030.06714.02
5.3.60.0130.04314.08
5.3.50.0100.04713.77
5.3.40.0130.04314.04
5.3.30.0070.04713.99
5.3.20.0030.05013.66
5.3.10.0070.04713.81
5.3.00.0030.06013.80

preferences:
140.37 ms | 1386 KiB | 7 Q