3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = function ($bytes) { for ($i = 0; $i < $bytes; $i++) { yield '.'; } }; var_dump( $generator(10) );

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.0070.01416.50
8.3.50.0140.00621.21
8.3.40.0150.00018.70
8.3.30.0080.00818.75
8.3.20.0070.00020.34
8.3.10.0080.00023.48
8.3.00.0040.00423.56
8.2.180.0110.00716.50
8.2.170.0120.00322.96
8.2.160.0090.00619.18
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00020.77
8.2.120.0040.00426.35
8.2.110.0040.00419.39
8.2.100.0070.00717.93
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0040.00417.80
8.2.50.0030.00618.09
8.2.40.0040.00420.55
8.2.30.0000.00719.42
8.2.20.0000.00717.50
8.2.10.0040.00417.99
8.2.00.0040.00418.14
8.1.280.0090.00925.92
8.1.270.0080.01222.19
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.53
8.1.230.0070.00317.64
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0000.00818.55
8.1.160.0040.00420.77
8.1.150.0070.00018.93
8.1.140.0030.00519.48
8.1.130.0070.00017.69
8.1.120.0080.00017.41
8.1.110.0030.00317.41
8.1.100.0120.00017.39
8.1.90.0050.00217.49
8.1.80.0070.00017.36
8.1.70.0000.00717.34
8.1.60.0030.00717.62
8.1.50.0030.00517.41
8.1.40.0040.00417.48
8.1.30.0050.00317.67
8.1.20.0050.00317.61
8.1.10.0040.00417.54
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0070.00018.29
8.0.270.0030.00317.10
8.0.260.0070.00017.24
8.0.250.0070.00016.91
8.0.240.0040.00416.91
8.0.230.0030.00316.91
8.0.220.0030.00716.80
8.0.210.0030.00316.87
8.0.200.0030.00316.84
8.0.190.0070.00716.85
8.0.180.0040.00416.78
8.0.170.0050.00216.77
8.0.160.0000.00716.93
8.0.150.0030.00316.87
8.0.140.0040.00416.84
8.0.130.0000.00613.38
8.0.120.0040.00416.83
8.0.110.0040.00416.89
8.0.100.0070.00016.76
8.0.90.0000.00816.95
8.0.80.0030.01316.79
8.0.70.0000.00816.88
8.0.60.0000.00816.98
8.0.50.0000.00816.77
8.0.30.0090.01217.05
8.0.20.0120.00717.40
8.0.10.0000.00716.93
8.0.00.0090.00916.83
7.4.330.0060.00016.67
7.4.320.0000.00616.50
7.4.300.0050.00216.63
7.4.290.0040.00416.61
7.4.280.0040.00416.61
7.4.270.0040.00416.55
7.4.260.0000.00716.45
7.4.250.0000.00716.58
7.4.240.0050.00216.51
7.4.230.0000.00716.53
7.4.220.0070.01416.54
7.4.210.0120.00916.63
7.4.200.0040.00416.62
7.4.160.0030.01216.64
7.4.150.0100.00717.40
7.4.140.0150.00417.86
7.4.130.0100.01016.51
7.4.120.0070.01116.48
7.4.110.0090.00916.38
7.4.100.0060.01216.60
7.4.90.0100.00716.35
7.4.80.0030.01319.39
7.4.70.0070.01016.68
7.4.60.0030.02016.59
7.4.50.0070.00716.59
7.4.40.0130.01316.44
7.4.30.0130.00316.41
7.4.00.0110.00414.89
7.3.330.0000.00513.18
7.3.320.0000.00513.10
7.3.310.0030.00316.20
7.3.300.0000.00616.25
7.3.290.0050.00916.21
7.3.280.0080.00816.28
7.3.270.0060.01617.40
7.3.260.0110.00616.48
7.3.250.0090.00916.35
7.3.240.0070.01016.43
7.3.230.0120.00616.39
7.3.210.0120.01216.37
7.3.200.0110.00619.39
7.3.190.0200.00316.16
7.3.180.0100.01016.21
7.3.170.0120.00916.39
7.3.160.0040.01116.47
7.2.330.0070.01016.53
7.2.320.0070.01416.64
7.2.310.0140.00316.57
7.2.300.0090.01316.57
7.2.290.0130.00316.55
7.2.60.0070.01016.57
7.2.00.0030.01419.35
7.1.200.0000.01315.66
7.1.100.0000.01117.82
7.1.70.0000.00716.69
7.1.60.0150.00819.40
7.1.50.0100.01316.38
7.1.00.0070.07022.54
7.0.200.0330.00014.45
7.0.60.0300.08319.89
7.0.50.0070.04317.88
7.0.40.0170.06720.24
7.0.30.0400.07020.25
7.0.20.0170.04020.33
7.0.10.0100.04320.24
7.0.00.0100.08020.07
5.6.280.0000.06720.78
5.6.210.0230.06720.77
5.6.200.0030.07018.24
5.6.190.0070.08320.50
5.6.180.0230.05720.57
5.6.170.0300.07020.55
5.6.160.0070.08020.47
5.6.150.0130.03318.21
5.6.140.0100.08018.11
5.6.130.0130.06718.14
5.6.120.0030.05321.14
5.6.110.0130.08020.89
5.6.100.0030.04721.13
5.6.90.0300.07020.88
5.6.80.0070.08020.53
5.5.350.0200.04320.50
5.5.340.0170.07317.96
5.5.330.0030.04320.21
5.5.320.0670.06020.24
5.5.310.0370.04020.23
5.5.300.0000.04018.03
5.5.290.0070.07317.99
5.5.280.0200.07020.88
5.5.270.0070.08020.96
5.5.260.0030.08720.86
5.5.250.0100.07320.70
5.5.240.0230.07020.27

preferences:
24.46 ms | 401 KiB | 5 Q