3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen() { for ($i = 0; $i<4; $i++) { yield $i; } return; } while ($a = gen()) { echo 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.3.60.0410.03116.61
8.3.50.0530.02322.05
8.3.40.0600.01318.63
8.3.30.0530.03019.01
8.3.20.0300.00720.21
8.3.10.0260.01021.60
8.3.00.0320.00619.54
8.2.180.0530.02316.32
8.2.170.0640.02022.96
8.2.160.0570.01020.52
8.2.150.0240.01324.18
8.2.140.0350.00324.66
8.2.130.0330.00726.16
8.2.120.0200.01721.02
8.2.110.0340.01422.02
8.2.100.0490.01317.91
8.2.90.0130.01319.04
8.2.80.0200.01017.97
8.2.70.0120.01517.50
8.2.60.0190.00617.80
8.2.50.0170.01018.07
8.2.40.0190.00618.28
8.2.30.0170.01018.00
8.2.20.0130.01317.66
8.2.10.0160.01017.99
8.2.00.0170.01017.69
8.1.280.0540.02025.92
8.1.270.0310.00723.83
8.1.260.0240.01326.35
8.1.250.0240.01328.09
8.1.240.0350.01423.83
8.1.230.0480.01419.17
8.1.220.0190.01017.74
8.1.210.0130.01618.77
8.1.200.0260.01017.23
8.1.190.0100.01617.35
8.1.180.0160.01018.10
8.1.170.0170.00718.65
8.1.160.0260.00622.04
8.1.150.0100.02018.88
8.1.140.0120.01617.33
8.1.130.0070.01817.95
8.1.120.0170.01017.47
8.1.110.0110.01417.41
8.1.100.0170.01017.48
8.1.90.0070.01717.38
8.1.80.0140.01017.46
8.1.70.0040.02217.39
8.1.60.0220.01017.65
8.1.50.0100.02017.50
8.1.40.0100.01717.55
8.1.30.0140.01417.63
8.1.20.0140.01417.67
8.1.10.0070.01717.60
8.1.00.0100.01617.57
8.0.300.0100.01618.77
8.0.290.0190.00616.63
8.0.280.0180.00718.39
8.0.270.0220.00417.19
8.0.260.0180.00717.20
8.0.250.0170.01016.83
8.0.240.0120.01216.72
8.0.230.0070.01716.80
8.0.220.0130.00916.71
8.0.210.0100.01716.83
8.0.200.0100.01316.82
8.0.190.0110.01416.77
8.0.180.0170.00716.79
8.0.170.0090.01916.77
8.0.160.0110.01416.65
8.0.150.0160.00916.69
8.0.140.0180.01116.63
8.0.130.0100.01413.25
8.0.120.0180.00716.63
8.0.110.0120.01216.71
8.0.100.0130.01016.55
8.0.90.0210.00416.59
8.0.80.0340.06416.74
8.0.70.0160.01016.71
8.0.60.0140.01116.79
8.0.50.0210.00716.82
8.0.30.0890.08516.99
8.0.20.0870.06717.40
8.0.10.0090.01616.68
8.0.00.1050.07616.84
7.4.330.0140.01115.00
7.4.320.0100.01416.39
7.4.300.0180.00716.39
7.4.290.0190.00916.39
7.4.280.0130.01916.38
7.4.270.0200.00716.34
7.4.260.0160.01316.24
7.4.250.0190.00816.21
7.4.240.0120.01516.38
7.4.230.0130.01016.55
7.4.220.0710.06516.50
7.4.210.0400.05016.48
7.4.200.0200.00716.58
7.4.160.0930.05816.48
7.4.150.1240.04617.40
7.4.140.1040.05817.86
7.4.130.1140.07216.36
7.4.120.1010.06916.46
7.4.110.0970.05416.57
7.4.100.0980.07816.45
7.4.90.0940.07116.33
7.4.80.0850.05819.39
7.4.70.0740.07116.28
7.4.60.0780.06816.46
7.4.50.0370.01016.12
7.4.40.0590.07516.36
7.4.30.0790.06916.23
7.4.00.0500.02314.97
7.3.330.0150.00913.11
7.3.320.0180.00713.19
7.3.310.0120.01216.18
7.3.300.0090.01316.18
7.3.290.0660.07616.18
7.3.280.0400.08316.08
7.3.270.1160.07117.40
7.3.260.0990.05016.38
7.3.250.0870.08216.27
7.3.240.1620.10416.10
7.3.230.0870.05016.42
7.3.210.0880.06816.35
7.3.200.0590.07919.39
7.3.190.0660.07416.38
7.3.180.0560.06816.12
7.3.170.0900.05516.31
7.3.160.0860.08716.30
7.3.120.0340.02714.61
7.2.330.0920.10216.36
7.2.320.0650.07616.26
7.2.310.1050.05116.37
7.2.300.0640.11816.40
7.2.290.0830.06016.49
7.2.00.0380.01019.43
7.1.100.0240.02418.01
7.1.70.0200.01016.98
7.1.60.0490.02619.14
7.1.50.0370.02016.65
7.0.200.0260.01016.85

preferences:
30.16 ms | 401 KiB | 5 Q