3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { yield $a; yield $a + 1; } function yf() { yield from gen(1); yield from gen(10); } $g = yf(); var_dump($g->current());

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.70.0110.01118.30
8.3.60.0070.00716.63
8.3.50.0160.00522.05
8.3.40.0140.00018.38
8.3.30.0000.01418.58
8.3.20.0000.00720.16
8.3.10.0040.00423.66
8.3.00.0050.00319.38
8.2.190.0140.00418.16
8.2.180.0120.00318.07
8.2.170.0040.01122.96
8.2.160.0100.00322.16
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0080.00319.23
8.2.120.0050.00326.35
8.2.110.0070.00322.13
8.2.100.0040.00717.93
8.2.90.0080.00019.23
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0050.00317.90
8.2.50.0080.00018.07
8.2.40.0060.00319.52
8.2.30.0040.00420.63
8.2.20.0040.00417.66
8.2.10.0040.00417.97
8.2.00.0000.00717.93
8.1.280.0060.00925.92
8.1.270.0030.00522.09
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0060.00617.54
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0080.00018.84
8.1.160.0070.00022.06
8.1.150.0040.00418.80
8.1.140.0030.00519.58
8.1.130.0050.00317.70
8.1.120.0070.00317.46
8.1.110.0000.00817.47
8.1.100.0040.00417.48
8.1.90.0040.00417.36
8.1.80.0030.00317.35
8.1.70.0000.00717.33
8.1.60.0030.00617.59
8.1.50.0000.00817.51
8.1.40.0030.00617.52
8.1.30.0000.00817.49
8.1.20.0000.00817.55
8.1.10.0050.00317.46
8.1.00.0020.00517.33
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.39
8.0.270.0070.00017.11
8.0.260.0000.00617.20
8.0.250.0040.00416.88
8.0.240.0040.00416.90
8.0.230.0000.00716.78
8.0.220.0050.00316.80
8.0.210.0000.00716.89
8.0.200.0000.00616.85
8.0.190.0080.00016.89
8.0.180.0000.00716.87
8.0.170.0040.00416.93
8.0.160.0040.00416.92
8.0.150.0050.00216.79
8.0.140.0040.00416.70
8.0.130.0050.00013.29
8.0.120.0030.00516.78
8.0.110.0000.00716.82
8.0.100.0040.00416.84
8.0.90.0070.00016.77
8.0.80.0090.01216.85
8.0.70.0040.00416.89
8.0.60.0020.00516.71
8.0.50.0070.00016.92
8.0.30.0070.00916.89
8.0.20.0090.01017.41
8.0.10.0040.00417.04
8.0.00.0060.01216.79
7.4.330.0020.00215.15
7.4.320.0060.00016.43
7.4.300.0060.00016.41
7.4.290.0000.00616.60
7.4.280.0000.00816.61
7.4.270.0040.00416.65
7.4.260.0070.00016.48
7.4.250.0000.00816.37
7.4.240.0040.00416.54
7.4.230.0040.00416.36
7.4.220.0060.00916.63
7.4.210.0040.01116.65
7.4.200.0030.00516.52
7.4.160.0090.00616.50
7.4.150.0080.00817.40
7.4.140.0120.00717.86
7.4.130.0030.01516.57
7.4.120.0070.01016.38
7.4.110.0100.00716.38
7.4.100.0030.01616.34
7.4.90.0090.01216.55
7.4.80.0080.01119.39
7.4.70.0090.00916.53
7.4.60.0030.01316.57
7.4.50.0000.00816.30
7.4.40.0170.00016.43
7.4.30.0100.00716.62
7.4.10.0070.01014.93
7.4.00.0070.01014.87
7.3.330.0050.00013.21
7.3.320.0000.00513.41
7.3.310.0030.00316.20
7.3.300.0000.00616.15
7.3.290.0080.01016.33
7.3.280.0140.00416.28
7.3.270.0040.01217.40
7.3.260.0190.00016.27
7.3.250.0100.01016.49
7.3.240.0100.00716.22
7.3.230.0070.01016.50
7.3.210.0060.01016.25
7.3.200.0080.00816.49
7.3.190.0030.01416.56
7.3.180.0130.00316.20
7.3.170.0120.00416.32
7.3.160.0130.00316.58
7.3.130.0080.01014.72
7.3.120.0070.01015.00
7.3.110.0100.00814.71
7.3.100.0080.00814.87
7.3.90.0080.00714.73
7.3.80.0040.00714.91
7.3.70.0080.00414.75
7.3.60.0040.00714.85
7.3.50.0090.00414.84
7.3.40.0030.00914.85
7.3.30.0080.00714.77
7.3.20.0100.00216.51
7.3.10.0090.00416.68
7.3.00.0040.00716.59
7.2.330.0100.01016.41
7.2.320.0110.00616.48
7.2.310.0100.00616.59
7.2.300.0030.01316.71
7.2.290.0110.00716.46
7.2.260.0090.00915.08
7.2.250.0080.00915.04
7.2.240.0050.01214.93
7.2.230.0050.00814.94
7.2.220.0050.00815.00
7.2.210.0070.00415.07
7.2.200.0060.00815.02
7.2.190.0050.00914.82
7.2.180.0040.00914.83
7.2.170.0050.00814.97
7.2.160.0070.00314.97
7.2.150.0070.00516.83
7.2.140.0040.01216.83
7.2.130.0050.00817.03
7.2.120.0030.01116.94
7.2.110.0070.00816.79
7.2.100.0090.00616.83
7.2.90.0070.00716.85
7.2.80.0050.01216.92
7.2.70.0010.01016.99
7.2.60.0100.00516.77
7.2.50.0000.01316.93
7.2.40.0060.00716.84
7.2.30.0030.01416.91
7.2.20.0070.01016.81
7.2.10.0080.00316.82
7.2.00.0020.01017.72
7.1.330.0050.00915.74
7.1.320.0070.00615.72
7.1.310.0070.00515.79
7.1.300.0060.00515.73
7.1.290.0050.00815.59
7.1.280.0070.00315.72
7.1.270.0030.00815.64
7.1.260.0090.00415.72
7.1.250.0050.00815.77
7.1.240.0080.00615.68
7.1.230.0060.00615.75
7.1.220.0030.01015.84
7.1.210.0020.01215.57
7.1.200.0070.00515.75
7.1.190.0040.00715.75
7.1.180.0050.01015.72
7.1.170.0080.00615.70
7.1.160.0070.00715.63
7.1.150.0080.00715.67
7.1.140.0060.00615.64
7.1.130.0050.00815.71
7.1.120.0120.00215.80
7.1.110.0030.01015.71
7.1.100.0090.00316.35
7.1.90.0050.00715.89
7.1.80.0040.01115.59
7.1.70.0030.01116.26
7.1.60.0050.01016.91
7.1.50.0050.00716.13
7.1.40.0050.00615.78
7.1.30.0060.00515.73
7.1.20.0060.00715.78
7.1.10.0040.00715.65
7.1.00.0040.03318.00
7.0.330.0080.00715.46
7.0.320.0070.00715.29
7.0.310.0050.00415.40
7.0.300.0050.01015.36
7.0.290.0040.00915.23
7.0.280.0040.00715.40
7.0.270.0130.00215.21
7.0.260.0070.00715.49
7.0.250.0060.00615.32
7.0.240.0040.01015.42
7.0.230.0070.00715.26
7.0.220.0070.00515.52
7.0.210.0050.00815.35
7.0.200.0040.00715.74
7.0.190.0060.00515.50
7.0.180.0080.00315.32
7.0.170.0050.00715.47
7.0.160.0060.00615.38
7.0.150.0060.00515.45
7.0.140.0070.00515.40
7.0.130.0090.00615.24
7.0.120.0050.00715.37
7.0.110.0070.00515.55
7.0.100.0040.00715.36
7.0.90.0090.00315.43
7.0.80.0040.00615.50
7.0.70.0080.00915.27
7.0.60.0050.02917.00
7.0.50.0010.03516.28
7.0.40.0090.02515.77
7.0.30.0150.02615.72
7.0.20.0120.02715.65
7.0.10.0050.02115.68
7.0.00.0030.01915.63
5.6.400.0050.00514.37
5.6.390.0050.00814.09
5.6.380.0090.00513.98
5.6.370.0030.01314.15
5.6.360.0050.00814.12
5.6.350.0050.01014.31
5.6.340.0040.00814.27
5.6.330.0090.00314.16
5.6.320.0060.00814.15
5.6.310.0020.01214.26
5.6.300.0080.00314.26
5.6.290.0020.00914.21
5.6.280.0030.02616.49
5.6.270.0040.01113.99
5.6.260.0050.00614.27
5.6.250.0020.01314.06
5.6.240.0050.00814.13
5.6.230.0020.01014.10
5.6.220.0000.01214.15
5.6.210.0080.01516.42
5.6.200.0010.03615.56
5.6.190.0070.03316.16
5.6.180.0110.01816.06
5.6.170.0130.03016.28
5.6.160.0060.03416.14
5.6.150.0050.03115.61
5.6.140.0070.03015.48
5.6.130.0050.02415.46
5.6.120.0080.03016.51
5.6.110.0030.02316.47
5.6.100.0050.03116.53
5.6.90.0070.03316.55
5.6.80.0060.03216.21
5.6.70.0070.00714.00
5.6.60.0060.01114.08
5.6.50.0100.00514.15
5.6.40.0070.00513.89
5.6.30.0050.00513.95
5.6.20.0010.01113.87
5.6.10.0090.00414.14
5.6.00.0030.01014.05
5.5.380.0040.00814.07
5.5.370.0070.00914.19
5.5.360.0100.00314.32
5.5.350.1090.01716.30
5.5.340.0030.02515.32
5.5.330.0090.03016.00
5.5.320.0100.02816.10
5.5.310.0140.02416.08
5.5.300.0040.01715.33
5.5.290.0030.02115.46
5.5.280.0090.02816.44
5.5.270.0040.02416.15
5.5.260.0130.02116.44
5.5.250.0060.03216.38
5.5.240.0130.02816.00
5.5.230.0050.00814.08
5.5.220.0060.00614.11
5.5.210.0070.00814.05
5.5.200.0020.00913.97
5.5.190.0060.00814.08
5.5.180.0090.00513.97
5.5.170.0100.00514.04
5.5.160.0070.00714.08
5.5.150.0050.00913.90
5.5.140.0000.00913.95
5.5.130.0050.01113.82
5.5.120.0070.00313.86
5.5.110.0040.00913.79
5.5.100.0020.01013.72
5.5.90.0110.00513.95
5.5.80.0020.01314.14
5.5.70.0060.00813.98
5.5.60.0090.00313.96
5.5.50.0050.00614.06
5.5.40.0020.00713.82
5.5.30.0000.01213.94
5.5.20.0090.00413.87
5.5.10.0050.00714.02
5.5.00.0080.00514.01

preferences:
60.56 ms | 401 KiB | 5 Q