3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = static function (): iterable { yield 0 => 1; yield true => 2; yield 2 => 3; yield null => 4; }; var_export(iterator_to_array($generator()));

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.4.130.0060.01317.51
8.4.120.0130.00622.12
8.4.110.0070.00418.79
8.4.100.0060.00617.80
8.4.90.0090.00817.59
8.4.80.0040.00417.95
8.4.70.0060.00217.72
8.4.60.0100.00617.76
8.4.50.0080.00818.50
8.4.40.0080.00018.92
8.4.30.0160.00318.61
8.4.20.0140.00321.11
8.4.10.0130.00619.46
8.3.260.0140.00516.54
8.3.250.0130.00618.70
8.3.240.0110.00516.49
8.3.230.0110.00716.82
8.3.220.0090.01317.18
8.3.210.0070.00816.74
8.3.200.0130.00516.70
8.3.190.0070.00717.10
8.3.180.0070.00218.80
8.3.170.0130.00717.22
8.3.160.0040.01020.68
8.3.150.0070.01117.19
8.3.140.0070.00318.91
8.3.130.0000.01018.14
8.3.120.0040.00716.32
8.3.110.0070.00318.34
8.3.100.0070.00318.30
8.3.90.0040.00716.56
8.3.80.0090.00318.44
8.3.70.0100.00016.34
8.3.60.0030.00816.72
8.3.50.0100.00018.43
8.3.40.0030.00719.21
8.3.30.0070.00317.39
8.3.20.0090.00319.22
8.3.10.0060.00617.58
8.3.00.0000.01017.61
8.2.290.0060.00322.38
8.2.280.0110.00816.58
8.2.270.0000.00716.61
8.2.260.0040.00816.17
8.2.250.0120.00018.18
8.2.240.0080.00316.61
8.2.230.0080.00318.02
8.2.220.0040.00716.27
8.2.210.0100.00016.41
8.2.200.0050.00516.51
8.2.190.0110.00316.39
8.2.180.0040.00816.42
8.2.170.0090.00617.72
8.2.160.0090.00317.54
8.2.150.0100.00317.57
8.2.140.0060.00617.47
8.2.130.0110.00019.20
8.2.120.0110.00017.65
8.2.110.0070.00319.32
8.2.100.0030.00917.30
8.2.90.0080.00417.45
8.2.80.0100.00317.52
8.2.70.0040.00817.66
8.2.60.0030.00717.59
8.2.50.0060.00319.13
8.2.40.0040.00419.38
8.2.30.0070.00718.86
8.2.20.0140.00018.46
8.2.10.0140.00018.88
8.2.00.0090.00617.19
8.1.330.0120.00716.79
8.1.320.0130.00718.15
8.1.310.0080.00816.07
8.1.300.0140.00015.88
8.1.290.0120.00416.07
8.1.280.0050.01016.03
8.1.270.0100.00318.38
8.1.260.0090.00617.11
8.1.250.0180.00017.16
8.1.240.0110.00317.00
8.1.230.0110.00416.89
8.1.220.0070.00716.84
8.1.210.0080.00616.95
8.1.200.0110.00516.68
8.1.190.0120.00316.70
8.1.180.0130.00316.66
8.1.170.0080.00817.02
8.1.160.0080.00816.68
8.1.150.0080.00817.05
8.1.140.0150.00216.39
8.1.130.0110.00516.80
8.1.120.0080.00816.95
8.1.110.0110.00516.80
8.1.100.0080.00817.00
8.1.90.0140.00017.10
8.1.80.0090.00616.90
8.1.70.0070.00716.95
8.1.60.0120.00416.97
8.1.50.0150.00316.73
8.1.40.0120.00417.11
8.1.30.0090.00617.21
8.1.20.0130.00318.80
8.1.10.0110.00416.60
8.1.00.0060.00916.84

preferences:
95.64 ms | 403 KiB | 5 Q