3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = (static function ($s) { yield from [1,2,3]; })(); $generator->next(); $generator->next(); $generator->rewind(); echo $generator->current(); # 3

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.70.0070.01416.63
8.3.60.0040.01818.55
8.3.50.0110.00718.34
8.3.40.0080.01118.70
8.3.30.0100.01018.86
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.180.0120.00925.92
8.2.170.0100.01018.91
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.35
8.2.110.0100.00022.11
8.2.100.0120.00018.03
8.2.90.0030.00518.03
8.2.80.0030.00619.16
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0040.00418.05
8.2.40.0040.00419.88
8.2.30.0000.00817.93
8.2.20.0050.00218.04
8.2.10.0050.00219.11
8.2.00.0000.00719.11
8.1.280.0150.00325.92
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00320.76
8.1.230.0030.00720.98
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0070.00018.83
8.1.150.0070.00018.81
8.1.140.0040.00418.74
8.1.130.0080.00020.13
8.1.120.0030.00617.30
8.1.110.0050.00317.40
8.1.100.0000.00817.39
8.1.90.0080.00017.32
8.1.80.0040.00417.39
8.1.70.0070.00017.28
8.1.60.0040.00417.56
8.1.50.0040.00417.41
8.1.40.0060.00617.41
8.1.30.0030.00517.45
8.1.20.0050.00317.54
8.1.10.0050.00217.54
8.1.00.0000.00817.34
8.0.300.0000.00720.10
8.0.290.0040.00416.75
8.0.280.0030.00320.19
8.0.270.0000.00717.87
8.0.260.0030.00320.11
8.0.250.0000.00816.82
8.0.240.0030.00316.99
8.0.230.0070.00016.93
8.0.220.0000.00816.80
8.0.210.0040.00416.90
8.0.200.0080.00016.88
8.0.190.0000.00717.00
8.0.180.0000.00816.87
8.0.170.0080.00016.95
8.0.160.0070.00317.00
8.0.150.0040.00416.77
8.0.140.0000.00716.86
8.0.130.0060.00013.41
8.0.120.0070.00016.91
8.0.110.0070.00016.74
8.0.100.0000.00716.79
8.0.90.0000.00816.96
8.0.80.0050.01116.91
8.0.70.0000.00816.76
8.0.60.0070.00016.98
8.0.50.0070.00016.81
8.0.30.0100.00716.86
8.0.20.0080.01117.19
8.0.10.0040.00417.02
8.0.00.0150.00616.68
7.4.330.0040.00015.55
7.4.320.0030.00316.51
7.4.300.0000.00616.58
7.4.290.0070.00016.47
7.4.280.0030.00616.38
7.4.270.0040.00416.35
7.4.260.0060.00013.33
7.4.250.0070.00016.50
7.4.240.0030.00316.52
7.4.230.0070.00016.40
7.4.220.0030.00316.48
7.4.210.0110.00616.57
7.4.200.0030.00316.34
7.4.130.0100.00816.63
7.4.120.0180.00316.28
7.4.110.0070.01016.51
7.4.100.0000.01616.52
7.4.90.0100.01316.58
7.4.80.0030.01316.31
7.4.70.0130.00316.52
7.4.60.0100.00716.57
7.4.50.0070.01016.46
7.4.40.0110.00516.11
7.4.30.0160.00016.70
7.4.20.0100.01016.36
7.4.10.0100.00716.61
7.4.00.0160.00616.22
7.3.330.0070.00316.30
7.3.320.0000.00613.21
7.3.310.0000.00616.32
7.3.300.0070.00016.29
7.3.290.0010.01216.28
7.3.260.0060.01216.34
7.3.230.0040.01616.32
7.3.210.0060.01216.47
7.3.200.0180.00016.42
7.3.190.0130.00316.58
7.3.180.0150.00416.47
7.3.170.0040.01316.48
7.3.160.0140.00316.29
7.3.150.0070.01016.32
7.3.140.0110.00616.32
7.3.130.0000.01616.39
7.3.120.0140.00416.41
7.3.110.0110.01116.17
7.3.100.0070.01016.41
7.3.90.0030.01316.27
7.3.80.0100.00616.58
7.3.70.0070.01016.08
7.3.60.0090.00916.43
7.3.50.0050.01116.45
7.3.40.0030.01316.30
7.3.30.0070.01016.25
7.3.20.0090.00916.38
7.3.10.0110.00716.25
7.3.00.0080.00816.38
7.2.330.0070.01016.33
7.2.320.0140.00316.64
7.2.310.0040.01416.68
7.2.300.0140.00716.56
7.2.290.0100.01016.33
7.2.280.0030.01416.65
7.2.270.0140.00716.52
7.2.260.0100.00716.36
7.2.250.0120.00616.51
7.2.240.0120.00616.57
7.2.230.0040.01316.66
7.2.220.0130.00316.59
7.2.210.0100.00716.35
7.2.200.0130.00316.38
7.2.190.0100.00716.52
7.2.180.0090.01516.36
7.2.170.0060.01216.43
7.2.160.0030.01416.43
7.2.150.0030.01316.62
7.2.140.0130.00316.58
7.2.130.0100.00716.58
7.2.120.0060.01116.36
7.2.110.0070.01016.57
7.2.100.0070.01016.52
7.2.90.0140.00316.54
7.2.80.0090.01216.46
7.2.70.0140.00416.48
7.2.60.0130.00616.59
7.2.50.0030.01616.49
7.2.40.0090.00916.61
7.2.30.0180.00616.57
7.2.20.0070.01016.46
7.2.10.0090.01216.50
7.2.00.0040.01416.49

preferences:
75.23 ms | 400 KiB | 5 Q