3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_ints($n){ $range = range(0,$n-1); for ($i=0, $max = count($range); $i < $max; $i++) { $i = (yield $i); yield $i; } } $gen = generate_ints(3); echo $gen->current(); $gen->send(99); // injecting a value; echo $gen->current(); $gen->next(); echo $gen->current();

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.0120.00918.55
8.3.50.0220.01221.08
8.3.40.0100.00718.50
8.3.30.0110.00420.35
8.3.20.0080.00020.44
8.3.10.0040.00420.88
8.3.00.0000.00723.61
8.2.180.0110.01116.50
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00720.97
8.2.110.0030.00720.52
8.2.100.0070.00417.72
8.2.90.0030.00717.97
8.2.80.0030.00619.32
8.2.70.0000.00817.38
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0030.00620.00
8.2.30.0040.00419.41
8.2.20.0040.00417.71
8.2.10.0050.00317.77
8.2.00.0060.00317.87
8.1.280.0120.00425.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00322.45
8.1.230.0060.00620.97
8.1.220.0030.00517.74
8.1.210.0060.00318.84
8.1.200.0000.01017.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0050.00318.95
8.1.150.0030.00518.71
8.1.140.0000.00717.38
8.1.130.0030.00517.71
8.1.120.0050.00317.38
8.1.110.0000.00817.52
8.1.100.0040.00417.40
8.1.90.0080.00017.46
8.1.80.0070.00017.48
8.1.70.0030.00317.44
8.1.60.0000.00717.61
8.1.50.0030.00517.48
8.1.40.0000.00817.50
8.1.30.0000.00717.52
8.1.20.0080.00017.68
8.1.10.0040.00417.54
8.1.00.0000.00717.30
8.0.300.0040.00419.98
8.0.290.0070.00016.63
8.0.280.0050.00218.47
8.0.270.0080.00017.26
8.0.260.0000.00816.81
8.0.250.0040.00417.01
8.0.240.0040.00416.98
8.0.230.0000.00716.88
8.0.220.0030.00316.95
8.0.210.0000.00816.91
8.0.200.0000.00616.85
8.0.190.0030.00317.04
8.0.180.0040.00416.95
8.0.170.0000.00716.88
8.0.160.0070.00016.94
8.0.150.0000.00716.84
8.0.140.0030.00516.77
8.0.130.0000.00613.35
8.0.120.0000.00716.77
8.0.110.0000.00816.90
8.0.100.0070.00016.77
8.0.90.0050.00216.73
8.0.80.0040.01116.91
8.0.70.0050.00316.87
8.0.60.0040.00416.94
8.0.50.0000.00716.75
8.0.30.0100.00917.10
8.0.20.0140.00617.40
8.0.10.0070.00017.04
8.0.00.0080.01016.80
7.4.330.0000.00414.89
7.4.320.0030.00616.64
7.4.300.0030.00316.63
7.4.290.0040.00416.45
7.4.280.0000.00716.55
7.4.270.0040.00416.47
7.4.260.0000.00813.38
7.4.250.0040.00416.46
7.4.240.0030.00316.67
7.4.230.0030.00316.73
7.4.220.0070.01116.50
7.4.210.0090.00716.56
7.4.200.0030.00316.63
7.4.190.0040.00416.47
7.4.160.0100.00616.52
7.4.150.0140.00417.40
7.4.140.0130.00417.86
7.4.130.0120.00816.54
7.4.120.0120.00716.57
7.4.110.0110.00816.47
7.4.100.0120.00616.48
7.4.90.0120.00616.45
7.4.80.0090.01019.39
7.4.70.0100.01316.50
7.4.60.0130.00316.63
7.4.50.0040.00416.36
7.4.40.0070.01022.77
7.4.30.0060.01216.45
7.4.00.0050.01214.93
7.3.330.0000.00513.35
7.3.320.0000.00513.45
7.3.310.0030.00316.27
7.3.300.0030.00316.25
7.3.290.0000.01616.30
7.3.280.0080.01116.39
7.3.270.0070.01517.40
7.3.260.0120.00818.24
7.3.250.0180.01416.61
7.3.240.0100.01016.35
7.3.230.0090.00616.44
7.3.210.0040.01516.46
7.3.200.0070.01119.39
7.3.190.0090.01216.65
7.3.180.0090.00616.41
7.3.170.0120.00916.45
7.3.160.0190.00516.52
7.3.120.0050.00914.91
7.3.110.0060.01314.70
7.3.100.0040.01214.97
7.3.90.0030.01214.74
7.3.80.0030.00914.64
7.3.70.0090.00614.84
7.3.60.0060.00914.56
7.3.50.0100.00014.95
7.3.40.0000.00814.90
7.3.30.0060.00314.77
7.3.20.0000.01516.42
7.3.10.0060.00516.73
7.3.00.0030.01016.43
7.2.330.0030.01416.79
7.2.320.0120.00916.59
7.2.310.0090.01516.84
7.2.300.0060.01116.62
7.2.290.0100.00716.71
7.2.250.0030.01715.19
7.2.240.0060.01314.84
7.2.230.0030.00614.98
7.2.220.0120.00014.89
7.2.210.0060.00914.96
7.2.200.0040.00815.20
7.2.190.0000.01614.90
7.2.180.0150.00315.09
7.2.170.0000.01414.84
7.2.130.0100.00316.77
7.2.120.0090.00016.99
7.2.110.0090.00916.90
7.2.100.0030.01216.72
7.2.90.0030.00616.65
7.2.80.0060.00616.76
7.2.70.0060.00917.04
7.2.60.0040.01116.80
7.2.50.0000.01416.75
7.2.40.0120.00316.77
7.2.30.0080.00816.97
7.2.20.0070.00416.96
7.2.10.0070.01316.74
7.2.00.0020.00918.10
7.1.330.0030.01015.75
7.1.320.0060.00915.73
7.1.310.0040.00716.07
7.1.300.0030.01315.73
7.1.290.0030.00815.86
7.1.280.0060.00915.75
7.1.270.0070.00715.68
7.1.260.0000.01215.75
7.1.250.0100.00315.96
7.1.100.0030.00918.23
7.1.70.0120.00417.09
7.1.60.0180.00619.17
7.1.50.0100.01316.76
7.1.00.0000.03722.37
7.0.200.0050.00216.52
7.0.140.0070.06322.15
7.0.60.0070.08319.92
7.0.50.0030.05317.86
7.0.40.0130.06720.30
7.0.30.0230.07720.17
7.0.20.0130.04320.11
7.0.10.0070.08020.12
7.0.00.0030.07320.06
5.6.280.0100.06720.91
5.6.210.0030.08720.61
5.6.200.0070.05318.29
5.6.190.0100.08020.45
5.6.180.0300.05020.52
5.6.170.0270.08020.54
5.6.160.0030.04020.46
5.6.150.0070.08718.18
5.6.140.0030.03718.18
5.6.130.0030.07318.18
5.6.120.0130.07721.05
5.6.110.0070.07721.15
5.6.100.0030.04321.03
5.6.90.0030.04021.09
5.6.80.0200.07320.36
5.5.350.3070.03320.39
5.5.340.0070.08017.95
5.5.330.0100.03320.27
5.5.320.0170.08720.38
5.5.310.0130.04320.25
5.5.300.0030.07317.98
5.5.290.0100.07018.08
5.5.280.0100.04020.98
5.5.270.0230.07020.97
5.5.260.0000.05020.79
5.5.250.0070.04320.71
5.5.240.0100.07020.37
5.4.450.0500.06319.57
5.4.440.0370.05019.27
5.4.430.0400.03319.43
5.4.420.0430.05719.32
5.4.410.0400.05719.26
5.4.400.0400.04318.95
5.4.390.0370.03719.20
5.4.380.0300.03719.17
5.4.370.0400.03319.00
5.4.360.0330.03719.21
5.4.350.0330.04019.12
5.4.340.0270.04319.21
5.4.320.0270.04019.21
5.4.310.0270.04018.97
5.4.300.0330.03318.88
5.4.290.0300.04319.08
5.4.280.0230.04319.09
5.4.270.0370.03019.09
5.4.260.0330.03319.22
5.4.250.0300.03719.05
5.4.240.0330.03319.19
5.4.230.0370.03718.98
5.4.220.0330.04019.23
5.4.210.0370.04019.08
5.4.200.0370.03019.21
5.4.190.0300.03719.02
5.4.180.0270.04019.14
5.4.170.0330.03719.15
5.4.160.0330.03319.21
5.4.150.0300.03719.12
5.4.140.0270.03716.36
5.4.130.0370.03316.51
5.4.120.0270.03716.51
5.4.110.0330.03316.37
5.4.100.0270.03716.37
5.4.90.0400.03716.56
5.4.80.0330.03016.50
5.4.70.0370.02716.18
5.4.60.0330.03316.56
5.4.50.0570.03316.53
5.4.40.0300.03316.54
5.4.30.0230.04016.51
5.4.20.0370.03716.16
5.4.10.0300.04016.53
5.4.00.0270.04015.92
5.3.290.0370.03014.69
5.3.280.0300.03714.51
5.3.270.0300.03714.58
5.3.260.0300.03714.67
5.3.250.0300.03714.53
5.3.240.0300.03314.70
5.3.230.0270.05014.61
5.3.220.0330.05014.56
5.3.210.0300.04714.59
5.3.200.0300.03314.64
5.3.190.0370.03014.54
5.3.180.0270.06014.68
5.3.170.0370.03014.54
5.3.160.0230.04014.48
5.3.150.0270.03714.66
5.3.140.0330.03014.64
5.3.130.0400.03714.46
5.3.120.0370.03314.50
5.3.110.0270.04014.53
5.3.100.0300.04013.95
5.3.90.0370.04014.00
5.3.80.0300.03314.04
5.3.70.0270.03714.07
5.3.60.0270.03713.92
5.3.50.0300.04314.04
5.3.40.0370.04013.87
5.3.30.0470.05713.82
5.3.20.0370.06313.84
5.3.10.0400.05713.59
5.3.00.0270.04013.69
5.2.170.0230.03012.29
5.2.160.0300.05312.29
5.2.150.0300.03312.29
5.2.140.0300.05712.29
5.2.130.0330.03012.29
5.2.120.0300.03312.29
5.2.110.0370.05012.29
5.2.100.0270.02712.29
5.2.90.0270.05712.29
5.2.80.0370.02712.29
5.2.70.0230.03012.29
5.2.60.0330.04312.29
5.2.50.0370.02312.29
5.2.40.0300.05012.29
5.2.30.0300.05312.29
5.2.20.0270.04012.29
5.2.10.0230.03712.29
5.2.00.0200.03312.29
5.1.60.0230.03312.29
5.1.50.0330.04712.29
5.1.40.0300.04312.29
5.1.30.0270.05012.29
5.1.20.0230.04312.29
5.1.10.0200.05312.29
5.1.00.0200.03012.29
5.0.50.0230.03712.29
5.0.40.0170.04012.29
5.0.30.0130.03312.29
5.0.20.0130.02312.29
5.0.10.0130.02712.29
5.0.00.0270.04712.29
4.4.90.0200.01012.29
4.4.80.0130.01712.29
4.4.70.0170.03712.29
4.4.60.0170.02012.29
4.4.50.0200.02712.29
4.4.40.0100.03712.29
4.4.30.0100.02012.29
4.4.20.0200.03012.29
4.4.10.0170.01712.29
4.4.00.0170.06012.29
4.3.110.0130.03712.29
4.3.100.0170.01712.29
4.3.90.0130.03312.29
4.3.80.0170.03712.29
4.3.70.0130.02312.29
4.3.60.0170.03012.29
4.3.50.0130.01712.29
4.3.40.0130.03012.29
4.3.30.0070.03012.29
4.3.20.0070.02712.29
4.3.10.0070.02012.29
4.3.00.0100.01712.29

preferences:
55.53 ms | 401 KiB | 5 Q