3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $foo = function () { $bar = (yield "foo"); var_dump($bar); yield "bar"; }; $c = $foo(); while ($c->valid()) { var_dump($c->current()); $c->send("bar"); $c->next(); }

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.0040.01116.63
8.3.50.0090.00621.96
8.3.40.0110.00718.79
8.3.30.0110.00418.91
8.3.20.0070.00020.29
8.3.10.0000.00823.56
8.3.00.0000.00820.65
8.2.180.0120.00916.63
8.2.170.0110.00422.96
8.2.160.0070.00722.13
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00722.08
8.2.110.0000.01021.97
8.2.100.0060.00617.91
8.2.90.0040.00419.22
8.2.80.0040.00418.04
8.2.70.0080.00017.50
8.2.60.0050.00318.03
8.2.50.0050.00318.07
8.2.40.0080.00019.37
8.2.30.0000.00818.10
8.2.20.0040.00417.74
8.2.10.0050.00319.38
8.2.00.0040.00417.69
8.1.280.0100.00325.92
8.1.270.0040.00423.92
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.66
8.1.230.0080.00419.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0000.00717.52
8.1.180.0050.00318.10
8.1.170.0050.00318.60
8.1.160.0040.00422.09
8.1.150.0070.00018.71
8.1.140.0080.00017.45
8.1.130.0000.00817.88
8.1.120.0000.00717.47
8.1.110.0040.00417.39
8.1.100.0000.00717.54
8.1.90.0020.00517.38
8.1.80.0000.00717.46
8.1.70.0030.00317.41
8.1.60.0040.00417.62
8.1.50.0030.00517.43
8.1.40.0000.00717.59
8.1.30.0060.00317.65
8.1.20.0000.00717.66
8.1.10.0070.00017.59
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0030.00316.90
8.0.280.0050.00318.36
8.0.270.0000.00717.20
8.0.260.0030.00816.82
8.0.250.0070.00016.95
8.0.240.0040.00416.82
8.0.230.0040.00416.98
8.0.220.0030.00316.76
8.0.210.0030.00316.89
8.0.200.0000.00616.95
8.0.190.0020.00517.01
8.0.180.0000.00716.81
8.0.170.0080.00016.80
8.0.160.0040.00416.86
8.0.150.0040.00316.71
8.0.140.0000.00816.85
8.0.130.0050.00013.28
8.0.120.0040.00416.75
8.0.110.0050.00216.91
8.0.100.0000.01016.85
8.0.90.0000.00816.93
8.0.80.0140.00316.88
8.0.70.0020.00516.91
8.0.60.0040.00416.80
8.0.50.0030.00516.79
8.0.30.0120.00616.90
8.0.20.0110.01317.43
8.0.10.0000.00716.90
8.0.00.0100.01216.75
7.4.330.0000.00515.00
7.4.320.0040.00416.52
7.4.300.0000.00616.59
7.4.290.0030.00316.52
7.4.280.0050.00216.59
7.4.270.0050.00216.66
7.4.260.0000.00716.57
7.4.250.0040.00416.41
7.4.240.0030.00316.57
7.4.230.0070.00016.41
7.4.220.0160.00916.59
7.4.210.0090.00516.59
7.4.200.0000.00716.71
7.4.190.0000.00716.31
7.4.160.0100.00616.33
7.4.150.0070.01017.40
7.4.140.0050.01517.86
7.4.130.0050.01516.52
7.4.120.0110.00716.42
7.4.110.0100.00716.45
7.4.100.0030.01316.60
7.4.90.0040.01416.44
7.4.80.0030.01316.46
7.4.70.0060.01116.55
7.4.60.0060.00916.54
7.4.50.0060.00316.52
7.4.40.0060.01222.77
7.4.30.0100.00616.51
7.4.00.0060.00914.70
7.3.330.0030.00313.05
7.3.320.0050.00013.23
7.3.310.0050.00316.30
7.3.300.0040.00416.24
7.3.290.0060.00916.13
7.3.280.0060.01216.17
7.3.270.0140.00417.40
7.3.260.0090.00916.52
7.3.250.0120.00516.56
7.3.240.0070.01116.49
7.3.230.0120.00616.39
7.3.210.0040.01316.14
7.3.200.0090.00919.39
7.3.190.0090.00916.31
7.3.180.0060.00916.27
7.3.170.0090.00616.52
7.3.160.0090.00616.46
7.3.120.0050.00815.00
7.3.10.0100.00316.27
7.3.00.0130.00316.50
7.2.330.0140.00416.39
7.2.320.0170.00616.55
7.2.310.0000.01616.67
7.2.300.0100.00716.75
7.2.290.0090.00916.66
7.2.130.0060.01216.84
7.2.120.0070.00416.67
7.2.110.0030.01016.33
7.2.100.0030.00616.93
7.2.90.0080.00316.75
7.2.80.0090.00316.94
7.2.70.0060.00916.93
7.2.60.0060.00616.56
7.2.50.0070.00716.41
7.2.40.0040.01216.59
7.2.30.0030.00716.65
7.2.20.0070.01016.41
7.2.10.0110.00416.75
7.2.00.0040.01017.95
7.1.250.0000.01315.58
7.1.100.0000.00818.23
7.1.70.0000.00717.13
7.1.60.0100.01019.32
7.1.50.0040.01916.81
7.1.00.0000.07722.28
7.0.200.0030.00716.77
7.0.140.0030.07022.04
7.0.100.0000.04719.99
7.0.90.0100.03719.84
7.0.80.0130.04019.90
7.0.70.0000.04720.01
7.0.60.0100.04019.92
7.0.50.0000.04320.23
7.0.40.0100.03720.17
7.0.30.0130.08020.18
7.0.20.0130.06720.09
7.0.10.0030.06720.18
7.0.00.0030.05020.12
5.6.280.0000.07721.00
5.6.250.0030.04020.51
5.6.240.0070.03720.64
5.6.230.0070.03720.67
5.6.220.0000.05720.52
5.6.210.0100.03720.46
5.6.200.0070.04721.01
5.6.190.0030.04321.06
5.6.180.0100.03721.04
5.6.170.0100.07321.11
5.6.160.0070.08021.09
5.6.150.0170.07021.02
5.6.140.0070.04321.01
5.6.130.0100.07021.07
5.6.120.0130.09321.00
5.6.110.0070.05021.03
5.6.100.0030.09321.00
5.6.90.0070.08021.00
5.6.80.0070.07320.52
5.6.70.0070.07720.39
5.6.60.0100.03320.48
5.6.50.0130.07320.32
5.6.40.0070.04720.36
5.6.30.0200.06320.42
5.6.20.0070.06020.39
5.6.10.0030.09320.44
5.6.00.0100.08320.40
5.5.380.0030.05720.37
5.5.370.0130.03020.44
5.5.360.0000.04320.36
5.5.350.0000.04320.47
5.5.340.0070.04320.89
5.5.330.0030.04320.80
5.5.320.0000.04320.79
5.5.310.0000.04720.93
5.5.300.0070.04020.64
5.5.290.0070.05020.85
5.5.280.0130.05320.89
5.5.270.0100.07020.82
5.5.260.0130.07320.92
5.5.250.0100.05320.70
5.5.240.0070.07320.16
5.5.230.0100.08020.20
5.5.220.0130.07020.18
5.5.210.0130.07320.14
5.5.200.0070.07320.11
5.5.190.0100.07720.21
5.5.180.0070.08020.21
5.5.160.0200.06720.18
5.5.150.0130.07720.18
5.5.140.0130.06320.23
5.5.130.0070.05720.18
5.5.120.0070.08319.99
5.5.110.0000.08019.96
5.5.100.0100.07020.10
5.5.90.0070.06020.06
5.5.80.0100.08020.08
5.5.70.0100.04320.06
5.5.60.0070.04720.00
5.5.50.0100.07320.06
5.5.40.0130.04719.96
5.5.30.0100.06320.00
5.5.20.0130.04720.05
5.5.10.0200.06319.96
5.5.00.0000.05319.95
5.4.450.0030.06719.25
5.4.440.0130.03719.54
5.4.430.0130.07719.38
5.4.420.0070.07719.17
5.4.410.0170.06719.32
5.4.400.0170.06718.95
5.4.390.0130.07018.88
5.4.380.0070.04319.04
5.4.370.0100.07319.05
5.4.360.0170.07019.03
5.4.350.0030.07319.05
5.4.340.0100.08019.03
5.4.320.0100.07019.04
5.4.310.0070.06019.23
5.4.300.0130.06718.94
5.4.290.0100.07319.18
5.4.280.0030.09319.23
5.4.270.0170.06719.21
5.4.260.0100.04719.14
5.4.250.0030.06319.04
5.4.240.0070.04319.09
5.4.230.0100.07319.04
5.4.220.0070.08319.18
5.4.210.0100.04018.94
5.4.200.0130.06319.16
5.4.190.0070.06719.20
5.4.180.0100.07318.86
5.4.170.0100.07319.04
5.4.160.0130.07019.02
5.4.150.0030.08019.16
5.4.140.0100.05316.38
5.4.130.0070.07716.41
5.4.120.0130.06316.37
5.4.110.0070.07316.47
5.4.100.0030.04316.34
5.4.90.0100.07016.51
5.4.80.0100.06016.55
5.4.70.0070.04316.37
5.4.60.0030.07716.34
5.4.50.0030.07316.48
5.4.40.0070.07016.46
5.4.30.0070.06716.24
5.4.20.0170.07016.29
5.4.10.0030.04016.43
5.4.00.0070.05015.73
5.3.290.0070.07314.67
5.3.280.0070.08014.71
5.3.270.0000.06314.63
5.3.260.0100.04014.71
5.3.250.0100.07014.57
5.3.240.0100.07014.67
5.3.230.0030.08014.52
5.3.220.0070.07014.50
5.3.210.0030.04314.56
5.3.200.0100.05314.52
5.3.190.0030.07014.68
5.3.180.0030.05314.55
5.3.170.0070.08014.62
5.3.160.0030.03314.58
5.3.150.0030.04714.65
5.3.140.0070.07014.56
5.3.130.0070.07314.58
5.3.120.0070.06014.65
5.3.110.0100.07314.64
5.3.100.0100.07014.15
5.3.90.0030.05714.13
5.3.80.0000.04314.11
5.3.70.0100.07014.00
5.3.60.0030.07714.00
5.3.50.0000.07714.05
5.3.40.0100.07713.83
5.3.30.0070.04013.81
5.3.20.0070.05013.82
5.3.10.0000.06013.63
5.3.00.0100.03713.70
5.2.170.0100.06012.36
5.2.160.0070.06012.36
5.2.150.0070.04312.36
5.2.140.0030.06012.36
5.2.130.0030.04012.36
5.2.120.0070.03012.36
5.2.110.0030.05312.36
5.2.100.0030.04712.36
5.2.90.0030.04312.36
5.2.80.0070.03312.36
5.2.70.0070.02712.36
5.2.60.0070.05012.36
5.2.50.0000.04712.36
5.2.40.0070.03012.36
5.2.30.0030.03312.36
5.2.20.0070.06312.36
5.2.10.0070.04712.36
5.2.00.0000.05712.36
5.1.60.0130.04312.36
5.1.50.0070.02712.36
5.1.40.0000.02712.36
5.1.30.0000.03312.36
5.1.20.0100.02012.36
5.1.10.0030.02312.36
5.1.00.0030.04712.36
5.0.50.0030.04712.36
5.0.40.0030.04012.36
5.0.30.0070.03012.36
5.0.20.0000.04312.36
5.0.10.0070.04312.36
5.0.00.0000.03712.36
4.4.90.0000.03012.36
4.4.80.0000.02012.36
4.4.70.0030.01312.36
4.4.60.0000.01712.36
4.4.50.0100.00712.36
4.4.40.0070.05012.36
4.4.30.0000.02712.36
4.4.20.0070.02312.36
4.4.10.0000.03712.36
4.4.00.0030.04312.36
4.3.110.0030.01712.36
4.3.100.0030.03312.36
4.3.90.0070.01712.36
4.3.80.0030.05012.36
4.3.70.0030.03712.36
4.3.60.0030.02712.36
4.3.50.0000.03012.36
4.3.40.0030.04012.36
4.3.30.0030.03312.36
4.3.20.0000.03312.36
4.3.10.0030.03012.36
4.3.00.0030.03012.36

preferences:
81.16 ms | 400 KiB | 5 Q