3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function doStuff() { $last = 0; $current = 1; yield 1; while (true) { $current = $last + $current; $last = $current - $last; yield $current; } } for($i=0;$i<10;$i++){ echo doStuff(); }

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.0130.00718.43
8.3.50.0090.01016.57
8.3.40.0120.00318.84
8.3.30.0140.00018.75
8.3.20.0000.00918.79
8.3.10.0030.00618.65
8.3.00.0040.00419.25
8.2.180.0110.00418.66
8.2.170.0090.00922.96
8.2.160.0120.00321.14
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0100.00326.16
8.2.120.0040.00420.84
8.2.110.0080.00319.23
8.2.100.0030.00918.14
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0040.00417.91
8.2.60.0040.00417.80
8.2.50.0080.00318.07
8.2.40.0050.00319.77
8.2.30.0000.00819.50
8.2.20.0000.00817.60
8.2.10.0020.00517.62
8.2.00.0040.00417.68
8.1.280.0100.01025.92
8.1.270.0060.00324.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00622.19
8.1.230.0060.00620.88
8.1.220.0080.00017.78
8.1.210.0070.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00517.36
8.1.180.0030.00518.10
8.1.170.0040.00418.53
8.1.160.0040.00418.74
8.1.150.0030.00418.54
8.1.140.0040.00417.30
8.1.130.0030.00317.86
8.1.120.0000.00717.45
8.1.110.0070.00017.35
8.1.100.0080.00017.33
8.1.90.0000.00717.25
8.1.80.0070.00017.30
8.1.70.0000.00717.36
8.1.60.0050.00217.57
8.1.50.0000.00917.44
8.1.40.0040.00417.50
8.1.30.0030.00517.62
8.1.20.0040.00417.68
8.1.10.0040.00417.49
8.1.00.0000.00717.51
8.0.300.0030.00521.53
8.0.290.0000.00816.75
8.0.280.0000.00718.37
8.0.270.0030.00317.00
8.0.260.0000.00616.89
8.0.250.0000.00817.00
8.0.240.0040.00316.99
8.0.230.0040.00416.95
8.0.220.0000.00716.79
8.0.210.0050.00316.78
8.0.200.0060.00016.95
8.0.190.0000.00716.87
8.0.180.0030.00516.82
8.0.170.0070.00016.81
8.0.160.0000.00816.98
8.0.150.0040.00416.85
8.0.140.0030.00616.83
8.0.130.0000.00513.32
8.0.120.0030.00516.74
8.0.110.0040.00416.85
8.0.100.0030.00516.76
8.0.90.0040.00416.80
8.0.80.0090.00616.78
8.0.70.0020.00516.71
8.0.60.0000.00716.93
8.0.50.0000.00716.72
8.0.30.0090.00916.85
8.0.20.0130.01217.00
8.0.10.0050.00317.05
8.0.00.0140.00816.73
7.4.330.0000.00512.99
7.4.320.0070.00016.37
7.4.300.0040.00416.52
7.4.290.0000.01016.52
7.4.280.0040.00416.50
7.4.270.0000.00716.50
7.4.260.0060.00013.33
7.4.250.0060.00316.57
7.4.240.0030.00316.51
7.4.230.0030.00316.63
7.4.220.0120.00616.59
7.4.210.0080.00816.56
7.4.200.0000.00716.43
7.4.190.0000.00816.38
7.4.160.0060.00916.25
7.4.150.0030.01316.66
7.4.140.0140.00916.47
7.4.130.0060.01216.65
7.4.120.0090.01116.54
7.4.110.0110.00716.50
7.4.100.0170.00316.52
7.4.90.0000.01816.54
7.4.80.0060.01219.39
7.4.70.0100.00716.50
7.4.60.0100.00716.41
7.4.50.0060.00616.51
7.4.40.0070.00916.27
7.4.30.0090.00616.32
7.4.00.0070.01014.84
7.3.330.0030.00313.18
7.3.320.0050.00013.35
7.3.310.0070.00016.39
7.3.300.0070.00016.40
7.3.290.0060.00916.28
7.3.280.0120.00516.33
7.3.270.0150.00616.72
7.3.260.0120.00316.64
7.3.250.0080.01016.44
7.3.240.0090.00916.52
7.3.230.0100.00716.57
7.3.210.0100.01016.46
7.3.200.0030.01416.51
7.3.190.0060.01016.57
7.3.180.0120.00916.35
7.3.170.0090.00916.38
7.3.160.0080.00816.44
7.3.120.0070.01014.88
7.3.10.0030.01116.62
7.3.00.0090.00516.69
7.2.330.0160.00616.25
7.2.320.0070.01016.65
7.2.310.0160.00616.54
7.2.300.0060.01116.75
7.2.290.0000.01616.22
7.2.130.0060.00716.74
7.2.120.0070.00916.85
7.2.110.0050.00916.79
7.2.100.0120.00216.64
7.2.90.0070.00816.91
7.2.80.0070.00716.78
7.2.70.0030.01016.96
7.2.60.0070.00816.89
7.2.50.0080.00716.82
7.2.40.0020.00916.78
7.2.30.0090.00516.89
7.2.20.0070.00716.72
7.2.10.0030.00716.61
7.2.00.0050.00817.41
7.1.250.0060.00815.60
7.1.240.0000.01315.57
7.1.230.0090.00315.68
7.1.220.0040.00415.77
7.1.210.0090.00315.52
7.1.200.0060.00715.67
7.1.190.0040.00815.34
7.1.180.0080.00415.75
7.1.170.0030.00615.69
7.1.160.0040.00815.74
7.1.150.0000.00915.34
7.1.140.0040.01115.47
7.1.130.0000.01315.70
7.1.120.0030.01015.48
7.1.110.0060.00315.58
7.1.100.0050.00516.96
7.1.90.0120.00315.57
7.1.80.0000.00815.80
7.1.70.0020.00916.22
7.1.60.0090.00917.54
7.1.50.0040.01316.20
7.1.40.0000.01515.72
7.1.30.0030.00615.58
7.1.20.0060.00315.85
7.1.10.0090.00015.82
7.1.00.0080.02118.93
7.0.330.0110.00415.13
7.0.320.0000.01515.23
7.0.310.0030.00614.96
7.0.300.0060.00615.42
7.0.290.0000.01515.45
7.0.280.0000.00815.27
7.0.270.0000.01315.34
7.0.260.0030.00615.30
7.0.250.0060.00815.36
7.0.240.0060.00915.41
7.0.230.0060.00615.30
7.0.220.0030.01015.33
7.0.210.0060.00615.36
7.0.200.0050.00615.92
7.0.190.0030.00715.33
7.0.180.0060.01015.45
7.0.170.0000.01415.45
7.0.160.0060.00915.41
7.0.150.0030.00715.40
7.0.140.0100.03518.55
7.0.130.0040.00715.49
7.0.120.0060.01818.69
7.0.110.0000.00715.29
7.0.100.0110.00315.49
7.0.90.0030.00615.30
7.0.80.0040.00715.36
7.0.70.0070.00715.32
7.0.60.0070.04517.63
7.0.50.0070.04416.61
7.0.40.0090.02316.80
7.0.30.0150.03316.75
7.0.20.0180.02516.70
7.0.10.0050.04616.84
7.0.00.0000.03916.64
5.6.380.0000.01313.97
5.6.370.0070.00714.48
5.6.360.0130.00014.44
5.6.350.0070.00414.07
5.6.340.0160.00014.24
5.6.330.0030.01013.82
5.6.320.0080.00014.43
5.6.310.0090.00314.42
5.6.300.0060.00614.64
5.6.290.0050.00814.32
5.6.280.0030.04017.70
5.6.270.0040.00414.50
5.6.260.0030.00914.32
5.6.250.0030.01414.40
5.6.240.0030.00914.07
5.6.230.0090.00314.48
5.6.220.0030.00714.25
5.6.210.0080.03217.47
5.6.200.0060.03016.33
5.6.190.0110.03817.32
5.6.180.1970.02617.37
5.6.170.0190.04017.39
5.6.160.0100.04517.54
5.6.150.0050.04516.21
5.6.140.0080.02016.27
5.6.130.0070.04716.25
5.6.120.0050.04717.69
5.6.110.0110.04117.90
5.6.100.0080.03717.76
5.6.90.0020.05317.64
5.6.80.0040.04917.40
5.6.70.2280.02217.23
5.6.60.0030.01013.94
5.6.50.0000.01313.88
5.6.40.0030.01214.16
5.6.30.0030.01314.53
5.6.20.0040.00714.15
5.6.10.0110.00314.26
5.6.00.0100.00014.24
5.5.380.0030.00711.18
5.5.370.0000.01011.31
5.5.360.0030.00311.10
5.5.350.0050.03715.75
5.5.340.0050.04214.61
5.5.330.0030.02515.93
5.5.320.0100.02415.52
5.5.310.0130.03915.80
5.5.300.0050.04314.57
5.5.290.0050.02214.49
5.5.280.0100.04116.00
5.5.270.0110.03816.03
5.5.260.0020.04615.84
5.5.250.0100.03315.92
5.5.240.0100.01615.56
5.5.230.0030.00311.15
5.5.220.0040.00411.03
5.5.210.0090.00311.03
5.5.200.0110.00010.79
5.5.190.0060.00310.86
5.5.180.0040.00410.89
5.5.170.0080.00010.96
5.5.160.0030.00611.01
5.5.150.0030.00611.09
5.5.140.0030.00611.10
5.5.130.0030.00710.77
5.5.120.0000.00910.85
5.5.110.0000.01010.91
5.5.100.0000.00611.11
5.5.90.0030.00710.87
5.5.80.0060.00611.03
5.5.70.0060.00611.04
5.5.60.0030.00910.84
5.5.50.0030.00911.10
5.5.40.0090.00311.05
5.5.30.0040.00310.95
5.5.20.0070.00310.96
5.5.10.0080.00410.95
5.5.00.0070.00011.04
5.4.450.0050.02315.02
5.4.440.0070.02314.99
5.4.430.0080.03615.01
5.4.420.0040.02315.12
5.4.410.0060.04015.00
5.4.400.0060.03915.03
5.4.390.0020.02514.75
5.4.380.0050.02214.89
5.4.370.0100.03314.77
5.4.360.0080.03514.97
5.4.350.0050.04014.74
5.4.340.0050.04014.81
5.4.330.0030.00710.90
5.4.320.0050.02814.79
5.4.310.0100.03414.90
5.4.300.0050.04314.83
5.4.290.0030.04215.04
5.4.280.0110.03014.95
5.4.270.0100.03015.00
5.4.260.0100.03815.04
5.4.250.0050.03214.74
5.4.240.0050.04015.10
5.4.230.0080.02614.96
5.4.220.0100.03715.10
5.4.210.0010.04314.73
5.4.200.0020.04614.81
5.4.190.0040.04114.94
5.4.180.0060.03314.87
5.4.170.0070.03715.04
5.4.160.0070.04014.97
5.4.150.0080.02314.77
5.4.140.0050.02113.61
5.4.130.0050.02313.63
5.4.120.0060.04313.58
5.4.110.0050.04013.64
5.4.100.0060.03113.54
5.4.90.0080.03513.62
5.4.80.0050.02213.57
5.4.70.0040.02113.57
5.4.60.0020.02713.58
5.4.50.0050.01813.69
5.4.40.0070.03313.58
5.4.30.0030.03613.43
5.4.20.0100.02813.59
5.4.10.0020.02613.50
5.4.00.0010.03313.34
5.3.290.0020.04412.55
5.3.280.0070.02512.45
5.3.270.0030.03912.49
5.3.260.0120.03112.46
5.3.250.0030.02212.39
5.3.240.0060.02512.37
5.3.230.0030.02012.46
5.3.220.0030.02312.48
5.3.210.0070.02212.46
5.3.200.0100.01712.44
5.3.190.0030.02412.39
5.3.180.0030.04012.41
5.3.170.0080.02612.49
5.3.160.0080.03812.50
5.3.150.0020.02312.47
5.3.140.0080.02312.48
5.3.130.0100.02712.42
5.3.120.0080.01812.48
5.3.110.0050.02412.44
5.3.100.0040.02812.23
5.3.90.0070.03712.25
5.3.80.0020.03612.10
5.3.70.0050.03912.20
5.3.60.0020.02712.12
5.3.50.0020.02512.17
5.3.40.0030.02412.11
5.3.30.0110.02612.10
5.3.20.0050.03211.97
5.3.10.0070.03311.95
5.3.00.0070.02811.94
5.2.170.0000.03910.72
5.2.160.0050.03410.68
5.2.150.0050.02110.68
5.2.140.0030.02010.78
5.2.130.0010.01810.70
5.2.120.0070.01310.68
5.2.110.0070.01610.70
5.2.100.0020.01710.70
5.2.90.0020.01510.68
5.2.80.0000.02210.76
5.2.70.0000.01810.70
5.2.60.0040.01510.65
5.2.50.0010.01810.58
5.2.40.0040.01510.65
5.2.30.0050.01510.65
5.2.20.0040.01710.55
5.2.10.0020.01810.63
5.2.00.0010.01910.50
5.1.60.0020.01310.13
5.1.50.0000.01610.14
5.1.40.0020.01510.10
5.1.30.0030.01510.28
5.1.20.0040.01910.29
5.1.10.0020.01510.17
5.1.00.0050.01210.17
5.0.50.0030.0139.47
5.0.40.0020.0139.36
5.0.30.0020.0179.23
5.0.20.0050.0129.27
5.0.10.0020.0129.19
5.0.00.0030.0159.28
4.4.90.0000.0128.95
4.4.80.0030.0088.95
4.4.70.0020.0088.95
4.4.60.0010.0098.95
4.4.50.0020.0108.95
4.4.40.0000.0158.95
4.4.30.0030.0088.95
4.4.20.0030.0108.95
4.4.10.0000.0128.95
4.4.00.0020.0128.95
4.3.110.0010.0108.95
4.3.100.0010.0088.95
4.3.90.0020.0088.95
4.3.80.0000.0148.95
4.3.70.0000.0108.95
4.3.60.0020.0108.95
4.3.50.0020.0108.95
4.3.40.0030.0138.95
4.3.30.0030.0078.95
4.3.20.0000.0128.95
4.3.10.0020.0088.95
4.3.00.0000.0118.95

preferences:
47.96 ms | 401 KiB | 5 Q