3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [key1] => 'foobar', [key2] => [ [key2-1] => [], [key2-2] => 'foo', [key3-3] => 'foo2', [key3-4] => 'foo3' ], ];

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.0110.01118.25
8.3.50.0070.00718.33
8.3.40.0090.00919.02
8.3.30.0040.01118.80
8.3.20.0040.00421.65
8.3.10.0080.00023.66
8.3.00.0050.00319.68
8.2.180.0120.00918.16
8.2.170.0140.00722.96
8.2.160.0080.00820.88
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00519.27
8.2.120.0040.00426.35
8.2.110.0030.00619.24
8.2.100.0080.00417.84
8.2.90.0070.00020.45
8.2.80.0000.00818.04
8.2.70.0000.00818.04
8.2.60.0060.00318.09
8.2.50.0030.00618.10
8.2.40.0060.00320.47
8.2.30.0040.00419.43
8.2.20.0060.00318.09
8.2.10.0070.00018.10
8.2.00.0000.00718.05
8.1.280.0150.00325.92
8.1.270.0050.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0030.00920.84
8.1.220.0000.00817.74
8.1.210.0000.00718.93
8.1.200.0060.00317.36
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00718.84
8.1.150.0030.00518.87
8.1.140.0000.00817.54
8.1.130.0000.00718.85
8.1.120.0000.00817.31
8.1.110.0000.00717.37
8.1.100.0000.00917.38
8.1.90.0090.00017.27
8.1.80.0050.00317.39
8.1.70.0050.00217.36
8.1.60.0030.00817.54
8.1.50.0050.00317.33
8.1.40.0040.00417.39
8.1.30.0040.00417.49
8.1.20.0030.00617.63
8.1.10.0030.00617.40
8.1.00.0060.00317.40
8.0.300.0040.00420.01
8.0.290.0030.00616.75
8.0.280.0000.00718.32
8.0.270.0000.00717.23
8.0.260.0040.00417.11
8.0.250.0060.00317.00
8.0.240.0070.00316.99
8.0.230.0000.00717.00
8.0.220.0000.00716.82
8.0.210.0040.00416.79
8.0.200.0040.00416.91
8.0.190.0050.00316.98
8.0.180.0040.00416.98
8.0.170.0080.00316.82
8.0.160.0040.00416.93
8.0.150.0000.00816.87
8.0.140.0040.00416.80
8.0.130.0050.00013.42
8.0.120.0000.00716.96
8.0.110.0040.00416.98
8.0.100.0000.00816.93
8.0.90.0070.00016.83
8.0.80.0090.00616.93
8.0.70.0030.00516.97
8.0.60.0070.00017.00
8.0.50.0060.00316.88
8.0.30.0140.00617.09
8.0.20.0170.00617.40
8.0.10.0040.00416.89
8.0.00.0090.00916.69
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0060.00016.46
7.4.290.0000.00716.58
7.4.280.0080.00316.46
7.4.270.0000.00716.59
7.4.260.0070.00016.54
7.4.250.0000.00716.55
7.4.240.0040.00416.60
7.4.230.0000.00616.34
7.4.220.0000.00816.70
7.4.210.0080.00716.65
7.4.200.0040.00416.40
7.4.160.0070.01016.52
7.4.140.0110.00817.86
7.4.130.0080.01216.51
7.4.120.0070.01316.47
7.4.110.0030.01516.55
7.4.100.0100.01316.45
7.4.90.0080.00816.55
7.4.80.0060.01319.39
7.4.70.0130.00316.56
7.4.60.0120.00616.27
7.4.50.0070.01016.52
7.4.40.0120.00816.64
7.4.10.0070.01115.03
7.4.00.0030.01215.04
7.3.330.0000.00613.06
7.3.320.0040.00313.01
7.3.310.0030.00316.43
7.3.300.0040.00416.16
7.3.290.0030.00316.28
7.3.280.0070.00716.25
7.3.260.0090.00916.34
7.3.240.0120.00816.33
7.3.230.0100.00716.27
7.3.210.0150.00916.25
7.3.200.0040.01216.25
7.3.190.0000.01616.16
7.3.180.0130.01316.28
7.3.170.0060.01516.29
7.3.160.0110.00416.46
7.3.130.0070.01114.74
7.3.120.0110.00714.56
7.3.110.0060.01314.86
7.3.100.0070.01114.80
7.3.90.0070.01014.68
7.3.80.0080.00414.83
7.3.70.0070.01014.74
7.3.60.0120.00314.58
7.3.50.0000.01614.85
7.3.40.0070.00314.66
7.3.30.0030.01414.83
7.3.20.0080.00616.70
7.3.10.0060.00516.57
7.3.00.0080.00616.47
7.2.330.0150.00916.58
7.2.320.0030.01316.71
7.2.310.0170.00716.46
7.2.300.0070.01016.62
7.2.290.0120.00816.71
7.2.260.0070.01315.17
7.2.250.0000.01815.04
7.2.240.0070.01015.10
7.2.230.0070.01414.71
7.2.220.0060.01215.08
7.2.210.0000.01414.97
7.2.200.0110.00415.13
7.2.190.0090.00915.08
7.2.180.0000.01414.97
7.2.170.0100.00714.87
7.2.160.0130.00315.05
7.2.150.0070.00716.68
7.2.140.0100.00316.91
7.2.130.0070.00916.84
7.2.120.0050.01016.82
7.2.110.0050.01016.74
7.2.100.0130.00216.82
7.2.90.0080.00616.92
7.2.80.0020.01316.71
7.2.70.0050.00716.75
7.2.60.0040.00816.90
7.2.50.0080.01016.87
7.2.40.0260.00917.08
7.2.30.0200.01117.19
7.2.20.0160.01217.25
7.2.10.0060.01117.25
7.2.00.0170.01317.22
7.1.330.0070.01015.92
7.1.320.0000.01315.49
7.1.310.0040.01215.68
7.1.300.0040.00815.68
7.1.290.0030.00915.93
7.1.280.0030.01215.66
7.1.270.0120.00315.75
7.1.260.0110.00015.52
7.1.250.0050.00915.80
7.1.240.0070.00715.74
7.1.230.0070.00715.64
7.1.220.0110.00315.77
7.1.210.0050.00515.50
7.1.200.0070.00715.61
7.1.190.0080.00015.87
7.1.180.0060.00315.45
7.1.170.0120.00315.73
7.1.160.0280.01416.25
7.1.150.0760.01316.23
7.1.140.0320.00716.21
7.1.130.0350.01016.36
7.1.120.0120.01416.28
7.1.110.0280.00815.93
7.1.100.0090.00815.92
7.1.90.0440.00615.92
7.1.80.0460.01216.07
7.1.70.0370.01015.40
7.1.60.0510.01424.43
7.1.50.0490.00824.16
7.1.40.0470.00723.89
7.1.30.0450.01224.20
7.1.20.0880.00924.29
7.1.10.0470.00615.29
7.1.00.0270.01315.18
7.0.330.0110.00415.43
7.0.320.0070.00315.39
7.0.310.0030.00815.23
7.0.300.0090.00615.43
7.0.290.0100.00715.53
7.0.280.0090.00615.14
7.0.270.0060.00615.19
7.0.260.0060.00615.35
7.0.250.0040.01115.41
7.0.240.0040.00815.17
7.0.230.0000.00915.18
7.0.220.0050.00315.23
7.0.210.0060.00615.32
7.0.200.0030.01015.26
7.0.190.0060.00315.44
7.0.180.0040.00815.28
7.0.170.0030.01015.34
7.0.160.0040.01115.52
7.0.150.0060.01015.44
7.0.140.0040.01115.34
7.0.130.0070.01015.35
7.0.120.0040.01115.19
7.0.110.0050.00515.29
7.0.100.0030.00915.39
7.0.90.0120.00315.32
7.0.80.0090.00315.31
7.0.70.0040.01215.56
7.0.60.0070.00315.24
7.0.50.0000.01015.43
7.0.40.0100.00713.57
7.0.30.0110.00313.45
7.0.20.0000.01013.28
7.0.10.0120.00013.55
7.0.00.0130.00013.37
5.6.400.0070.00314.24
5.6.390.0070.00814.70
5.6.380.0030.01014.53
5.6.370.0030.01314.21
5.6.360.0060.00914.22
5.6.350.0000.01414.56
5.6.340.0070.00314.14
5.6.330.0030.00714.09
5.6.320.0030.00714.13
5.6.310.0030.00714.20
5.6.300.0030.00714.11
5.6.290.0030.01014.54
5.6.280.0110.00414.41
5.6.270.0030.01014.44
5.6.260.0070.00314.57
5.6.250.0090.00614.44
5.6.240.0060.00914.40
5.6.230.0030.01314.40
5.6.220.0030.00914.21
5.6.210.0100.00314.32
5.6.200.0030.00914.45
5.6.190.0030.01014.66
5.6.180.0100.00314.29
5.6.170.0070.00414.23
5.6.160.0080.00814.22
5.6.150.0030.01314.12
5.6.140.0060.01214.53
5.6.130.0080.00714.46
5.6.120.0030.01314.24
5.6.110.0060.01214.24
5.6.100.0070.01014.18
5.6.90.0110.00714.30
5.6.80.0070.01014.06
5.6.70.0040.01014.23
5.6.60.0000.01514.13
5.6.50.0030.01013.94
5.6.40.0000.01314.16
5.6.30.0100.00714.38
5.6.20.0060.00614.09
5.6.10.0030.01014.03
5.6.00.0040.00414.16

preferences:
60.67 ms | 400 KiB | 5 Q