3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen_stuff($bar, $foo, $baz) { $bar[(yield $baz) + 3] = (yield $foo); var_dump($bar); yield 'done.'; } $cont = gen_stuff(array(), 8, 12); var_dump($cont->send(14)); var_dump($cont->send(87));

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.01018.56
8.3.50.0120.00721.98
8.3.40.0040.01418.57
8.3.30.0140.00019.21
8.3.20.0060.00320.33
8.3.10.0040.00420.47
8.3.00.0040.00417.79
8.2.180.0030.01016.71
8.2.170.0150.00022.96
8.2.160.0070.00720.53
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00722.25
8.2.110.0080.00020.21
8.2.100.0040.00718.09
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0070.00018.16
8.2.30.0070.00019.28
8.2.20.0040.00417.70
8.2.10.0050.00317.94
8.2.00.0040.00417.62
8.1.280.0110.00725.92
8.1.270.0030.00622.00
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0030.00918.99
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00817.25
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0020.00918.65
8.1.160.0080.00021.88
8.1.150.0000.00718.76
8.1.140.0000.00717.39
8.1.130.0080.00017.83
8.1.120.0040.00417.33
8.1.110.0070.00017.45
8.1.100.0040.00417.41
8.1.90.0040.00417.43
8.1.80.0030.00317.41
8.1.70.0040.00417.33
8.1.60.0000.00817.52
8.1.50.0000.00817.53
8.1.40.0040.00417.43
8.1.30.0000.00817.64
8.1.20.0050.00317.71
8.1.10.0060.00317.57
8.1.00.0050.00317.55
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.45
8.0.270.0000.00817.27
8.0.260.0030.00317.11
8.0.250.0050.00316.82
8.0.240.0030.00316.79
8.0.230.0040.00416.90
8.0.220.0040.00416.88
8.0.210.0060.00016.90
8.0.200.0030.00316.86
8.0.190.0000.00816.77
8.0.180.0040.00416.84
8.0.170.0000.00716.76
8.0.160.0030.00416.79
8.0.150.0040.00416.82
8.0.140.0080.00016.79
8.0.130.0000.00613.26
8.0.120.0050.00316.84
8.0.110.0040.00416.84
8.0.100.0070.00016.84
8.0.90.0040.00416.71
8.0.80.0070.01416.82
8.0.70.0050.00316.85
8.0.60.0050.00316.84
8.0.50.0040.00416.74
8.0.30.0120.01017.04
8.0.20.0130.00817.40
8.0.10.0040.00416.99
8.0.00.0060.01416.81
7.4.330.0000.00515.09
7.4.320.0000.00616.30
7.4.300.0070.00016.59
7.4.290.0070.00016.53
7.4.280.0000.00716.54
7.4.270.0030.00316.43
7.4.260.0070.00016.48
7.4.250.0040.00416.34
7.4.240.0040.00316.54
7.4.230.0000.00716.63
7.4.220.0060.01316.54
7.4.210.0030.01616.47
7.4.200.0000.00816.30
7.4.160.0070.01116.53
7.4.150.0140.00317.40
7.4.140.0150.00317.86
7.4.130.0140.00316.46
7.4.120.0090.00816.44
7.4.110.0120.00916.34
7.4.100.0130.00416.53
7.4.90.0120.00616.67
7.4.80.0140.00916.41
7.4.70.0100.00616.42
7.4.60.0100.00716.49
7.4.50.0000.00516.46
7.4.40.0060.01016.63
7.4.30.0120.00316.50
7.4.00.0070.00714.70
7.3.330.0000.00513.17
7.3.320.0000.00513.30
7.3.310.0060.00316.08
7.3.300.0030.00316.32
7.3.290.0030.01316.21
7.3.280.0080.00916.31
7.3.270.0100.00717.40
7.3.260.0090.00916.30
7.3.250.0140.00516.41
7.3.240.0190.00316.29
7.3.230.0140.00316.39
7.3.210.0060.00916.27
7.3.200.0100.00719.39
7.3.190.0100.00716.40
7.3.180.0070.01016.43
7.3.170.0130.00316.48
7.3.160.0040.01216.43
7.2.330.0130.00716.67
7.2.320.0000.01816.70
7.2.310.0100.01016.73
7.2.300.0080.00816.73
7.2.290.0080.00816.69
7.2.60.0150.00416.89
7.2.50.0060.00616.95
7.1.200.0040.00815.81
7.1.100.0830.01516.27
7.1.70.0040.00416.85
7.1.60.0130.01019.32
7.1.50.0100.01016.62
7.1.00.0100.07022.28
7.0.200.0000.01116.84
7.0.140.0100.06722.06
7.0.60.0100.04019.89
7.0.50.0100.08017.92
7.0.40.0100.08320.25
7.0.30.0430.07720.09
7.0.20.0270.05720.30
7.0.10.0070.08720.21
7.0.00.0030.05320.11
5.6.280.0000.07721.10
5.6.210.0130.06020.65
5.6.200.0070.08018.20
5.6.190.0070.07720.46
5.6.180.0370.04020.50
5.6.170.0300.07320.48
5.6.160.0100.04020.39
5.6.150.0100.07018.28
5.6.140.0000.04718.14
5.6.130.0030.04318.10
5.6.120.0100.06320.76
5.6.110.0100.04320.98
5.6.100.0200.07321.01
5.6.90.0070.07021.04
5.6.80.0070.05020.52
5.5.350.0170.07020.39
5.5.340.0030.06718.07
5.5.330.0000.04320.44
5.5.320.0370.05020.28
5.5.310.0130.04720.37
5.5.300.0070.03717.96
5.5.290.0070.04018.02
5.5.280.0130.03720.94
5.5.270.0030.04320.89
5.5.260.0030.08720.88
5.5.250.0330.04320.78
5.5.240.0100.06020.26
5.4.450.0170.05019.31
5.4.440.0700.06319.34
5.4.430.0670.05719.44
5.4.420.0800.06019.55
5.4.410.0870.05319.49
5.4.400.0670.05019.06
5.4.390.0070.05719.11
5.4.380.0230.07018.51
5.4.370.0470.05318.59
5.4.360.0170.06318.50
5.4.350.0230.05718.84
5.4.340.0470.05018.52
5.4.320.0070.03912.52
5.4.310.0110.04312.52
5.4.300.0070.03812.52
5.4.290.0050.04412.51
5.4.280.0080.04012.41
5.4.270.0120.03612.41
5.4.260.0050.04212.41
5.4.250.0100.03312.41
5.4.240.0090.03912.41
5.4.230.0070.05112.40
5.4.220.0060.03912.40
5.4.210.0090.04212.40
5.4.200.0080.04312.40
5.4.190.0060.03812.39
5.4.180.0050.04512.39
5.4.170.0080.03712.41
5.4.160.0020.03912.40
5.4.150.0080.03912.40
5.4.140.0060.04012.09
5.4.130.0070.03912.07
5.4.120.0050.04012.04
5.4.110.0050.03712.03
5.4.100.0070.04212.03
5.4.90.0070.04012.03
5.4.80.0070.04012.04
5.4.70.0060.04212.02
5.4.60.0110.03412.03
5.4.50.0060.04412.03
5.4.40.0060.04112.02
5.4.30.0080.03912.01
5.4.20.0060.04112.00
5.4.10.0090.03412.02
5.4.00.0080.03911.50
5.3.290.0090.04712.80
5.3.280.0080.04012.71
5.3.270.0120.04212.73
5.3.260.0090.03912.72
5.3.250.0080.03612.72
5.3.240.0060.05112.71
5.3.230.0070.04312.71
5.3.220.0070.04112.68
5.3.210.0030.04112.68
5.3.200.0040.04712.68
5.3.190.0100.03712.68
5.3.180.0060.04512.67
5.3.170.0060.04012.67
5.3.160.0080.03712.67
5.3.150.0060.04312.67
5.3.140.0140.04212.66
5.3.130.0120.03912.66
5.3.120.0070.04112.66
5.3.110.0090.05112.66
5.3.100.0070.03612.13
5.3.90.0070.03912.11
5.3.80.0080.04212.09
5.3.70.0080.03812.09
5.3.60.0070.03712.09
5.3.50.0070.03912.02
5.3.40.0090.04012.02
5.3.30.0060.04011.98
5.3.20.0090.04211.77
5.3.10.0070.03611.74
5.3.00.0040.03911.71
5.2.170.0060.0339.21
5.2.160.0090.0319.21
5.2.150.0050.0359.22
5.2.140.0070.0349.21
5.2.130.0110.0319.17
5.2.120.0070.0389.17
5.2.110.0070.0349.18
5.2.100.0060.0319.18
5.2.90.0060.0339.18
5.2.80.0060.0339.18
5.2.70.0050.0329.18
5.2.60.0080.0279.12
5.2.50.0050.0309.09
5.2.40.0030.0319.07
5.2.30.0050.0309.05
5.2.20.0070.0299.04
5.2.10.0020.0318.95
5.2.00.0070.0288.80
5.1.60.0050.0238.09
5.1.50.0050.0268.08
5.1.40.0080.0318.06
5.1.30.0050.0378.43
5.1.20.0080.0298.43
5.1.10.0060.0338.16
5.1.00.0050.0388.16
5.0.50.0040.0206.64
5.0.40.0040.0206.50
5.0.30.0030.0366.31
5.0.20.0040.0216.29
5.0.10.0020.0256.26
5.0.00.0050.0366.26
4.4.90.0030.0174.78
4.4.80.0040.0154.75
4.4.70.0030.0164.76
4.4.60.0030.0194.75
4.4.50.0040.0194.77
4.4.40.0040.0294.71
4.4.30.0030.0194.76
4.4.20.0030.0184.84
4.4.10.0030.0224.85
4.4.00.0040.0284.76
4.3.110.0030.0204.67
4.3.100.0000.0174.67
4.3.90.0030.0164.63
4.3.80.0040.0254.59
4.3.70.0030.0184.63
4.3.60.0030.0184.63
4.3.50.0030.0184.63
4.3.40.0030.0264.54
4.3.30.0010.0243.30
4.3.20.0020.0173.27
4.3.10.0030.0173.24
4.3.00.0070.0177.56

preferences:
43.76 ms | 401 KiB | 5 Q