3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen() { for ($i = 0; $i < 5;) { $i += yield $i; } } $gen = gen(); foreach ($gen as $number) { echo $number; $gen->send(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)
8.5.30.0090.00819.43
8.5.20.0080.00920.19
8.5.10.0150.00916.75
8.5.00.0090.01220.10
8.4.180.0110.01019.46
8.4.170.0120.00923.85
8.4.160.0130.00923.88
8.4.150.0090.00316.88
8.4.140.0120.01017.64
8.4.130.0130.00717.59
8.4.120.0080.00520.54
8.4.110.0050.00419.04
8.4.100.0040.00517.73
8.4.90.0140.00720.40
8.4.80.0030.00518.63
8.4.70.0060.00220.34
8.4.60.0130.00320.62
8.4.50.0150.00618.52
8.4.40.0110.00817.57
8.4.30.0130.00719.53
8.4.20.0160.00417.84
8.4.10.0040.00418.00
8.3.300.0100.01020.81
8.3.290.0160.00620.62
8.3.280.0140.01018.39
8.3.270.0060.00216.42
8.3.260.0110.00816.81
8.3.250.0080.01118.89
8.3.240.0120.00616.68
8.3.230.0050.00416.76
8.3.220.0110.00718.89
8.3.210.0070.00216.53
8.3.200.0060.00316.77
8.3.190.0120.00518.90
8.3.180.0100.00819.11
8.3.170.0140.00416.94
8.3.160.0070.01116.51
8.3.150.0100.01016.64
8.3.140.0080.00016.63
8.3.130.0000.00816.61
8.3.120.0030.00619.10
8.3.110.0090.00020.94
8.3.100.0030.01324.06
8.3.90.0140.00426.77
8.3.80.0030.00618.18
8.3.70.0110.01116.63
8.3.60.0160.00618.56
8.3.50.0090.00917.48
8.3.40.0120.00318.78
8.3.30.0060.00918.59
8.3.20.0040.00421.77
8.3.10.0080.00021.73
8.3.00.0000.00819.56
8.2.300.0100.01018.89
8.2.290.0130.00917.14
8.2.280.0090.00519.96
8.2.270.0150.00416.62
8.2.260.0110.00717.25
8.2.250.0030.00616.57
8.2.240.0090.00018.30
8.2.230.0080.00022.58
8.2.220.0000.00837.54
8.2.210.0180.00026.77
8.2.200.0060.00318.29
8.2.190.0080.00816.58
8.2.180.0070.01316.50
8.2.170.0030.01022.96
8.2.160.0150.00019.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.56
8.2.120.0000.00826.35
8.2.110.0080.00322.13
8.2.100.0070.00417.91
8.2.90.0040.00420.52
8.2.80.0060.00317.97
8.2.70.0000.00817.93
8.2.60.0060.00617.93
8.2.50.0000.00818.10
8.2.40.0060.00320.60
8.2.30.0030.00619.29
8.2.20.0040.00418.12
8.2.10.0040.00418.02
8.2.00.0000.00717.98
8.1.340.0100.00821.61
8.1.330.0110.00816.19
8.1.320.0130.00517.84
8.1.310.0100.00718.44
8.1.300.0040.01515.96
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0040.00423.97
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00722.45
8.1.230.0090.00320.92
8.1.220.0030.00517.77
8.1.210.0040.00418.88
8.1.200.0040.00417.35
8.1.190.0050.00517.22
8.1.180.0040.00418.10
8.1.170.0000.00918.65
8.1.160.0070.00018.88
8.1.150.0040.00418.88
8.1.140.0000.00819.58
8.1.130.0000.00717.36
8.1.120.0040.00417.43
8.1.110.0000.00817.50
8.1.100.0040.00417.34
8.1.90.0050.00317.39
8.1.80.0060.00317.45
8.1.70.0030.00617.45
8.1.60.0080.00017.51
8.1.50.0000.00817.43
8.1.40.0040.00417.51
8.1.30.0000.00817.71
8.1.20.0040.00417.64
8.1.10.0050.00317.40
8.1.00.0040.00417.34
8.0.300.0000.00819.98
8.0.290.0000.00916.75
8.0.280.0030.00318.43
8.0.270.0030.00617.16
8.0.260.0030.00316.80
8.0.250.0030.00317.01
8.0.240.0050.00416.88
8.0.230.0030.00316.95
8.0.220.0000.00716.91
8.0.210.0000.00716.93
8.0.200.0030.00616.99
8.0.190.0080.00016.88
8.0.180.0040.00416.89
8.0.170.0040.00416.91
8.0.160.0050.00216.77
8.0.150.0050.00516.79
8.0.140.0070.00016.84
8.0.130.0070.00313.27
8.0.120.0030.00516.79
8.0.110.0030.00516.79
8.0.100.0030.00616.90
8.0.90.0050.00216.83
8.0.80.0120.00316.89
8.0.70.0040.00416.83
8.0.60.0070.00016.95
8.0.50.0000.00716.70
8.0.30.0070.01017.03
8.0.20.0140.01317.40
8.0.10.0050.00317.01
8.0.00.0070.01116.84
7.4.330.0030.00315.55
7.4.320.0000.00716.58
7.4.300.0000.00716.57
7.4.290.0030.00316.57
7.4.280.0000.00816.58
7.4.270.0030.00316.55
7.4.260.0060.00316.61
7.4.250.0070.00016.56
7.4.240.0030.00316.56
7.4.230.0070.00016.69
7.4.220.0100.00716.63
7.4.210.0100.00316.57
7.4.200.0030.00316.55
7.4.160.0100.00716.48
7.4.150.0120.01217.40
7.4.140.0080.01317.86
7.4.130.0170.00716.45
7.4.120.0160.00916.38
7.4.110.0130.00716.54
7.4.100.0060.01316.30
7.4.90.0100.01016.57
7.4.80.0060.01019.39
7.4.70.0150.00716.40
7.4.60.0060.01016.52
7.4.50.0040.01516.37
7.4.40.0100.01016.50
7.4.30.0150.00416.63
7.4.00.0040.01414.93
7.3.330.0030.00313.18
7.3.320.0030.00313.31
7.3.310.0050.00316.24
7.3.300.0030.00316.23
7.3.290.0050.01216.34
7.3.280.0090.00916.33
7.3.270.0120.00617.40
7.3.260.0110.00816.34
7.3.250.0100.01016.48
7.3.240.0100.00816.53
7.3.230.0170.00016.27
7.3.210.0110.00716.65
7.3.200.0120.00416.40
7.3.190.0160.00716.40
7.3.180.0170.00316.52
7.3.170.0100.00516.54
7.3.160.0070.01016.38
7.2.330.0080.00916.70
7.2.320.0130.00316.66
7.2.310.0100.00616.71
7.2.300.0090.00916.74
7.2.290.0100.00616.84
7.2.60.0060.00617.12
7.2.00.0060.00619.56
7.1.200.0040.01115.53
7.1.70.0000.00917.38
7.1.60.0080.00417.22
7.1.50.0400.01332.77
7.1.40.0600.01032.44
7.1.30.0200.02032.66
7.1.20.0330.01332.59
7.1.10.0270.00314.86
7.1.00.0230.00314.69
7.0.200.0090.00316.43
7.0.190.0230.01014.88
7.0.180.0070.01314.16
7.0.170.0270.01014.52
7.0.160.0600.00714.52
7.0.150.0300.00714.48
7.0.140.0300.01014.40
7.0.130.0230.00714.61
7.0.120.0270.00714.68
7.0.110.0100.00714.39
7.0.100.0230.01314.38
7.0.90.0070.01014.40
7.0.80.0230.01014.53
7.0.70.0330.01314.36
7.0.60.0430.01014.45
7.0.50.0330.00714.39
7.0.40.0300.00314.47
7.0.30.0300.00714.52
7.0.20.0430.01014.41
7.0.10.0330.01714.52
7.0.00.0200.01314.55

preferences:
55.85 ms | 1437 KiB | 5 Q