3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen() { $i = (yield 1); var_dump($i); } $gen = gen(); var_dump($gen->current(), $gen->send('abc'));

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.00716.78
8.3.60.0070.00716.49
8.3.50.0070.01221.30
8.3.40.0140.00018.59
8.3.30.0070.00718.54
8.3.20.0040.00420.12
8.3.10.0030.00523.54
8.3.00.0070.00317.68
8.2.180.0110.00416.38
8.2.170.0100.00722.96
8.2.160.0070.00720.30
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0100.00017.63
8.2.110.0030.00722.11
8.2.100.0120.00017.71
8.2.90.0040.00419.25
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0040.00417.96
8.2.20.0020.00517.58
8.2.10.0000.00718.02
8.2.00.0040.00417.93
8.1.280.0070.00725.92
8.1.270.0050.00320.25
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00021.30
8.1.230.0110.00019.00
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00917.25
8.1.190.0000.00817.13
8.1.180.0000.00918.10
8.1.170.0000.00718.50
8.1.160.0070.00018.93
8.1.150.0000.00818.94
8.1.140.0080.00017.38
8.1.130.0000.00717.60
8.1.120.0030.00517.46
8.1.110.0000.00817.43
8.1.100.0040.00417.37
8.1.90.0040.00417.46
8.1.80.0050.00317.33
8.1.70.0030.00317.43
8.1.60.0040.00417.46
8.1.50.0040.00417.52
8.1.40.0000.00817.42
8.1.30.0060.00317.54
8.1.20.0000.00817.57
8.1.10.0020.00517.38
8.1.00.0070.00017.32
8.0.300.0070.00018.77
8.0.290.0030.00716.58
8.0.280.0000.00818.36
8.0.270.0040.00417.16
8.0.260.0000.00617.11
8.0.250.0050.00216.95
8.0.240.0030.00317.01
8.0.230.0030.00616.95
8.0.220.0030.00316.80
8.0.210.0040.00416.84
8.0.200.0020.00516.85
8.0.190.0110.00016.99
8.0.180.0080.00016.86
8.0.170.0030.00516.92
8.0.160.0030.00316.90
8.0.150.0030.00316.81
8.0.140.0050.00316.81
8.0.130.0030.00313.27
8.0.120.0000.00816.70
8.0.110.0030.00516.86
8.0.100.0040.00416.91
8.0.90.0000.00716.77
8.0.80.0080.00816.85
8.0.70.0000.00816.76
8.0.60.0040.00416.91
8.0.50.0040.00416.85
8.0.30.0100.01016.97
8.0.20.0150.01017.40
8.0.10.0000.00716.84
8.0.00.0120.00516.75
7.4.330.0050.00015.16
7.4.320.0030.00316.49
7.4.300.0060.00016.59
7.4.290.0000.00716.57
7.4.280.0050.00216.57
7.4.270.0040.00416.52
7.4.260.0030.00316.41
7.4.250.0000.00816.44
7.4.240.0000.00716.50
7.4.230.0000.00716.47
7.4.220.0090.00916.59
7.4.210.0040.01016.61
7.4.200.0030.00316.66
7.4.160.0080.00816.28
7.4.150.0110.00617.40
7.4.140.0100.01017.86
7.4.130.0090.01316.58
7.4.120.0090.01116.55
7.4.110.0090.01216.67
7.4.100.0120.00916.53
7.4.90.0060.01116.32
7.4.80.0120.00619.39
7.4.70.0170.00416.29
7.4.60.0080.00816.38
7.4.50.0000.00816.63
7.4.40.0060.01116.39
7.4.30.0150.00916.25
7.4.00.0070.00714.90
7.3.330.0000.00713.25
7.3.320.0030.00313.25
7.3.310.0030.00316.12
7.3.300.0070.00016.10
7.3.290.0070.01016.25
7.3.280.0070.00916.19
7.3.270.0070.01017.40
7.3.260.0060.01516.49
7.3.250.0120.00416.41
7.3.240.0090.01216.46
7.3.230.0180.00016.39
7.3.210.0060.01316.39
7.3.200.0120.00416.52
7.3.190.0070.01016.36
7.3.180.0100.01316.36
7.3.170.0110.00416.29
7.3.160.0060.01016.27
7.3.120.0030.01315.01
7.3.110.0040.01414.61
7.3.100.0080.00814.59
7.3.90.0040.01114.93
7.3.80.0040.00714.68
7.3.70.0070.00714.79
7.3.60.0040.01214.69
7.3.50.0070.00714.66
7.3.40.0060.00814.87
7.3.30.0040.01114.91
7.3.20.0070.00316.63
7.3.10.0090.00916.74
7.3.00.0030.01316.68
7.2.330.0120.00616.69
7.2.320.0060.01616.73
7.2.310.0040.01616.68
7.2.300.0130.00316.39
7.2.290.0100.01016.85
7.2.240.0060.01114.75
7.2.230.0080.00815.07
7.2.220.0070.00714.75
7.2.210.0130.00015.00
7.2.200.0120.00614.84
7.2.190.0150.00315.20
7.2.180.0070.00715.15
7.2.170.0100.00314.80
7.2.160.0100.00615.11
7.2.150.0090.00617.02
7.2.140.0060.00916.89
7.2.130.0120.00316.75
7.2.120.0110.00316.96
7.2.110.0070.01016.71
7.2.100.0000.01416.56
7.2.90.0090.00416.74
7.2.80.0000.01316.57
7.2.70.0100.00716.76
7.2.60.0050.00916.70
7.2.50.0080.00816.59
7.2.40.0060.00917.09
7.2.30.0120.00317.10
7.2.20.0060.00316.63
7.2.10.0070.00716.93
7.2.00.0030.01016.92
7.1.330.0070.01015.64
7.1.320.0030.01415.72
7.1.310.0070.00715.64
7.1.300.0100.00315.87
7.1.290.0090.00615.58
7.1.280.0070.00715.83
7.1.270.0040.01115.60
7.1.260.0060.00615.82
7.1.250.0080.00815.56
7.1.200.0000.01415.66
7.1.100.0080.00318.43
7.1.70.0070.00317.16
7.1.60.0140.01119.13
7.1.50.0090.01516.88
7.1.00.0070.07322.27
7.0.200.0000.01216.77
7.0.60.0130.08019.80
7.0.50.0070.04717.87
7.0.40.0070.08320.02
7.0.30.0470.07020.23
7.0.20.0230.06720.30
7.0.10.0030.06720.09
7.0.00.0130.07320.20
5.6.280.0070.06021.11
5.6.210.0030.07020.57
5.6.200.0070.07318.28
5.6.190.0030.06020.52
5.6.180.0400.07020.34
5.6.170.0300.04320.58
5.6.160.0070.08320.71
5.6.150.0170.08018.12
5.6.140.0030.08718.28
5.6.130.0000.04318.32
5.6.120.0100.05721.15
5.6.110.0030.04020.90
5.6.100.0130.07321.00
5.6.90.0070.08321.00
5.6.80.0030.05320.45
5.5.350.0130.04720.38
5.5.340.0030.04018.05
5.5.330.0070.08020.41
5.5.320.1670.07020.35
5.5.310.0270.06720.41
5.5.300.0100.07718.05
5.5.290.0070.07717.95
5.5.280.0000.04320.77
5.5.270.0000.05720.83
5.5.260.0100.06720.88
5.5.250.0030.04720.69
5.5.240.0070.06020.16
5.4.450.0170.04319.48
5.4.440.0270.03019.32
5.4.430.0330.06719.40
5.4.420.0370.05019.18
5.4.410.0230.05019.05
5.4.400.0300.07719.22
5.4.390.0200.08018.92
5.4.380.0270.07718.86
5.4.370.0270.07319.09
5.4.360.0200.05718.85
5.4.350.0470.05319.32
5.4.340.0300.07018.95
5.4.320.0370.06319.14
5.4.310.0300.07019.06
5.4.300.0270.07718.96
5.4.290.0270.07319.22
5.4.280.0270.07318.87
5.4.270.0270.08019.06
5.4.260.0370.04319.16
5.4.250.0270.03719.13
5.4.240.0270.07019.15
5.4.230.0330.05019.07
5.4.220.0270.04018.99
5.4.210.0300.07319.22
5.4.200.0330.06718.81
5.4.190.0270.06319.16
5.4.180.0300.07019.07
5.4.170.0300.04719.05
5.4.160.0300.04719.06
5.4.150.0400.06019.13
5.4.140.0270.04716.36
5.4.130.0300.07016.30
5.4.120.0270.07016.29
5.4.110.0270.04716.52
5.4.100.0370.06316.37
5.4.90.0300.03716.28
5.4.80.0300.04016.34

preferences:
67.08 ms | 401 KiB | 5 Q