3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1 => 19, 2 => 2, 3 => 2018]; $arr2 = [1 => 19, 2 => 1, 3 => 2017]; $arr3 = [1 => 18, 2 => 2, 3 => 2016]; $mynewArray = [$arr1,$arr2,$arr3]; print_r($mynewArray);

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.4.20.0130.00720.42
8.4.10.0130.00319.52
8.3.150.0090.00920.32
8.3.140.0000.00816.50
8.3.130.0060.00318.42
8.3.120.0060.00320.46
8.3.110.0000.00820.94
8.3.100.0090.00618.10
8.3.90.0040.01126.77
8.3.80.0060.00316.13
8.3.70.0100.00516.58
8.3.60.0100.01018.20
8.3.50.0120.00717.40
8.3.40.0040.01118.84
8.3.30.0110.00418.63
8.3.20.0080.00020.69
8.3.10.0040.00420.73
8.3.00.0050.00323.66
8.2.270.0090.00918.93
8.2.260.0000.00818.18
8.2.250.0170.00318.23
8.2.240.0060.00317.28
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00318.16
8.2.190.0100.01016.75
8.2.180.0110.00725.92
8.2.170.0120.00322.96
8.2.160.0100.00720.39
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00322.08
8.2.100.0090.00319.35
8.2.90.0090.00017.63
8.2.80.0030.00518.78
8.2.70.0050.00517.91
8.2.60.0060.00318.03
8.2.50.0080.00018.10
8.2.40.0000.00819.34
8.2.30.0070.00019.23
8.2.20.0000.00717.92
8.2.10.0000.00718.84
8.2.00.0070.00019.35
8.1.310.0150.00318.61
8.1.300.0120.00316.18
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0040.00818.86
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0030.00618.60
8.1.160.0060.00318.88
8.1.150.0040.00418.75
8.1.140.0040.00418.80
8.1.130.0030.00320.15
8.1.120.0070.00017.42
8.1.110.0000.00717.26
8.1.100.0080.00017.44
8.1.90.0000.00717.33
8.1.80.0090.00017.42
8.1.70.0000.01117.48
8.1.60.0080.00017.61
8.1.50.0030.00517.54
8.1.40.0030.00617.53
8.1.30.0040.00417.53
8.1.20.0040.00417.59
8.1.10.0040.00417.36
8.1.00.0050.00317.32
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0000.00718.32
8.0.270.0030.00316.71
8.0.260.0030.00318.33
8.0.250.0000.00716.97
8.0.240.0070.00016.96
8.0.230.0080.00016.95
8.0.220.0000.00716.89
8.0.210.0030.00316.84
8.0.200.0060.00016.89
8.0.190.0090.00016.89
8.0.180.0050.00316.79
8.0.170.0030.00516.91
8.0.160.0000.00716.87
8.0.150.0090.00016.74
8.0.140.0060.00316.82
8.0.130.0030.00513.31
8.0.120.0040.00416.78
8.0.110.0040.00416.91
8.0.100.0040.00416.91
8.0.90.0060.00316.81
8.0.80.0150.00016.84
8.0.70.0040.00416.88
8.0.60.0030.00516.86
8.0.50.0040.00416.77
8.0.30.0090.00917.03
8.0.20.0070.01117.34
8.0.10.0020.00517.04
8.0.00.0080.00916.79
7.4.330.0020.00215.55
7.4.320.0060.00016.57
7.4.300.0000.00616.46
7.4.290.0040.00416.40
7.4.280.0050.00316.50
7.4.270.0030.00316.49
7.4.260.0040.00416.49
7.4.250.0000.00716.52
7.4.240.0060.00316.64
7.4.230.0000.00716.37
7.4.220.0000.00816.59
7.4.210.0060.00916.48
7.4.200.0030.00316.36
7.4.160.0070.01016.51
7.4.140.0060.01217.86
7.4.130.0110.00816.46
7.4.120.0100.00716.68
7.4.110.0030.01416.38
7.4.100.0130.00316.42
7.4.90.0000.01716.44
7.4.80.0120.00619.39
7.4.70.0120.00916.54
7.4.60.0090.00616.50
7.4.50.0070.01016.38
7.4.40.0130.00316.59
7.4.10.0120.00314.59
7.4.00.0050.01014.91
7.3.330.0050.00012.94
7.3.320.0000.00613.12
7.3.310.0030.00316.18
7.3.300.0000.00616.05
7.3.290.0070.00016.20
7.3.280.0120.00816.22
7.3.260.0090.01016.39
7.3.240.0070.01016.25
7.3.230.0140.00316.38
7.3.210.0110.00716.09
7.3.200.0060.00916.24
7.3.190.0000.01616.30
7.3.180.0070.00716.28
7.3.170.0000.01516.19
7.3.160.0130.00316.23
7.3.130.0090.00614.64
7.3.120.0070.01014.67
7.3.110.0070.01114.84
7.3.100.0060.00814.77
7.3.90.0030.01314.57
7.3.80.0000.01514.69
7.3.70.0030.01014.65
7.3.60.0090.00314.54
7.3.50.0110.00814.65
7.3.40.0060.00514.50
7.3.30.0070.00714.64
7.3.20.0100.00616.53
7.3.10.0080.00616.65
7.3.00.0070.00516.50
7.2.330.0100.01016.59
7.2.320.0070.01116.37
7.2.310.0040.01416.24
7.2.300.0070.01016.38
7.2.290.0130.00716.61
7.2.260.0070.01014.53
7.2.250.0040.01115.05
7.2.240.0090.00615.11
7.2.230.0060.00715.05
7.2.220.0060.00914.88
7.2.210.0060.00915.09
7.2.200.0000.00914.77
7.2.190.0040.01114.75
7.2.180.0070.00814.62
7.2.170.0100.00814.63
7.2.160.0080.00614.74
7.2.150.0040.01016.57
7.2.140.0080.00916.52
7.2.130.0030.01016.74
7.2.120.0060.00616.60
7.2.110.0040.00916.71
7.2.100.0070.00616.61
7.2.90.0110.00516.68
7.2.80.0020.01616.58
7.2.70.0070.00816.59
7.2.60.0050.01116.74
7.2.50.0070.00816.60
7.2.40.0050.01116.62
7.2.30.0040.01016.77
7.2.20.0070.01316.66
7.2.10.0060.01216.68
7.2.00.0070.00916.65
7.1.330.0090.00315.87
7.1.320.0060.00315.77
7.1.310.0060.00915.82
7.1.300.0000.01315.79
7.1.290.0030.01015.78
7.1.280.0080.01015.58
7.1.270.0050.00815.66
7.1.260.0080.00515.39
7.1.250.0050.01415.53
7.1.240.0040.00815.46
7.1.230.0070.00315.59
7.1.220.0070.00715.84
7.1.210.0030.00915.78
7.1.200.0070.00315.93
7.1.190.0030.01315.86
7.1.180.0070.01015.70
7.1.170.0060.00315.68
7.1.160.0090.00315.63
7.1.150.0070.01015.57
7.1.140.0000.01315.97
7.1.130.0050.00515.84
7.1.120.0000.01715.66
7.1.110.0040.00815.55
7.1.100.0000.01215.86
7.1.90.0110.00415.85
7.1.80.0060.00915.86
7.1.70.0060.00615.86
7.1.60.0040.01215.95
7.1.50.0060.00315.98
7.1.40.0070.00715.92
7.1.30.0080.00415.86
7.1.20.0070.00715.77
7.1.10.0030.00915.63
7.1.00.0100.00315.78

preferences:
27.83 ms | 403 KiB | 5 Q