3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld() { yield from ['Hello', 'World']; } function genX() { yield helloWorld(); } echo 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.43
8.3.50.0080.00818.32
8.3.40.0060.00918.63
8.3.30.0070.00718.80
8.3.20.0080.00018.82
8.3.10.0080.00021.77
8.3.00.0070.00021.75
8.2.180.0140.00318.05
8.2.170.0140.00022.96
8.2.160.0110.00320.24
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00822.25
8.2.120.0030.00526.35
8.2.110.0070.01019.12
8.2.100.0080.00417.88
8.2.90.0040.00417.63
8.2.80.0000.01017.97
8.2.70.0040.00417.93
8.2.60.0040.00418.22
8.2.50.0000.00918.10
8.2.40.0090.00019.31
8.2.30.0040.00420.67
8.2.20.0030.00618.11
8.2.10.0000.00717.92
8.2.00.0050.00319.21
8.1.280.0070.00725.92
8.1.270.0090.00020.25
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0030.00619.13
8.1.230.0030.00717.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00917.23
8.1.180.0020.00518.10
8.1.170.0000.00818.39
8.1.160.0040.00418.81
8.1.150.0000.00718.66
8.1.140.0050.00218.63
8.1.130.0080.00320.23
8.1.120.0030.00617.34
8.1.110.0000.00817.20
8.1.100.0000.00817.32
8.1.90.0070.00017.25
8.1.80.0030.00517.23
8.1.70.0030.00317.37
8.1.60.0040.00717.38
8.1.50.0030.00617.32
8.1.40.0040.00417.46
8.1.30.0080.00017.48
8.1.20.0050.00317.49
8.1.10.0000.00717.54
8.1.00.0040.00417.44
8.0.300.0070.00418.77
8.0.290.0000.00916.75
8.0.280.0070.00018.43
8.0.270.0030.00317.25
8.0.260.0000.00718.37
8.0.250.0040.00416.91
8.0.240.0000.00816.95
8.0.230.0000.00716.90
8.0.220.0000.00716.91
8.0.210.0030.00316.85
8.0.200.0000.00716.81
8.0.190.0030.00516.91
8.0.180.0040.00416.87
8.0.170.0000.00816.79
8.0.160.0000.00816.86
8.0.150.0030.00316.89
8.0.140.0040.00416.84
8.0.130.0040.00413.31
8.0.120.0050.00316.88
8.0.110.0040.00416.93
8.0.100.0000.00716.73
8.0.90.0040.00416.83
8.0.80.0050.01416.80
8.0.70.0000.00716.81
8.0.60.0000.00816.71
8.0.50.0040.00416.91
8.0.30.0090.00817.16
8.0.20.0150.00417.40
8.0.10.0040.00416.82
8.0.00.0170.00816.74
7.4.330.0030.00315.55
7.4.320.0070.00016.41
7.4.300.0080.00016.53
7.4.290.0000.00716.48
7.4.280.0080.00016.40
7.4.270.0030.00316.35
7.4.260.0000.00716.50
7.4.250.0000.00816.37
7.4.240.0000.00716.34
7.4.230.0000.00716.59
7.4.220.0030.00516.27
7.4.210.0060.00916.45
7.4.200.0030.00316.43
7.4.160.0080.00816.50
7.4.140.0160.00817.86
7.4.130.0120.01216.43
7.4.120.0110.01016.43
7.4.110.0070.01016.63
7.4.100.0070.01016.47
7.4.90.0090.01316.43
7.4.80.0180.00619.39
7.4.70.0120.00816.53
7.4.60.0100.01316.33
7.4.50.0060.01116.56
7.4.40.0030.01916.28
7.4.00.0110.00314.69
7.3.330.0000.00513.16
7.3.320.0060.00013.24
7.3.310.0040.00416.30
7.3.300.0000.00716.35
7.3.290.0030.00316.16
7.3.280.0090.00516.29
7.3.260.0100.00916.46
7.3.240.0090.01116.49
7.3.230.0030.01316.36
7.3.210.0000.01916.58
7.3.200.0160.00316.45
7.3.190.0120.00616.35
7.3.180.0040.01216.48
7.3.170.0040.01216.39
7.3.160.0090.00916.42
7.3.10.0050.00516.63
7.3.00.0000.00816.43
7.2.330.0090.00916.59
7.2.320.0140.01016.38
7.2.310.0040.01416.43
7.2.300.0060.01116.55
7.2.290.0060.01816.39
7.2.130.0000.01316.82
7.2.120.0110.00016.70
7.2.110.0060.00716.71
7.2.100.0400.00715.50
7.2.90.0370.01015.60
7.2.80.0070.00615.45
7.2.70.0320.00815.58
7.2.60.0080.00715.60
7.2.50.0160.01115.72
7.2.40.0390.00515.91
7.2.30.0180.00015.94
7.2.20.0090.00715.73
7.2.10.0180.00715.91
7.2.00.0090.00515.87
7.1.250.0030.00615.48
7.1.220.0960.00713.25
7.1.210.1000.00713.92
7.1.200.0550.00313.65
7.1.190.0620.00013.48
7.1.180.0880.01513.66
7.1.170.0370.00013.64
7.1.160.0030.01313.63
7.1.150.0540.00313.59
7.1.140.0190.01013.87
7.1.130.0690.00613.88
7.1.120.0530.00813.68
7.1.110.0580.01013.86
7.1.100.0480.00913.77
7.1.90.0940.00613.37
7.1.80.0640.00313.76
7.1.70.0330.00413.78
7.1.60.0860.01331.88
7.1.50.1030.00031.45
7.1.40.0520.01031.66
7.1.30.0910.00931.67
7.1.20.0790.00331.43
7.1.10.0740.00713.86
7.1.00.0720.00713.64
5.6.380.0030.00913.84

preferences:
60.95 ms | 400 KiB | 5 Q