3v4l.org

run code in 500+ PHP versions simultaneously
<?php function naturalIntegers() { $i = 0; while (true) { yield $i++; } } foreach(naturalIntegers() as $i) { if ($i > 10) { break; } print $i.PHP_EOL; } print "finished\n";

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.60.0140.00316.68
8.5.50.0120.00716.87
8.5.30.0090.00917.75
8.5.20.0140.00320.08
8.5.10.0100.00716.55
8.5.00.0100.01120.09
8.4.210.0110.01019.47
8.4.180.0110.01119.44
8.4.170.0140.00723.81
8.4.160.0140.00723.82
8.4.150.0080.00516.90
8.4.140.0100.01117.47
8.4.130.0140.00617.88
8.4.120.0100.00920.42
8.4.110.0100.00722.30
8.4.100.0110.01017.69
8.4.90.0140.00520.46
8.4.80.0100.00618.71
8.4.70.0090.01118.74
8.4.60.0110.00617.82
8.4.50.0160.00520.10
8.4.40.0070.01317.52
8.4.30.0100.01019.50
8.4.20.0390.00917.71
8.4.10.0420.00617.57
8.3.300.0100.01120.66
8.3.290.0160.00618.45
8.3.280.0110.00918.38
8.3.270.0110.00916.66
8.3.260.0130.00716.55
8.3.250.0140.00618.94
8.3.240.0110.00916.83
8.3.230.0130.00716.65
8.3.220.0060.00419.04
8.3.210.0100.01016.52
8.3.200.0060.00416.57
8.3.190.0080.00817.18
8.3.180.0080.00218.70
8.3.170.0040.00417.21
8.3.160.0400.00616.43
8.3.150.0370.00816.34
8.3.140.0350.01016.48
8.3.130.0300.01116.65
8.3.120.0400.00016.19
8.3.110.0350.00616.34
8.3.100.0380.00716.63
8.3.90.0400.00616.00
8.3.80.0310.00016.39
8.3.70.0340.01016.46
8.3.60.0390.01516.38
8.3.50.0370.00916.23
8.3.40.0290.01017.28
8.3.30.0220.01417.43
8.3.20.0290.01017.54
8.3.10.0300.00617.35
8.3.00.0180.00717.28
8.2.300.0110.01018.88
8.2.290.0080.00920.54
8.2.280.0130.00816.56
8.2.270.0240.01416.89
8.2.260.0270.01116.29
8.2.250.0340.00616.53
8.2.240.0290.01116.30
8.2.230.0370.00616.03
8.2.220.0340.00316.40
8.2.210.0310.00816.12
8.2.200.0350.00316.66
8.2.190.0310.00816.45
8.2.180.0350.00316.38
8.2.170.0360.01017.72
8.2.160.0400.00017.71
8.2.150.0340.00617.68
8.2.140.0310.01017.35
8.2.130.0150.02517.43
8.2.120.0300.01017.54
8.2.110.0300.00917.39
8.2.100.0300.01517.45
8.2.90.0350.00317.61
8.2.80.0170.00717.74
8.2.70.0290.01117.36
8.2.60.0350.00317.29
8.2.50.0330.01017.16
8.2.40.0340.00317.45
8.2.30.0230.01317.59
8.2.20.0260.01017.57
8.2.10.0230.01017.46
8.2.00.0410.00017.23
8.1.340.0100.01221.67
8.1.320.0120.00716.08

preferences:
70.06 ms | 851 KiB | 5 Q