3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = static function (): iterable { yield 0 => 1; yield 'a' => 2; yield null => 3; yield true => 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.0140.00817.54
8.4.120.0110.00920.64
8.4.110.0090.01122.52
8.4.100.0150.00617.59
8.4.90.0120.01018.55
8.4.80.0100.01017.52
8.4.70.0110.01017.75
8.4.60.0130.00717.63
8.4.50.0170.00418.61
8.4.40.0000.00918.79
8.4.30.0060.01318.75
8.4.20.0110.00921.01
8.4.10.0060.01019.47
8.3.260.0110.00716.42
8.3.250.0030.00519.05
8.3.240.0120.00616.74
8.3.230.0070.00116.70
8.3.220.0110.00817.20
8.3.210.0070.00316.46
8.3.200.0040.00516.65
8.3.190.0040.00417.10
8.3.180.0050.00618.66
8.3.170.0120.00717.02
8.3.160.0180.00020.71
8.3.150.0120.00617.08
8.3.140.0060.00316.97
8.3.130.0000.01018.25
8.3.120.0050.00518.25
8.3.110.0070.00418.33
8.3.100.0030.00718.43
8.3.90.0060.00318.34
8.3.80.0090.00018.36
8.3.70.0070.00318.60
8.3.60.0030.00718.52
8.3.50.0060.00318.48
8.3.40.0100.00019.37
8.3.30.0030.00719.21
8.3.20.0030.00719.26
8.3.10.0030.00719.27
8.3.00.0060.00317.41
8.2.290.0050.00320.49
8.2.280.0090.00916.54
8.2.270.0080.00016.65
8.2.260.0050.00518.13
8.2.250.0080.00018.23
8.2.240.0000.00818.15
8.2.230.0030.00618.32
8.2.220.0130.00518.37
8.2.210.0150.00616.29
8.2.200.0100.01016.72
8.2.190.0120.00916.41
8.2.180.0120.00816.41
8.2.170.0230.00017.61
8.2.160.0110.01117.67
8.2.150.0160.00617.69
8.2.140.0130.00917.45
8.2.130.0170.00617.49
8.2.120.0230.00017.52
8.2.110.0250.00017.36
8.2.100.0180.00417.29
8.2.90.0150.00617.50
8.2.80.0170.00317.38
8.2.70.0150.00619.25
8.2.60.0170.00319.15
8.2.50.0170.00617.46
8.2.40.0180.00217.59
8.2.30.0130.00717.55
8.2.20.0100.00817.27
8.2.10.0180.00017.39
8.2.00.0160.00317.33
8.1.330.0120.00720.01
8.1.320.0080.01117.88
8.1.310.0150.00316.01
8.1.300.0140.00716.18
8.1.290.0160.00216.27
8.1.280.0170.00216.25
8.1.270.0180.00417.16
8.1.260.0130.00417.70
8.1.250.0170.00317.34
8.1.240.0190.00017.32
8.1.230.0150.00417.23
8.1.220.0140.00417.12
8.1.210.0030.01417.31
8.1.200.0130.00517.20
8.1.190.0130.00516.96
8.1.180.0190.00017.26
8.1.170.0100.01017.06
8.1.160.0170.00216.77
8.1.150.0170.00317.20
8.1.140.0110.00718.81
8.1.130.0120.00617.13
8.1.120.0150.00418.98
8.1.110.0140.00217.11
8.1.100.0060.01317.15
8.1.90.0110.00717.03
8.1.80.0140.00417.34
8.1.70.0170.00317.05
8.1.60.0120.00817.02
8.1.50.0180.00316.91
8.1.40.0190.00017.18
8.1.30.0160.00417.23
8.1.20.0150.00617.42
8.1.10.0200.00017.27
8.1.00.0160.00417.28

preferences:
48.64 ms | 403 KiB | 5 Q