3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generator() { yield '1' => 4; yield '0' => 2; } $array = [...generator()]; echo implode(',', $array);

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.0030.01316.48
8.3.50.0100.00717.99
8.3.40.0110.00318.58
8.3.30.0110.00418.73
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.180.0100.00325.92
8.2.170.0150.00019.09
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00220.63
8.2.110.0060.00320.39
8.2.100.0090.00317.84
8.2.90.0050.00317.75
8.2.80.0030.00518.92
8.2.70.0040.00417.50
8.2.60.0030.00617.49
8.2.50.0040.00417.55
8.2.40.0000.00817.91
8.2.30.0040.00417.99
8.2.20.0000.00718.12
8.2.10.0040.00419.24
8.2.00.0000.00719.22
8.1.280.0090.00925.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00318.84
8.1.230.0040.00723.94
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0000.00718.87
8.1.150.0000.00718.92
8.1.140.0060.00318.87
8.1.130.0030.00320.08
8.1.120.0040.00417.48
8.1.110.0000.00817.35
8.1.100.0040.00417.35
8.1.90.0050.00217.45
8.1.80.0040.00417.44
8.1.70.0000.00817.42
8.1.60.0000.00817.46
8.1.50.0000.00817.40
8.1.40.0000.00717.47
8.1.30.0040.00417.70
8.1.20.0040.00417.66
8.1.10.0000.00817.49
8.1.00.0040.00417.37
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0030.00320.14
8.0.270.0030.00318.11
8.0.260.0030.00320.06
8.0.250.0030.00317.07
8.0.240.0000.00716.91
8.0.230.0070.00016.94
8.0.220.0000.00717.00
8.0.210.0030.00316.95
8.0.200.0000.00716.97
8.0.190.0000.00716.95
8.0.180.0040.00417.00
8.0.170.0090.00016.95
8.0.160.0040.00417.05
8.0.150.0030.00516.84
8.0.140.0000.00716.83
8.0.130.0000.00513.46
8.0.120.0040.00416.90
8.0.110.0000.00716.82
8.0.100.0030.00516.82
8.0.90.0000.00716.99
8.0.80.0060.00916.95
8.0.70.0050.00316.84
8.0.60.0040.00416.86
8.0.50.0050.00316.84
8.0.30.0120.00317.03
8.0.20.0090.00917.12
8.0.10.0040.00416.83
8.0.00.0160.00416.79
7.4.330.0000.00615.55
7.4.320.0000.00616.51
7.4.300.0070.00016.54
7.4.290.0030.00316.52
7.4.280.0060.00316.53
7.4.270.0030.00316.41
7.4.260.0000.00613.17
7.4.250.0070.00016.50
7.4.240.0030.00316.47
7.4.230.0030.00316.57
7.4.220.0000.00716.50
7.4.210.0100.00616.46
7.4.200.0070.00016.57
7.4.130.0100.00716.62
7.4.120.0060.01216.55
7.4.110.0090.01116.38
7.4.100.0170.00416.34
7.4.90.0130.00416.50
7.4.80.0120.01516.14
7.4.70.0090.00915.87
7.4.60.0130.00716.56
7.4.50.0130.00716.17
7.4.40.0110.00816.09
7.4.30.0150.00615.81
7.4.20.0140.00416.35
7.4.10.0090.00916.33
7.4.00.0060.01316.41
7.3.330.0070.00016.00
7.3.320.0050.00012.94
7.3.310.0030.00316.25
7.3.300.0000.00716.01
7.3.290.0110.00616.19
7.3.260.0070.01116.10
7.3.230.0100.00716.32
7.3.210.0130.01016.12
7.3.200.0060.01316.28
7.3.190.0070.01116.22
7.3.180.0090.00916.18
7.3.170.0120.00616.29
7.3.160.0110.01115.94
7.3.150.0030.01615.95
7.3.140.0050.01415.99
7.3.130.0100.00716.14
7.3.120.0070.01116.09
7.3.110.0090.00916.09
7.3.100.0090.00916.08
7.3.90.0060.01915.95
7.3.80.0160.00316.12
7.3.70.0170.00016.11
7.3.60.0140.00316.30
7.3.50.0100.00716.37
7.3.40.0120.01316.20
7.3.30.0170.00916.23
7.3.20.0120.01516.33
7.3.10.0120.00616.27
7.3.00.0090.01215.68
7.2.330.0040.01716.30
7.2.320.0100.01416.07
7.2.310.0070.01115.77
7.2.300.0090.00916.42
7.2.290.0030.01616.45
7.2.280.0130.00516.18
7.2.270.0090.01316.29
7.2.260.0110.00615.91
7.2.250.0100.00715.95
7.2.240.0070.01316.19
7.2.230.0140.01216.20
7.2.220.0090.01115.93
7.2.210.0090.01016.18
7.2.200.0060.01216.38
7.2.190.0090.00916.21
7.2.180.0130.01316.38
7.2.170.0150.01216.32
7.2.160.0060.01116.38
7.2.150.0110.01816.50
7.2.140.0230.00716.37
7.2.130.0100.01016.27
7.2.120.0090.00916.19
7.2.110.0040.01616.32
7.2.100.0070.01116.29
7.2.90.0100.01016.12
7.2.80.0030.01716.38
7.2.70.0100.01016.11
7.2.60.0120.00616.02
7.2.50.0170.00716.36
7.2.40.0130.01016.37
7.2.30.0090.01116.25
7.2.20.0090.01216.07
7.2.10.0100.01016.18
7.2.00.0100.01016.21

preferences:
74.17 ms | 401 KiB | 5 Q