3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function __construct($gen) { $this->gen = $gen; } function __destruct() { var_dump($this->gen->current()); } } function gen() { $self = yield (0); yield (new X($self)); return 12; } $a = gen(); var_dump($a->current()); $a->send($a); var_dump($a->current()); $a->next(); var_dump($a->getReturn());

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.0100.00716.86
8.3.50.0070.01422.05
8.3.40.0080.00818.75
8.3.30.0070.00718.86
8.3.20.0000.00720.33
8.3.10.0050.00323.78
8.3.00.0070.00317.63
8.2.180.0130.00316.63
8.2.170.0040.01122.96
8.2.160.0070.00720.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.01017.63
8.2.110.0030.00622.26
8.2.100.0070.00417.93
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00718.03
8.2.50.0050.00318.07
8.2.40.0000.00921.02
8.2.30.0070.00020.54
8.2.20.0040.00417.57
8.2.10.0000.00718.06
8.2.00.0040.00417.98
8.1.280.0140.00325.92
8.1.270.0040.00423.84
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.01022.37
8.1.230.0070.00417.65
8.1.220.0080.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.95
8.1.160.0000.00821.90
8.1.150.0000.00718.90
8.1.140.0040.00419.66
8.1.130.0050.00217.84
8.1.120.0030.00417.45
8.1.110.0080.00017.36
8.1.100.0000.00717.34
8.1.90.0000.00817.37
8.1.80.0070.00017.43
8.1.70.0000.00717.48
8.1.60.0040.00417.44
8.1.50.0040.00417.61
8.1.40.0030.00617.43
8.1.30.0030.00617.63
8.1.20.0000.00817.66
8.1.10.0040.00417.52
8.1.00.0030.00717.55
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00317.19
8.0.260.0030.00317.12
8.0.250.0040.00416.97
8.0.240.0040.00416.98
8.0.230.0000.00716.94
8.0.220.0030.00316.74
8.0.210.0030.00316.80
8.0.200.0030.00316.87
8.0.190.0040.00416.84
8.0.180.0000.00716.80
8.0.170.0040.00416.85
8.0.160.0030.00516.84
8.0.150.0030.00516.87
8.0.140.0000.00816.91
8.0.130.0030.00613.34
8.0.120.0000.00816.90
8.0.110.0020.00516.91
8.0.100.0000.00716.86
8.0.90.0040.00416.90
8.0.80.0120.00316.90
8.0.70.0000.00816.95
8.0.60.0020.00516.73
8.0.50.0000.00716.77
8.0.30.0090.01117.05
8.0.20.0090.01117.40
8.0.10.0060.00317.01
8.0.00.0100.00816.69
7.4.330.0000.00715.08
7.4.320.0030.00316.47
7.4.300.0000.00616.50
7.4.290.0000.00716.62
7.4.280.0040.00416.60
7.4.270.0030.00316.60
7.4.260.0040.00716.50
7.4.250.0030.00316.55
7.4.240.0010.00616.56
7.4.230.0000.00716.66
7.4.220.0070.01116.46
7.4.210.0050.00916.59
7.4.200.0030.00316.37
7.4.160.0130.00316.63
7.4.150.0150.00417.40
7.4.140.0140.00617.86
7.4.130.0060.01416.60
7.4.120.0090.00816.34
7.4.110.0140.00316.31
7.4.100.0140.00716.55
7.4.90.0160.00016.65
7.4.80.0060.01119.39
7.4.70.0200.00016.51
7.4.60.0030.01316.43
7.4.50.0040.00416.38
7.4.40.0090.00616.45
7.4.30.0100.00616.69
7.4.00.0060.01115.09
7.3.330.0000.00613.13
7.3.320.0000.00513.09
7.3.310.0040.00416.36
7.3.300.0040.00416.31
7.3.290.0070.00016.27
7.3.280.0060.01116.25
7.3.270.0000.01717.40
7.3.260.0100.00716.29
7.3.250.0100.01016.38
7.3.240.0080.01516.47
7.3.230.0060.01016.48
7.3.210.0030.01316.62
7.3.200.0080.01516.59
7.3.190.0100.00716.43
7.3.180.0090.00616.56
7.3.170.0080.00816.56
7.3.160.0090.00616.40
7.3.120.0070.01214.83
7.3.110.0070.01114.92
7.3.100.0060.01314.82
7.3.90.0050.00814.84
7.3.80.0050.00814.87
7.3.70.0110.00514.79
7.3.60.0080.00514.75
7.3.50.0050.01014.74
7.3.40.0080.00714.83
7.3.30.0070.00414.82
7.3.20.0070.00516.56
7.3.10.0080.00716.59
7.3.00.0030.00916.69
7.2.330.0130.00716.79
7.2.320.0100.00716.84
7.2.310.0170.00016.50
7.2.300.0070.01016.56
7.2.290.0040.01816.63
7.2.250.0110.00714.96
7.2.240.0050.01414.98
7.2.230.0100.00615.17
7.2.220.0120.00415.06
7.2.210.0010.01315.21
7.2.200.0030.01315.07
7.2.190.0020.00915.11
7.2.180.0050.01014.86
7.2.170.0020.01414.98
7.2.60.0070.00716.69
7.1.330.0050.00915.92
7.1.320.0050.00615.78
7.1.310.0030.01315.73
7.1.300.0070.00715.66
7.1.290.0080.01015.64
7.1.280.0060.01015.68
7.1.270.0080.00515.82
7.1.260.0080.00615.84
7.1.200.0090.00615.70
7.1.100.0080.00318.14
7.1.70.0000.00916.86
7.1.60.0060.01819.43
7.1.50.0060.01616.46
7.1.00.0070.07322.28
7.0.200.0210.00314.90
7.0.60.0000.04319.92
7.0.50.0000.04317.86
7.0.40.0070.05720.04
7.0.30.0130.05720.27
7.0.20.0330.07320.24
7.0.10.0070.07020.27
7.0.00.0100.08720.07
5.6.280.0030.03321.03
5.6.210.0130.07320.55
5.6.200.0030.08318.21
5.6.190.0030.04320.65
5.6.180.0270.04320.48
5.6.170.0370.05320.45
5.6.160.0030.06720.54
5.6.150.0070.07018.18
5.6.140.0070.04718.18
5.6.130.0100.06718.27
5.6.120.0130.03021.13
5.6.110.0030.08721.00
5.6.100.0000.09321.14
5.6.90.0070.08720.98
5.6.80.0070.03720.52
5.5.350.3600.04020.39
5.5.340.0030.05317.99
5.5.330.0030.08320.19
5.5.320.0270.05320.32
5.5.310.0330.06720.30
5.5.300.0100.06017.98
5.5.290.0130.07317.99
5.5.280.0130.08020.99
5.5.270.0070.08320.87
5.5.260.0130.07720.87
5.5.250.0070.08320.62
5.5.240.0030.06720.24
5.4.450.0270.05719.63
5.4.440.0200.06719.70
5.4.430.0200.06319.58
5.4.420.0200.06019.60
5.4.410.0130.07719.18
5.4.400.0230.05019.29
5.4.390.0700.06719.01
5.4.380.0670.06719.15
5.4.370.0700.05019.22
5.4.360.0700.05019.26
5.4.350.0570.06019.30
5.4.340.0700.06319.15
5.4.320.0730.05018.99
5.4.310.0600.06318.84
5.4.300.0400.06719.28
5.4.290.0270.05318.87
5.4.280.0270.05319.22
5.4.270.0300.05718.83
5.4.260.0030.06019.15
5.4.250.0100.06319.25
5.4.240.0300.05719.25
5.4.230.0230.08019.29
5.4.220.0230.07019.14
5.4.210.0230.07019.05
5.4.200.0300.06319.25
5.4.190.0170.06019.05
5.4.180.0100.06019.29
5.4.170.0170.05719.14
5.4.160.0030.06319.22
5.4.150.0500.05319.26
5.4.140.0170.05716.40
5.4.130.0200.05716.46
5.4.120.0130.05316.48
5.4.110.0300.05016.67
5.4.100.0230.05016.33
5.4.90.0200.05316.44
5.4.80.0130.05316.23
5.4.70.0200.04716.55
5.4.60.0530.06016.43
5.4.50.0600.05016.26
5.4.40.0670.06316.39
5.4.30.0830.04316.55
5.4.20.0670.06016.25
5.4.10.0330.06016.59
5.4.00.0270.06315.76

preferences:
51.88 ms | 401 KiB | 5 Q