3v4l.org

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

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.0040.01118.45
8.3.60.0070.01416.75
8.3.50.0050.01221.99
8.3.40.0130.00718.70
8.3.30.0060.00918.81
8.3.20.0070.00720.21
8.3.10.0050.00323.57
8.3.00.0040.00419.38
8.2.180.0070.00718.29
8.2.170.0100.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.61
8.2.110.0090.00022.11
8.2.100.0060.00617.93
8.2.90.0050.00219.22
8.2.80.0090.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0030.00718.07
8.2.40.0080.00019.10
8.2.30.0030.00520.55
8.2.20.0000.00717.79
8.2.10.0040.00417.99
8.2.00.0070.00018.07
8.1.280.0100.01025.92
8.1.270.0080.00023.97
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00622.40
8.1.230.0040.00817.79
8.1.220.0050.00317.78
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0060.00320.43
8.1.160.0040.00421.95
8.1.150.0000.00720.68
8.1.140.0000.00819.59
8.1.130.0050.00317.61
8.1.120.0030.00317.47
8.1.110.0030.00717.39
8.1.100.0090.00017.41
8.1.90.0070.00017.38
8.1.80.0040.00417.41
8.1.70.0050.00317.44
8.1.60.0040.00417.58
8.1.50.0040.00417.52
8.1.40.0080.00017.52
8.1.30.0040.00417.56
8.1.20.0000.00717.66
8.1.10.0000.00717.40
8.1.00.0000.00817.45
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00717.27
8.0.260.0060.00017.28
8.0.250.0040.00416.97
8.0.240.0000.00716.84
8.0.230.0030.00316.94
8.0.220.0030.00316.93
8.0.210.0000.00716.91
8.0.200.0000.00716.90
8.0.190.0040.00416.97
8.0.180.0000.00716.94
8.0.170.0040.00416.89
8.0.160.0040.00416.90
8.0.150.0000.00716.75
8.0.140.0000.00716.72
8.0.130.0000.00513.34
8.0.120.0060.00316.90
8.0.110.0030.00516.82
8.0.100.0050.00316.82
8.0.90.0000.00716.76
8.0.80.0040.01116.86
8.0.70.0040.00416.95
8.0.60.0000.00716.84
8.0.50.0040.00416.92
8.0.30.0110.00517.12
8.0.20.0110.00717.40
8.0.10.0000.00716.95
8.0.00.0050.01316.70
7.4.330.0030.00215.08
7.4.320.0090.00016.54
7.4.300.0040.00816.48
7.4.290.0000.00716.51
7.4.280.0040.00416.50
7.4.270.0000.00716.55
7.4.260.0040.00416.50
7.4.250.0040.00416.55
7.4.240.0060.00216.54
7.4.230.0000.00716.48
7.4.220.0060.01216.45
7.4.210.0060.01216.49
7.4.200.0000.00716.67
7.4.160.0090.00616.48
7.4.150.0030.01617.40
7.4.140.0140.00717.86
7.4.130.0120.00916.49
7.4.120.0100.00716.47
7.4.110.0130.01016.52
7.4.100.0160.00416.64
7.4.90.0030.01616.61
7.4.80.0120.00919.39
7.4.70.0060.01216.48
7.4.60.0120.00616.45
7.4.50.0000.00816.43
7.4.40.0140.00316.53
7.4.30.0220.00016.48
7.4.00.0030.01214.80
7.3.330.0060.00013.20
7.3.320.0020.00213.05
7.3.310.0000.00716.08
7.3.300.0030.00316.18
7.3.290.0070.00816.21
7.3.280.0110.00816.22
7.3.270.0030.01417.40
7.3.260.0170.00016.25
7.3.250.0120.00716.29
7.3.240.0100.00816.36
7.3.230.0070.01416.39
7.3.210.0070.01016.43
7.3.200.0090.00616.44
7.3.190.0090.01216.54
7.3.180.0060.00916.23
7.3.170.0050.01516.30
7.3.160.0080.00816.59
7.2.330.0040.01616.75
7.2.320.0130.00916.68
7.2.310.0060.00916.75
7.2.300.0130.00316.46
7.2.290.0100.00616.60
7.2.60.0070.01016.85
7.2.00.0070.01019.44
7.1.200.0070.00315.62
7.1.100.0030.00618.15
7.1.70.0000.00917.09
7.1.60.0140.01019.43
7.1.50.0030.01316.84
7.1.00.0030.07322.48
7.0.200.0100.00714.89
7.0.60.0070.05719.94
7.0.50.0000.04717.86
7.0.40.0170.07320.23
7.0.30.0030.08320.25
7.0.20.0200.05020.10
7.0.10.0030.09020.09
7.0.00.0100.04320.08
5.6.280.0000.04021.09
5.6.210.0100.07720.51
5.6.200.0070.08318.22
5.6.190.0100.04720.77
5.6.180.0270.05020.42
5.6.170.0300.06320.62
5.6.160.0100.06720.66
5.6.150.0030.04018.18
5.6.140.0070.05018.17
5.6.130.0030.04318.18
5.6.120.0030.04021.12
5.6.110.0030.04021.05
5.6.100.0070.05721.11
5.6.90.0030.05720.96
5.6.80.0100.07720.44
5.5.350.0330.08020.50
5.5.340.0070.07717.98
5.5.330.0100.04720.27
5.5.320.0230.04020.20
5.5.310.0230.03320.20
5.5.300.0100.08017.95
5.5.290.0030.08317.95
5.5.280.0030.08320.89
5.5.270.0130.04020.65
5.5.260.0070.09020.93
5.5.250.0030.08320.69
5.5.240.0100.04320.26
5.4.450.0630.05319.39
5.4.440.0500.06719.60
5.4.430.0600.05319.61
5.4.420.0700.05019.57
5.4.410.0570.05719.21
5.4.400.0670.05318.84
5.4.390.0530.06019.29
5.4.380.0600.05019.06
5.4.370.0630.04719.13
5.4.360.0570.05719.25
5.4.350.0700.04318.96
5.4.340.0570.05319.23
5.4.320.0700.05318.96
5.4.310.0630.05019.38
5.4.300.0570.05319.01
5.4.290.0570.05319.09
5.4.280.0600.05318.85
5.4.270.0600.05019.06
5.4.260.0530.05719.27
5.4.250.0800.07018.96
5.4.240.0630.05319.25
5.4.230.0600.05319.22
5.4.220.0570.05719.12
5.4.210.0670.04319.27
5.4.200.0530.05719.27
5.4.190.0630.05019.22
5.4.180.0630.05719.12
5.4.170.0800.06019.27
5.4.160.0670.05719.09
5.4.150.0730.05019.11
5.4.140.0630.05016.61
5.4.130.0600.04716.44
5.4.120.0670.04016.50
5.4.110.0700.04716.53
5.4.100.0700.04716.58
5.4.90.0700.04716.63
5.4.80.0630.05316.43
5.4.70.0700.03716.61
5.4.60.0630.04716.58
5.4.50.0770.04316.39
5.4.40.0630.05316.39
5.4.30.0670.05016.59
5.4.20.0730.04316.57
5.4.10.0700.04716.16
5.4.00.0600.04716.04

preferences:
59.67 ms | 401 KiB | 5 Q