3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 5, null) + array_fill(4, 9, null); var_dump($arr);

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.0150.00318.18
8.3.50.0100.01017.98
8.3.40.0060.00918.76
8.3.30.0090.00618.57
8.3.20.0080.00019.09
8.3.10.0040.00423.63
8.3.00.0070.00020.68
8.2.180.0040.01116.32
8.2.170.0040.01122.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.83
8.2.120.0070.00026.35
8.2.110.0040.01820.30
8.2.100.0000.01117.82
8.2.90.0080.00017.84
8.2.80.0000.00817.97
8.2.70.0000.00917.90
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0000.00819.24
8.2.30.0040.00419.24
8.2.20.0040.00417.90
8.2.10.0000.00817.86
8.2.00.0040.00417.65
8.1.280.0140.00025.92
8.1.270.0080.00018.83
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00617.39
8.1.230.0110.00022.63
8.1.220.0040.00417.74
8.1.210.0040.00418.79
8.1.200.0060.00317.25
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0000.00718.82
8.1.150.0050.00218.82
8.1.140.0000.00722.03
8.1.130.0030.00320.17
8.1.120.0040.00417.38
8.1.110.0040.00417.36
8.1.100.0040.00417.42
8.1.90.0000.00717.43
8.1.80.0040.00317.41
8.1.70.0060.00317.40
8.1.60.0080.00017.43
8.1.50.0040.00417.42
8.1.40.0000.00817.42
8.1.30.0070.00317.55
8.1.20.0040.00417.45
8.1.10.0000.00917.48
8.1.00.0040.00717.36
8.0.300.0070.00019.79
8.0.290.0080.00016.75
8.0.280.0000.00718.38
8.0.270.0050.00317.19
8.0.260.0000.00818.36
8.0.250.0030.00316.84
8.0.240.0030.00316.91
8.0.230.0000.00716.98
8.0.220.0060.00616.80
8.0.210.0000.00716.79
8.0.200.0030.00316.88
8.0.190.0040.00416.91
8.0.180.0040.00416.93
8.0.170.0090.00016.90
8.0.160.0040.00316.78
8.0.150.0000.00716.88
8.0.140.0030.00316.84
8.0.130.0030.00313.25
8.0.120.0000.00816.84
8.0.110.0030.00516.73
8.0.100.0080.00016.75
8.0.90.0050.00316.79
8.0.80.0130.00616.82
8.0.70.0000.00816.95
8.0.60.0080.00016.76
8.0.50.0000.00716.73
8.0.30.0170.00617.15
8.0.20.0130.01117.40
8.0.10.0040.00416.89
8.0.00.0090.01116.72
7.4.330.0050.00015.55
7.4.320.0000.00616.45
7.4.300.0030.00316.54
7.4.290.0040.00416.51
7.4.280.0030.00616.41
7.4.270.0060.00316.42
7.4.260.0000.00716.34
7.4.250.0040.00416.50
7.4.240.0000.00716.54
7.4.230.0000.00716.53
7.4.220.0000.00816.32
7.4.210.0070.00916.51
7.4.200.0000.00716.49
7.4.160.0100.00816.43
7.4.140.0080.01217.86
7.4.130.0100.01316.60
7.4.120.0120.00616.43
7.4.110.0050.01516.52
7.4.100.0060.01016.38
7.4.90.0100.01016.37
7.4.80.0090.00919.39
7.4.70.0100.00616.45
7.4.60.0060.01016.38
7.4.50.0090.00616.27
7.4.40.0060.01616.46
7.4.10.0040.01515.13
7.4.00.0060.00614.73
7.3.330.0050.00012.93
7.3.320.0040.00413.11
7.3.310.0040.00416.26
7.3.300.0070.00016.30
7.3.290.0000.00616.16
7.3.280.0110.00816.11
7.3.260.0090.00916.39
7.3.240.0070.01216.31
7.3.230.0060.00916.21
7.3.210.0060.00916.13
7.3.200.0200.00316.57
7.3.190.0120.00916.43
7.3.180.0030.01316.52
7.3.170.0130.00316.23
7.3.160.0090.01216.20
7.3.130.0100.00714.93
7.3.120.0100.01014.69
7.3.110.0060.00914.95
7.3.100.0040.01114.75
7.3.90.0090.00914.79
7.3.80.0030.01014.68
7.3.70.0000.01114.57
7.3.60.0130.00314.33
7.3.50.0070.01014.73
7.3.40.0070.00414.55
7.3.30.0080.00414.64
7.3.20.0040.01116.59
7.3.10.0120.00316.51
7.3.00.0030.00916.51
7.2.330.0040.01416.17
7.2.320.0170.00616.57
7.2.310.0040.01816.53
7.2.300.0090.00916.54
7.2.290.0090.00916.39
7.2.260.0000.02114.81
7.2.250.0070.01014.87
7.2.240.0070.01014.73
7.2.230.0090.00915.02
7.2.220.0070.01114.86
7.2.210.0030.01014.76
7.2.200.0130.00314.52
7.2.190.0060.01214.89
7.2.180.0030.01014.80
7.2.170.0060.00914.93
7.2.160.0040.01114.99
7.2.150.0040.00716.88
7.2.140.0030.01016.49
7.2.130.0030.01316.82
7.2.120.0030.01016.84
7.2.110.0130.00316.88
7.2.100.0030.00716.84
7.2.90.0080.00416.71
7.2.80.0070.01116.88
7.2.70.0080.01116.94
7.2.60.0100.01016.96
7.2.50.0050.00516.95
7.2.40.0060.01016.51
7.2.30.0080.00816.80
7.2.20.0040.00816.84
7.2.10.0130.00316.76
7.2.00.0060.00916.72
7.1.330.0110.00415.86
7.1.320.0030.01215.92
7.1.310.0090.00315.63
7.1.300.0070.00715.39
7.1.290.0000.00815.66
7.1.280.0090.00615.85
7.1.270.0000.01315.54
7.1.260.0080.00415.34
7.1.250.0080.00615.46
7.1.240.0030.01015.78
7.1.230.0040.00815.71
7.1.220.0130.00315.79
7.1.210.0040.00415.71
7.1.200.0000.00915.49
7.1.190.0090.00915.41
7.1.180.0030.01315.59
7.1.170.0070.00715.74
7.1.160.0130.00315.64
7.1.150.0070.01015.88
7.1.140.0030.00915.68
7.1.130.0000.01615.74
7.1.120.0120.00615.67
7.1.110.0000.01115.89
7.1.100.0060.00915.92
7.1.90.0030.00715.88
7.1.80.0030.01015.90
7.1.70.0090.00615.82
7.1.60.0060.00915.44
7.1.50.0090.00915.30
7.1.40.0030.00615.50
7.1.30.0030.01215.66
7.1.20.0080.00615.82
7.1.10.0100.00715.84
7.1.00.0100.00315.55
7.0.330.0040.01215.30
7.0.320.0070.00415.43
7.0.310.0030.01415.29
7.0.300.0040.00815.55
7.0.290.0070.00715.32
7.0.280.0030.01015.34
7.0.270.0110.00415.36
7.0.260.0000.01515.28
7.0.250.0110.00715.33
7.0.240.0040.00415.32
7.0.230.0040.00815.30
7.0.220.0100.00315.54
7.0.210.0000.01515.39
7.0.200.0100.00315.13
7.0.190.0090.00315.34
7.0.180.0030.01015.45
7.0.170.0000.01515.43
7.0.160.0100.00315.40
7.0.150.0070.00315.47
7.0.140.0030.00715.57
7.0.130.0030.01015.43
7.0.120.0070.00315.28
7.0.110.0000.01115.34
7.0.100.0060.00915.05
7.0.90.0040.00415.32
7.0.80.0110.00415.20
7.0.70.0000.01115.32
7.0.60.0000.01115.40
7.0.50.0040.01115.58
7.0.40.0060.00613.43
7.0.30.0090.00613.52
7.0.20.0030.00613.32
7.0.10.0090.00013.29
7.0.00.0030.01013.31
5.6.400.0090.00314.04
5.6.390.0100.00714.05
5.6.380.0060.00614.27
5.6.370.0100.00314.42
5.6.360.0120.00313.88
5.6.350.0110.00713.87
5.6.340.0060.00614.26
5.6.330.0080.00313.96
5.6.320.0060.00614.37
5.6.310.0030.01514.05
5.6.300.0080.00413.91
5.6.290.0070.00414.28
5.6.280.0100.00713.99
5.6.270.0110.00414.31
5.6.260.0070.00714.41
5.6.250.0070.00714.16
5.6.240.0030.00614.12
5.6.230.0030.00614.26
5.6.220.0040.00814.11
5.6.210.0070.00414.19
5.6.200.0060.00614.20
5.6.190.0070.01114.30
5.6.180.0090.00614.36
5.6.170.0060.00914.39
5.6.160.0060.00614.40
5.6.150.0000.01314.20
5.6.140.0000.01314.38
5.6.130.0030.01214.18
5.6.120.0030.01014.18
5.6.110.0090.00614.22
5.6.100.0080.00614.04
5.6.90.0040.01114.51
5.6.80.0000.01613.90
5.6.70.0040.01113.92
5.6.60.0060.00813.96
5.6.50.0070.00714.30
5.6.40.0060.01014.38
5.6.30.0000.01014.13
5.6.20.0070.00713.97
5.6.10.0050.00514.06
5.6.00.0030.00914.39

preferences:
66.9 ms | 401 KiB | 5 Q