3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { yield 1; return "a"; } function goo($a) { print $a . PHP_EOL; } goo(...($generator = foo())); print $generator->getReturn(); // la foreach (($generator = foo()) as $b) { print $b . PHP_EOL; } print $generator->getReturn(); // la ?>

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)
8.5.30.0110.00617.98
8.5.20.0050.01220.11
8.5.10.0090.01016.49
8.5.00.0130.00919.86
8.4.180.0140.00819.73
8.4.170.0090.01420.50
8.4.160.0100.01120.50
8.4.150.0070.00516.77
8.4.140.0130.00917.32
8.4.130.0110.00918.66
8.4.120.0110.00924.02
8.4.110.0130.00720.48
8.4.100.0080.00918.77
8.4.90.0130.00718.93
8.4.80.0100.00318.60
8.4.70.0060.00317.89
8.4.60.0090.00818.87
8.4.50.0120.00619.38
8.4.40.0070.00417.45
8.4.30.0420.00617.47
8.4.20.0390.00917.38
8.4.10.0340.01317.66
8.3.300.0100.00920.70
8.3.290.0050.00820.82
8.3.280.0130.01118.33
8.3.270.0040.00316.77
8.3.260.0120.00816.54
8.3.250.0100.00919.04
8.3.240.0110.00817.15
8.3.230.0040.00616.34
8.3.220.0060.00218.95
8.3.210.0100.00916.88
8.3.200.0030.00516.53
8.3.190.0050.00318.41
8.3.180.0120.00718.70
8.3.170.0120.00616.69
8.3.160.0360.01016.68
8.3.150.0350.00616.49
8.3.140.0280.00616.67
8.3.130.0140.00416.70
8.3.120.0140.01116.39
8.3.110.0140.00516.91
8.3.100.0360.00616.54
8.3.90.0170.00616.41
8.3.80.0300.00316.55
8.3.70.0260.00416.33
8.3.60.0280.00016.48
8.3.50.0200.00716.63
8.3.40.0240.00517.41
8.3.30.0250.00717.37
8.3.20.0260.01317.25
8.3.10.0320.00317.40
8.3.00.0210.00317.44
8.2.300.0110.00920.51
8.2.290.0100.00921.99
8.2.280.0090.01018.60
8.2.270.0300.00816.51
8.2.260.0300.00716.48
8.2.250.0350.00016.34
8.2.240.0200.01116.24
8.2.230.0290.00315.93
8.2.220.0150.00516.11
8.2.210.0180.00016.27
8.2.200.0190.00715.80
8.2.190.0100.00716.27
8.2.180.0110.00716.31
8.2.170.0190.00017.42
8.2.160.0130.00417.38
8.2.150.0080.00817.37
8.2.140.0170.00017.59
8.2.130.0190.00017.53
8.2.120.0120.00717.04
8.2.110.0110.00717.38
8.2.100.0130.00417.55
8.2.90.0140.00517.44
8.2.80.0090.00917.07
8.2.70.0170.00019.08
8.2.60.0130.00317.28
8.2.50.0160.00017.34
8.2.40.0120.00517.27
8.2.30.0150.00417.28
8.2.20.0130.00317.31
8.2.10.0080.00817.54
8.2.00.0150.00017.22
8.1.340.0120.00820.23
8.1.320.0130.00617.84

preferences:
54.15 ms | 844 KiB | 5 Q