3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { static $x = 1; $x += 10; yield $x; $x += 100; yield $x; $x += 1000; yield $x; } $x = foo(); $x->next(); $x->rewind();

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.0090.00918.40
8.3.50.0100.00822.17
8.3.40.0170.00318.95
8.3.30.0100.00319.04
8.3.20.0040.00420.29
8.3.10.0000.00721.89
8.3.00.0070.00019.22
8.2.180.0080.00818.29
8.2.170.0070.00722.96
8.2.160.0100.00322.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.66
8.2.110.0000.01021.11
8.2.100.0080.00417.91
8.2.90.0040.00417.90
8.2.80.0070.00317.97
8.2.70.0030.00617.75
8.2.60.0000.00717.90
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0040.00418.04
8.2.20.0070.00017.80
8.2.10.0030.00518.05
8.2.00.0000.00717.80
8.1.280.0140.00025.92
8.1.270.0060.00918.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.48
8.1.230.0060.00620.97
8.1.220.0040.00417.74
8.1.210.0030.00618.89
8.1.200.0100.00017.23
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0030.00321.96
8.1.150.0040.00418.89
8.1.140.0060.00317.33
8.1.130.0000.00717.81
8.1.120.0000.00717.37
8.1.110.0050.00317.48
8.1.100.0040.00417.39
8.1.90.0040.00417.43
8.1.80.0000.00717.31
8.1.70.0000.00917.39
8.1.60.0000.00817.59
8.1.50.0050.00317.42
8.1.40.0000.00717.50
8.1.30.0050.00317.60
8.1.20.0050.00217.65
8.1.10.0000.00817.53
8.1.00.0040.00417.58
8.0.300.0070.00020.04
8.0.290.0070.00016.75
8.0.280.0070.00018.36
8.0.270.0070.00017.18
8.0.260.0030.00317.18
8.0.250.0030.00316.95
8.0.240.0000.00816.99
8.0.230.0080.00017.00
8.0.220.0030.00316.94
8.0.210.0030.00616.92
8.0.200.0040.00416.93
8.0.190.0050.00316.89
8.0.180.0030.00616.94
8.0.170.0000.00817.02
8.0.160.0040.00417.02
8.0.150.0030.00516.89
8.0.140.0050.00316.80
8.0.130.0000.00513.44
8.0.120.0040.00416.97
8.0.110.0040.00416.99
8.0.100.0000.00716.92
8.0.90.0040.00416.82
8.0.80.0080.01316.91
8.0.70.0040.00416.84
8.0.60.0040.00416.77
8.0.50.0000.00816.91
8.0.30.0130.01117.30
8.0.20.0090.00917.40
8.0.10.0040.00416.89
8.0.00.0130.00416.70
7.4.330.0060.00015.03
7.4.320.0070.00016.40
7.4.300.0060.00016.46
7.4.290.0030.00316.49
7.4.280.0000.00816.59
7.4.270.0000.00716.50
7.4.260.0030.00616.58
7.4.250.0000.00716.46
7.4.240.0040.00416.50
7.4.230.0070.00016.63
7.4.220.0090.00916.59
7.4.210.0110.00416.70
7.4.200.0070.00016.42
7.4.160.0090.00616.47
7.4.150.0130.00617.40
7.4.140.0110.00817.86
7.4.130.0150.00816.46
7.4.120.0100.00716.54
7.4.110.0110.00716.39
7.4.100.0000.02016.50
7.4.90.0070.01116.55
7.4.80.0080.00819.39
7.4.70.0070.01116.65
7.4.60.0030.01316.61
7.4.50.0040.00416.36
7.4.40.0080.00816.64
7.4.30.0090.00916.65
7.4.00.0100.00614.80
7.3.330.0050.00213.33
7.3.320.0000.00513.23
7.3.310.0040.00416.32
7.3.300.0000.00716.33
7.3.290.0090.00616.34
7.3.280.0080.01216.35
7.3.270.0040.01217.40
7.3.260.0090.00916.65
7.3.250.0140.00416.45
7.3.240.0120.00916.55
7.3.230.0070.01016.39
7.3.210.0090.00916.64
7.3.200.0100.01019.39
7.3.190.0130.00916.51
7.3.180.0100.00616.34
7.3.170.0070.01416.32
7.3.160.0060.01416.26
7.3.10.0020.01216.57
7.3.00.0050.00716.65
7.2.330.0130.00316.46
7.2.320.0030.01816.57
7.2.310.0120.00416.43
7.2.300.0070.01116.73
7.2.290.0090.01516.67
7.2.130.0070.00516.77
7.2.120.0060.00516.73
7.2.110.0050.01016.55
7.2.100.0000.00916.74
7.2.90.0060.00816.73
7.2.80.0030.00916.71
7.2.70.0040.00716.83
7.2.60.0040.00616.78
7.2.50.0030.00916.83
7.2.40.0060.00616.80
7.2.30.0050.00616.84
7.2.20.0080.00316.76
7.2.10.0040.01016.90
7.2.00.0050.00717.69
7.1.250.0050.00315.77
7.1.200.0080.00315.56
7.1.100.0060.00618.20
7.1.70.0060.00617.08
7.1.60.0070.01719.46
7.1.50.0080.00516.87
7.1.00.0030.07322.43
7.0.200.0030.00616.84
7.0.140.0000.06322.13
7.0.60.0070.07021.73
7.0.50.0030.06717.96
7.0.40.0070.09020.13
7.0.30.0330.05020.07
7.0.20.0370.05020.16
7.0.10.0070.05020.28
7.0.00.0100.08020.22
5.6.280.0000.07321.04
5.6.210.0070.04320.70
5.6.200.0070.04718.27
5.6.190.0070.08320.34
5.6.180.0370.04320.77
5.6.170.0200.04020.56
5.6.160.0100.03720.39
5.6.150.0030.05318.14
5.6.140.0100.07018.18
5.6.130.0070.08318.27
5.6.120.0070.06721.10
5.6.110.0130.07321.01
5.6.100.0070.07320.98
5.6.90.0100.03720.98
5.6.80.0170.07020.45
5.5.350.4200.04720.43
5.5.340.0170.06718.09
5.5.330.0130.03320.25
5.5.320.0370.04020.34
5.5.310.0270.07320.27
5.5.300.0070.06718.08
5.5.290.0030.04017.98
5.5.280.0100.04020.96
5.5.270.0100.08020.96
5.5.260.0100.06720.87
5.5.250.0200.07320.57
5.5.240.0170.06020.04
5.4.450.3870.04019.26
5.4.440.3970.05719.45
5.4.430.3630.02719.53
5.4.420.3570.03719.25
5.4.410.3700.03319.24
5.4.400.3800.04319.14
5.4.390.3370.03319.11
5.4.380.4200.04019.22
5.4.370.3770.04019.23
5.4.360.3870.03319.22
5.4.350.3770.03719.27
5.4.340.3530.03719.11
5.4.320.3530.04019.21
5.4.310.3230.04019.13
5.4.300.3870.03719.16
5.4.290.4000.03719.04
5.4.280.3930.03019.22
5.4.270.3530.03719.14
5.4.260.3800.03319.11
5.4.250.3870.04019.22
5.4.240.3830.03718.98
5.4.230.3800.03719.08
5.4.220.3930.04019.04
5.4.210.3670.03719.20
5.4.200.3630.03019.22
5.4.190.3900.04019.23
5.4.180.3870.03719.23
5.4.170.4500.03719.21
5.4.160.4230.03719.13
5.4.150.3970.03719.02
5.4.140.0100.03716.36
5.4.130.0100.07016.42
5.4.120.4570.03316.50
5.4.110.4030.03716.57
5.4.100.3600.04016.45
5.4.90.3630.03016.48
5.4.80.3700.02716.45
5.4.70.3630.04016.46
5.4.60.3700.03316.42
5.4.50.3670.03016.42
5.4.40.3770.04016.45
5.4.30.3330.04016.41
5.4.20.0030.04016.49
5.4.10.3830.03316.24
5.4.00.3570.03715.86
5.3.290.3630.03014.69
5.3.280.3770.04314.60
5.3.270.5730.03714.61
5.3.260.4300.04014.64
5.3.250.2600.03314.63
5.3.240.0070.07714.61
5.3.230.3600.03314.63
5.3.220.4600.03014.63
5.3.210.4670.03714.63
5.3.200.3630.03714.60
5.3.190.3730.03714.63
5.3.180.4100.04714.62
5.3.170.3600.03714.64
5.3.160.3700.03714.57
5.3.150.3570.03714.64
5.3.140.3600.03714.57
5.3.130.0070.07314.61
5.3.120.0100.07714.55
5.3.110.1830.03714.56
5.3.100.3670.02714.07
5.3.90.3630.03314.17
5.3.80.3630.03714.01
5.3.70.3630.03314.05
5.3.60.3830.03714.14
5.3.50.3870.03714.00
5.3.40.3630.04014.09
5.3.30.3600.03313.84
5.3.20.3900.03313.83
5.3.10.3900.03313.55
5.3.00.4030.02313.79
5.2.170.3230.02711.14
5.2.160.3230.02311.14
5.2.150.3400.03711.19
5.2.140.2970.02311.11
5.2.130.3300.03311.18
5.2.120.3230.03311.07
5.2.110.3300.02711.09
5.2.100.3170.02711.13
5.2.90.3230.03011.13
5.2.80.3030.03310.98
5.2.70.3070.03011.11
5.2.60.3000.03011.05
5.2.50.2930.03310.96
5.2.40.2370.03011.13
5.2.30.2100.02710.93
5.2.20.3000.02711.00
5.2.10.2800.02710.86
5.2.00.3100.02710.87
5.1.60.2930.01710.13
5.1.50.3070.02310.01
5.1.40.2930.0239.93
5.1.30.3130.02710.30
5.1.20.3100.02710.36
5.1.10.3170.02710.13
5.1.00.3130.02710.22
5.0.50.1630.0238.46
5.0.40.1570.0208.43
5.0.30.1600.0308.13
5.0.20.1530.0208.25
5.0.10.1630.0208.14
5.0.00.1430.0308.30
4.4.90.1430.0176.08
4.4.80.1370.0176.08
4.4.70.1670.0236.08
4.4.60.1770.0136.08
4.4.50.1430.0176.08
4.4.40.1370.0276.08
4.4.30.1570.0206.08
4.4.20.1600.0136.08
4.4.10.1770.0136.08
4.4.00.1200.0406.08
4.3.110.1230.0136.08
4.3.100.1330.0176.08
4.3.90.1430.0136.08
4.3.80.1200.0276.08
4.3.70.1370.0176.08
4.3.60.1370.0176.08
4.3.50.1270.0206.08
4.3.40.1470.0236.08
4.3.30.0970.0236.08
4.3.20.0970.0236.08
4.3.10.0770.0176.08
4.3.00.0730.0136.08

preferences:
50.52 ms | 401 KiB | 5 Q