3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &collector() { static $collection = array(); return $collection; echo implode("",$collection); } $collection = &collector(); $collection[] = 'foo'; ?>

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.40.0060.01118.60
8.3.30.0100.00719.23
8.3.20.0040.00420.21
8.3.10.0060.00321.91
8.3.00.0040.00422.52
8.2.170.0120.00322.96
8.2.160.0030.01021.11
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.37
8.2.110.0070.00322.09
8.2.100.0060.00617.91
8.2.90.0040.00419.04
8.2.80.0060.00318.05
8.2.70.0000.00817.75
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0040.00418.09
8.2.30.0070.00418.00
8.2.20.0050.00317.77
8.2.10.0050.00317.79
8.2.00.0040.00417.66
8.1.270.0080.00023.88
8.1.260.0030.00626.35
8.1.250.0070.00328.09
8.1.240.0030.00623.82
8.1.230.0080.00319.16
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0050.00217.30
8.1.180.0040.00418.10
8.1.170.0000.00818.37
8.1.160.0080.00021.91
8.1.150.0040.00418.54
8.1.140.0030.00617.32
8.1.130.0000.00717.86
8.1.120.0000.00817.51
8.1.110.0030.00517.35
8.1.100.0030.00517.29
8.1.90.0070.00017.42
8.1.80.0030.00617.28
8.1.70.0000.00717.35
8.1.60.0080.00017.48
8.1.50.0000.00817.44
8.1.40.0060.00617.58
8.1.30.0030.00517.53
8.1.20.0040.00417.56
8.1.10.0040.00417.45
8.1.00.0050.00217.45
8.0.300.0070.00018.77
8.0.290.0000.00817.15
8.0.280.0000.00818.43
8.0.270.0080.00017.15
8.0.260.0070.00016.81
8.0.250.0040.00416.95
8.0.240.0030.00316.78
8.0.230.0070.00016.94
8.0.220.0000.00716.85
8.0.210.0000.00716.75
8.0.200.0000.00616.81
8.0.190.0000.00716.81
8.0.180.0070.00016.95
8.0.170.0030.00616.81
8.0.160.0040.00416.75
8.0.150.0000.00716.81
8.0.140.0000.00716.82
8.0.130.0050.00013.30
8.0.120.0030.00516.75
8.0.110.0000.00816.88
8.0.100.0040.00416.88
8.0.90.0030.00516.88
8.0.80.0150.00616.76
8.0.70.0040.00416.87
8.0.60.0040.00416.72
8.0.50.0030.00316.73
8.0.30.0160.00617.02
8.0.20.0130.00517.42
8.0.10.0070.00016.91
8.0.00.0140.00616.81
7.4.330.0000.00615.00
7.4.320.0000.00716.40
7.4.300.0040.00416.41
7.4.290.0070.00016.36
7.4.280.0080.00016.47
7.4.270.0000.00616.53
7.4.260.0000.00716.62
7.4.250.0040.00416.41
7.4.240.0020.00516.64
7.4.230.0030.00316.48
7.4.220.0030.00416.64
7.4.210.0080.00916.56
7.4.200.0000.00716.29
7.4.190.0040.00416.70
7.4.160.0070.01316.34
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0090.00916.55
7.4.120.0100.00916.46
7.4.110.0060.01916.46
7.4.100.0120.00916.47
7.4.90.0090.00816.56
7.4.80.0090.01219.39
7.4.70.0090.00916.71
7.4.60.0090.00816.68
7.4.50.0030.00316.50
7.4.40.0080.00722.77
7.4.30.0100.00716.50
7.4.00.0060.00915.21
7.3.330.0060.00013.20
7.3.320.0020.00213.18
7.3.310.0030.00316.27
7.3.300.0000.00616.23
7.3.290.0130.00016.20
7.3.280.0050.01216.18
7.3.270.0070.01117.40
7.3.260.0110.00716.30
7.3.250.0090.00816.37
7.3.240.0070.01016.38
7.3.230.0130.00316.43
7.3.210.0070.01016.32
7.3.200.0090.00919.39
7.3.190.0070.01016.32
7.3.180.0090.00616.56
7.3.170.0090.00616.35
7.3.160.0100.00816.41
7.3.120.0090.00614.98
7.2.330.0150.00416.72
7.2.320.0080.01116.69
7.2.310.0060.00916.73
7.2.300.0090.00616.49
7.2.290.0030.01416.66
7.2.00.0030.01319.43
7.1.100.0000.01617.90
7.1.70.0030.00717.10
7.1.60.0060.01919.82
7.1.50.0060.01516.91
7.1.00.0000.08022.42
7.0.200.0030.01016.74
7.0.140.0130.06321.95
7.0.60.0100.04319.86
7.0.50.0030.04017.84
7.0.40.0070.08020.13
7.0.30.0230.05020.20
7.0.20.0200.04020.24
7.0.10.0230.07020.16
7.0.00.0030.07720.11
5.6.280.0030.07020.90
5.6.210.0070.06720.71
5.6.200.0030.07318.13
5.6.190.0030.04320.52
5.6.180.0000.05720.63
5.6.170.0200.04720.39
5.6.160.0130.05320.55
5.6.150.0100.07718.27
5.6.140.0200.06718.18
5.6.130.0070.07318.17
5.6.120.0100.06020.97
5.6.110.0130.08320.99
5.6.100.0030.07721.08
5.6.90.0130.07720.98
5.6.80.0100.07720.49
5.5.350.0070.08320.32
5.5.340.0070.05017.98
5.5.330.0070.03720.27
5.5.320.0270.07320.34
5.5.310.0270.04320.51
5.5.300.0030.03718.01
5.5.290.0170.07018.09
5.5.280.0030.05020.82
5.5.270.0100.08320.68
5.5.260.0130.07320.97
5.5.250.0070.04020.68
5.5.240.0000.07020.07
5.4.450.3970.03719.48
5.4.440.3800.04319.49
5.4.430.4970.04019.29
5.4.420.3400.04319.30
5.4.410.3470.04019.35
5.4.400.3900.03019.20
5.4.390.0170.06019.00
5.4.380.3430.04019.06
5.4.370.3600.03319.06
5.4.360.3800.03719.06
5.4.350.4000.04319.09
5.4.340.3630.04018.98
5.4.320.3770.04018.95
5.4.310.3530.03019.06
5.4.300.4000.03718.95
5.4.290.3630.04019.17
5.4.280.3570.03719.22
5.4.270.4000.02719.09
5.4.260.3970.02719.14
5.4.250.3700.03019.21
5.4.240.3700.03718.95
5.4.230.3600.04019.30
5.4.220.4100.04319.08
5.4.210.3830.04018.96
5.4.200.3800.04019.21
5.4.190.3800.03719.07
5.4.180.4230.04018.86
5.4.170.4330.03719.07
5.4.160.3030.04019.18
5.4.150.3800.03319.04
5.4.140.2930.03016.32
5.4.130.4030.04016.34
5.4.120.3530.03016.35
5.4.110.3900.02316.56
5.4.100.3930.02716.26
5.4.90.4000.03316.44
5.4.80.3730.03016.44
5.4.70.3600.03316.44
5.4.60.4170.04016.53
5.4.50.3670.03316.56
5.4.40.3300.04016.25
5.4.30.3070.03316.42
5.4.20.3870.03016.55
5.4.10.3570.03016.55
5.4.00.3930.03015.79
5.3.290.3570.03314.66
5.3.280.3900.04014.63
5.3.270.4430.04714.57
5.3.260.3530.03714.51
5.3.250.3800.03014.59
5.3.240.3870.03714.82
5.3.230.4200.03714.59
5.3.220.3770.04314.64
5.3.210.3670.04014.57
5.3.200.3900.03714.61
5.3.190.2900.03714.49
5.3.180.3270.03314.48
5.3.170.3630.03714.58
5.3.160.3570.04014.46
5.3.150.3330.03314.54
5.3.140.3900.03314.63
5.3.130.3630.03714.46
5.3.120.3800.04314.59
5.3.110.3670.03314.46
5.3.100.3930.03714.20
5.3.90.3530.03713.99
5.3.80.3730.04014.09
5.3.70.3770.03314.13
5.3.60.4230.03713.93
5.3.50.4500.03713.85
5.3.40.3830.04314.02
5.3.30.3670.03313.80
5.3.20.3630.02713.66
5.3.10.3530.03313.70
5.3.00.3870.03713.53
5.2.170.3930.02311.22
5.2.160.3570.02311.19
5.2.150.2970.02711.10
5.2.140.3000.03011.16
5.2.130.2900.03011.01
5.2.120.2930.03011.03
5.2.110.3270.02011.14
5.2.100.3770.03011.10
5.2.90.3400.03311.03
5.2.80.3830.02311.00
5.2.70.3570.02311.02
5.2.60.3830.03011.05
5.2.50.3800.03311.02
5.2.40.2970.03011.15
5.2.30.3170.02310.92
5.2.20.2830.02710.93
5.2.10.3100.02710.98
5.2.00.3100.04010.79
5.1.60.2600.02710.07
5.1.50.2470.02310.06
5.1.40.2330.0239.92
5.1.30.2730.02010.42
5.1.20.2300.03010.56
5.1.10.2170.02310.29
5.1.00.2370.02010.14
5.0.50.1400.0279.92
5.0.40.1370.0239.92
5.0.30.1570.0339.92
5.0.20.0030.0309.92
5.0.10.0070.0309.92
5.0.00.0070.0609.92
4.4.90.1470.0179.92
4.4.80.1700.0139.92
4.4.70.1670.0179.92
4.4.60.1730.0209.92
4.4.50.1370.0209.92
4.4.40.1530.0209.92
4.4.30.1130.0209.92
4.4.20.1300.0179.92
4.4.10.1200.0139.92
4.4.00.1500.0279.92
4.3.110.1230.0179.92
4.3.100.0900.0139.92
4.3.90.0030.0179.92
4.3.80.0070.0379.92
4.3.70.0030.0239.92
4.3.60.0000.0339.92
4.3.50.0000.0279.92
4.3.40.0000.0309.92
4.3.30.0000.0379.92
4.3.20.0000.0309.93
4.3.10.1000.0179.93
4.3.00.0870.0209.93

preferences:
46.77 ms | 400 KiB | 5 Q