3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld() { yield from ['Hello', 'World']; } function genX() { yield helloWorld(); } genX();

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.0070.00718.18
8.3.50.0070.00718.20
8.3.40.0180.00018.67
8.3.30.0110.00418.59
8.3.20.0050.00318.47
8.3.10.0070.00021.78
8.3.00.0050.00221.77
8.2.180.0110.00418.16
8.2.170.0090.00622.96
8.2.160.0140.00020.25
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00422.09
8.2.120.0040.00426.35
8.2.110.0000.01119.30
8.2.100.0030.00917.75
8.2.90.0050.00317.63
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0040.00418.09
8.2.50.0000.01018.10
8.2.40.0040.00719.23
8.2.30.0040.00422.29
8.2.20.0040.00818.00
8.2.10.0000.00818.06
8.2.00.0000.00819.35
8.1.280.0060.00925.92
8.1.270.0080.00020.20
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0000.00919.13
8.1.230.0060.00617.66
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0100.00017.13
8.1.190.0050.00317.13
8.1.180.0090.00018.10
8.1.170.0040.00418.50
8.1.160.0070.00018.84
8.1.150.0000.00718.80
8.1.140.0000.00718.79
8.1.130.0000.00922.03
8.1.120.0040.00417.31
8.1.110.0060.00317.21
8.1.100.0040.00417.18
8.1.90.0040.00417.30
8.1.80.0070.00017.39
8.1.70.0040.00417.31
8.1.60.0030.00717.50
8.1.50.0070.00317.43
8.1.40.0070.00017.35
8.1.30.0020.00517.58
8.1.20.0020.00517.54
8.1.10.0070.00017.39
8.1.00.0000.00817.36
8.0.300.0030.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.18
8.0.270.0020.00517.16
8.0.260.0060.00018.23
8.0.250.0040.00416.80
8.0.240.0050.00316.81
8.0.230.0070.00016.80
8.0.220.0000.00716.78
8.0.210.0040.00416.74
8.0.200.0060.00016.80
8.0.190.0050.00216.78
8.0.180.0000.00816.74
8.0.170.0040.00416.70
8.0.160.0000.00716.76
8.0.150.0040.00416.74
8.0.140.0040.00416.70
8.0.130.0060.00013.21
8.0.120.0040.00416.70
8.0.110.0070.00016.59
8.0.100.0040.00416.66
8.0.90.0050.00316.78
8.0.80.0060.01016.73
8.0.70.0000.00816.68
8.0.60.0040.00416.64
8.0.50.0040.00416.64
8.0.30.0100.00816.94
8.0.20.0110.00917.40
8.0.10.0040.00416.66
8.0.00.0090.01316.66
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0070.00016.42
7.4.290.0020.00516.55
7.4.280.0040.00416.37
7.4.270.0030.00316.36
7.4.260.0000.00716.46
7.4.250.0070.00016.53
7.4.240.0000.00816.57
7.4.230.0070.00016.32
7.4.220.0070.00016.51
7.4.210.0090.00816.55
7.4.200.0070.00016.36
7.4.160.0110.00716.45
7.4.140.0120.00817.86
7.4.130.0040.01316.46
7.4.120.0130.00716.38
7.4.110.0040.01416.40
7.4.100.0070.01016.34
7.4.90.0190.01116.52
7.4.80.0070.01019.39
7.4.70.0060.01216.59
7.4.60.0070.01516.41
7.4.50.0070.00716.19
7.4.40.0000.01616.43
7.4.00.0150.00014.80
7.3.330.0000.00613.06
7.3.320.0050.00013.30
7.3.310.0030.00316.32
7.3.300.0030.00316.18
7.3.290.0040.00316.14
7.3.280.0070.00816.23
7.3.260.0050.01316.49
7.3.240.0070.01216.29
7.3.230.0110.00616.36
7.3.210.0150.00316.39
7.3.200.0080.00816.40
7.3.190.0150.00816.17
7.3.180.0030.01516.32
7.3.170.0120.00916.55
7.3.160.0150.00316.30
7.2.330.0070.01016.47
7.2.320.0130.01016.55
7.2.310.0060.01116.57
7.2.300.0090.01216.43
7.2.290.0100.01016.33
7.2.100.0720.00314.25
7.2.90.0630.00314.69
7.2.80.0630.00914.37
7.2.70.0720.00014.25
7.2.60.0580.00614.71
7.2.50.0580.01014.87
7.2.40.0630.00614.65
7.2.30.0550.00314.77
7.2.20.0790.00314.72
7.2.10.0670.01014.86
7.2.00.0730.00714.59
7.1.220.0750.00713.33
7.1.210.0520.01013.84
7.1.200.0580.00713.62
7.1.190.1410.00713.36
7.1.180.0540.00913.72
7.1.170.0560.01013.43
7.1.160.0860.00613.60
7.1.150.0530.00713.56
7.1.140.0880.00713.81
7.1.130.0760.00313.55
7.1.120.0840.00013.33
7.1.110.0730.00713.88
7.1.100.0740.00313.59
7.1.90.0600.01013.42
7.1.80.0380.00613.86
7.1.70.0670.00013.72
7.1.60.0550.01031.50
7.1.50.1030.01331.80
7.1.40.0860.01031.68
7.1.30.0690.01331.76
7.1.20.0950.01731.79
7.1.10.0890.00313.47
7.1.00.0600.01013.86
5.6.380.0030.01214.09

preferences:
65.65 ms | 400 KiB | 5 Q