3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cat = '-1'; $dog = '1'; $otherKey = 'greeting'; $content1 = 'hi mom'; $content2 = 'hi dad'; $someArray = array(); $someArray[$cat][$otherKey][] = $content1; $someArray[$dog][$otherKey][] = $content1; var_dump($someArray);

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.0060.01218.30
8.3.50.0090.01121.93
8.3.40.0070.00718.71
8.3.30.0100.01019.07
8.3.20.0000.00820.38
8.3.10.0000.00823.58
8.3.00.0160.00019.22
8.2.180.0160.00318.29
8.2.170.0070.00722.96
8.2.160.0030.01320.37
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0170.00326.16
8.2.120.0080.00019.38
8.2.110.0060.00322.33
8.2.100.0080.00419.52
8.2.90.0000.00719.08
8.2.80.0040.00417.97
8.2.70.0020.00917.50
8.2.60.0000.01017.80
8.2.50.0090.00018.07
8.2.40.0090.00019.95
8.2.30.0080.00018.13
8.2.20.0000.00717.66
8.2.10.0040.00418.07
8.2.00.0090.00017.49
8.1.280.0180.00025.92
8.1.270.0000.00822.17
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0040.00422.09
8.1.230.0000.01218.91
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0090.00617.35
8.1.190.0040.00416.88
8.1.180.0060.00318.10
8.1.170.0090.00018.59
8.1.160.0000.00821.90
8.1.150.0040.00418.57
8.1.140.0060.00317.33
8.1.130.0000.00817.74
8.1.120.0040.00317.30
8.1.110.0020.00517.29
8.1.100.0000.00717.28
8.1.90.0000.00817.32
8.1.80.0000.00717.45
8.1.70.0000.00817.37
8.1.60.0040.00417.57
8.1.50.0050.00317.40
8.1.40.0080.00017.36
8.1.30.0000.00917.64
8.1.20.0080.00017.59
8.1.10.0040.00417.30
8.1.00.0000.00717.27
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.29
8.0.270.0030.00517.20
8.0.260.0000.00617.07
8.0.250.0030.00316.91
8.0.240.0040.00416.91
8.0.230.0070.00016.93
8.0.220.0000.00716.78
8.0.210.0050.00316.81
8.0.200.0060.00016.86
8.0.190.0000.00716.79
8.0.180.0070.00016.76
8.0.170.0030.00516.91
8.0.160.0080.00016.87
8.0.150.0000.00716.78
8.0.140.0050.00316.82
8.0.130.0000.00513.22
8.0.120.0050.00316.84
8.0.110.0070.00016.85
8.0.100.0070.00016.88
8.0.90.0040.00416.63
8.0.80.0130.00716.80
8.0.70.0050.00216.64
8.0.60.0040.00416.86
8.0.50.0040.00416.82
8.0.30.0080.01216.82
8.0.20.0140.00517.40
8.0.10.0050.00316.96
8.0.00.0050.01216.71
7.4.330.0030.00315.00
7.4.320.0060.00016.54
7.4.300.0030.00316.51
7.4.290.0040.00516.44
7.4.280.0000.00716.48
7.4.270.0000.00716.40
7.4.260.0080.00016.44
7.4.250.0000.00716.50
7.4.240.0030.00316.51
7.4.230.0000.00716.37
7.4.220.0090.01616.43
7.4.210.0120.00316.41
7.4.200.0020.00516.63
7.4.160.0120.00916.36
7.4.150.0120.00617.40
7.4.140.0130.01017.86
7.4.130.0080.00816.42
7.4.120.0090.00916.39
7.4.110.0150.00816.39
7.4.100.0060.01216.32
7.4.90.0090.00916.35
7.4.80.0130.00619.39
7.4.70.0140.00716.20
7.4.60.0100.01316.42
7.4.50.0000.00616.58
7.4.40.0130.00316.36
7.4.30.0120.00916.58
7.4.00.0060.00614.64
7.3.330.0000.00513.20
7.3.320.0000.00513.20
7.3.310.0050.00216.26
7.3.300.0030.00316.25
7.3.290.0060.00916.29
7.3.280.0100.00716.25
7.3.270.0090.00917.40
7.3.260.0180.00916.20
7.3.250.0090.00816.41
7.3.240.0110.00616.32
7.3.230.0160.00316.39
7.3.210.0120.00916.27
7.3.200.0030.01819.39
7.3.190.0160.00716.25
7.3.180.0100.00616.25
7.3.170.0100.00716.40
7.3.160.0090.00816.32
7.3.120.0030.01314.96
7.3.10.0060.00616.61
7.3.00.0630.00516.47
7.2.330.0060.01216.75
7.2.320.0070.01316.55
7.2.310.0100.01316.50
7.2.300.0090.01316.44
7.2.290.0100.00716.39
7.2.130.0100.00916.71
7.2.120.0120.00616.63
7.2.110.0070.01116.36
7.2.100.0090.00616.66
7.2.90.0100.00816.73
7.2.80.0080.01016.73
7.2.70.0060.01116.68
7.2.60.0030.01216.75
7.2.50.0120.00316.80
7.2.40.0110.00616.75
7.2.30.0090.01016.65
7.2.20.0060.01016.76
7.2.10.0050.01016.89
7.2.00.0050.00917.46
7.1.250.0100.00815.81
7.1.240.0110.00915.45
7.1.230.0070.00715.48
7.1.220.0150.00915.68
7.1.210.0000.00815.62
7.1.200.0120.00915.41
7.1.190.0100.01015.47
7.1.180.0120.00915.70
7.1.170.0100.01015.79
7.1.160.0170.00315.35
7.1.150.0070.01415.81
7.1.140.0140.00715.56
7.1.130.0070.01015.77
7.1.120.0060.00915.69
7.1.110.0170.00015.55
7.1.100.0060.00916.75
7.1.90.0040.01115.46
7.1.80.0080.00815.79
7.1.70.0080.00516.40
7.1.60.0150.00617.79
7.1.50.0080.01216.34
7.1.40.0120.00415.52
7.1.30.0140.00315.72
7.1.20.0110.00715.77
7.1.10.0060.00915.92
7.1.00.0070.04218.86
7.0.330.0150.00415.01
7.0.320.0460.01015.52
7.0.310.0130.00815.16
7.0.300.0070.01315.29
7.0.290.0080.00815.16
7.0.280.0120.01315.27
7.0.270.0120.00415.02
7.0.260.0170.00315.17
7.0.250.0120.00615.39
7.0.240.0140.00415.54
7.0.230.0140.00315.55
7.0.220.0130.00615.18
7.0.210.0080.00515.45
7.0.200.0070.00715.81
7.0.190.0160.00415.40
7.0.180.0110.00715.11
7.0.170.0110.00615.32
7.0.160.0130.00315.39
7.0.150.0130.00315.39
7.0.140.0050.04218.80
7.0.130.0130.00715.34
7.0.120.0120.00315.53
7.0.110.0100.00615.37
7.0.100.0050.02717.56
7.0.90.0070.02817.65
7.0.80.0090.04317.40
7.0.70.0120.02317.64
7.0.60.0080.05017.61
7.0.50.0090.03017.83
7.0.40.0100.04216.60
7.0.30.0090.04216.68
7.0.20.0050.04816.55
7.0.10.0080.02716.77
7.0.00.0020.02816.80
5.6.380.0030.00914.30
5.6.370.0130.00814.70
5.6.360.0110.00613.84
5.6.350.0140.00814.33
5.6.340.0130.00613.84
5.6.330.0080.01114.24
5.6.320.0060.01714.56
5.6.310.0090.00914.14
5.6.300.0040.00714.27
5.6.290.0030.01014.18
5.6.280.0060.03817.68
5.6.270.0040.00414.04
5.6.260.0060.00614.43
5.6.250.0070.04117.46
5.6.240.0080.03717.34
5.6.230.0050.04517.52
5.6.220.0050.03317.36
5.6.210.0080.04117.56
5.6.200.0050.02517.61
5.6.190.0080.04017.68
5.6.180.0020.03417.70
5.6.170.0070.03317.59
5.6.160.0130.02017.59
5.6.150.0060.02917.59
5.6.140.0080.04617.70
5.6.130.0050.03117.63
5.6.120.0050.02517.56
5.6.110.0020.02817.60
5.6.100.0080.02317.55
5.6.90.0090.02217.70
5.6.80.0020.02617.20
5.6.70.0030.02417.21
5.6.60.0070.02017.24
5.6.50.0050.02717.32
5.6.40.0060.02517.33
5.6.30.0070.01817.13
5.6.20.0070.02517.29
5.6.10.0040.02417.26
5.6.00.0030.02617.27
5.5.380.0100.03015.74
5.5.370.0050.03815.77
5.5.360.0020.04715.78
5.5.350.0030.04115.78
5.5.340.0070.04216.00
5.5.330.0050.04516.02
5.5.320.0100.03215.97
5.5.310.0070.04115.97
5.5.300.0030.03615.99
5.5.290.0020.04615.95
5.5.280.0080.02516.02
5.5.270.0100.01816.04
5.5.260.0070.02316.02
5.5.250.0050.02215.88
5.5.240.0030.02315.68
5.5.230.0020.02615.63
5.5.220.0000.02715.66
5.5.210.0030.02515.67
5.5.200.0050.02115.69
5.5.190.0050.02415.70
5.5.180.0030.02315.55
5.5.170.0060.00611.18
5.5.160.0030.02315.67
5.5.150.0080.02015.69
5.5.140.0040.01815.62
5.5.130.0060.02015.60
5.5.120.0000.02415.67
5.5.110.0040.02415.64
5.5.100.0060.02015.54
5.5.90.0060.02315.59
5.5.80.0020.02715.59
5.5.70.0020.02215.60
5.5.60.0080.02115.58
5.5.50.0050.02015.58
5.5.40.0080.01915.54
5.5.30.0070.02015.59
5.5.20.0060.02115.57
5.5.10.0080.02315.58
5.5.00.0060.02515.54
5.4.450.0070.02815.20
5.4.440.0060.02615.16
5.4.430.0010.02315.23
5.4.420.0070.01715.27
5.4.410.0060.02015.26
5.4.400.0080.01615.13
5.4.390.0050.02015.12
5.4.380.0020.02414.99
5.4.370.0060.02115.10
5.4.360.0070.02415.14
5.4.350.0060.01815.15
5.4.340.0060.02115.12
5.4.330.0030.00311.18
5.4.320.0070.01815.16
5.4.310.0010.02315.07
5.4.300.0030.02115.01
5.4.290.0050.02215.13
5.4.280.0030.02214.99
5.4.270.0000.02415.08
5.4.260.0040.02015.14
5.4.250.0030.02015.10
5.4.240.0060.02215.11
5.4.230.0030.02715.19
5.4.220.0060.01815.11
5.4.210.0080.01815.03
5.4.200.0100.01414.99
5.4.190.0050.02015.10
5.4.180.0040.02115.10
5.4.170.0050.02515.14
5.4.160.0030.02015.13
5.4.150.0070.01815.13
5.4.140.0030.02213.73
5.4.130.0020.02613.76
5.4.120.0070.04413.74
5.4.110.0020.02313.80
5.4.100.0090.03413.69
5.4.90.0100.03713.81
5.4.80.0100.03313.79
5.4.70.0130.02713.70
5.4.60.0080.02013.75
5.4.50.0110.01813.74
5.4.40.0080.03813.70
5.4.30.0070.03713.70
5.4.20.0070.02713.78
5.4.10.0100.03513.70
5.4.00.0080.03813.47
5.3.290.0020.02912.90
5.3.280.0050.02312.88
5.3.270.0000.02512.88
5.3.260.0100.01912.89
5.3.250.0040.02112.80
5.3.240.0040.01812.82
5.3.230.0020.02812.86
5.3.220.0060.01912.78
5.3.210.0110.01712.84
5.3.200.0040.02012.83
5.3.190.0070.03712.87
5.3.180.0100.04012.86
5.3.170.0050.02412.87
5.3.160.0050.03812.86
5.3.150.0060.03712.86
5.3.140.0040.04012.79
5.3.130.0100.03512.78
5.3.120.0080.02412.79
5.3.110.0060.03012.84
5.3.100.0110.03112.61
5.3.90.0070.02712.56
5.3.80.0110.02112.59
5.3.70.0100.03612.48
5.3.60.0060.02612.52
5.3.50.0080.03612.44
5.3.40.0050.04012.44
5.3.30.0070.03512.54
5.3.20.0030.04012.41
5.3.10.0030.02912.39
5.3.00.0030.03512.34
5.2.170.0080.03011.13
5.2.160.0030.02611.18
5.2.150.0030.03311.12
5.2.140.0030.02911.13
5.2.130.0030.02011.14
5.2.120.0050.03011.07
5.2.110.0080.01511.13
5.2.100.0030.02311.13
5.2.90.0070.02811.06
5.2.80.0030.03611.06
5.2.70.0020.03611.13
5.2.60.0050.03211.02
5.2.50.0050.03311.10
5.2.40.0030.03110.99
5.2.30.0060.02710.99
5.2.20.0070.02511.10
5.2.10.0030.03311.05
5.2.00.0030.03010.98
5.1.60.0070.02310.50
5.1.50.0020.02710.58
5.1.40.0000.03010.56
5.1.30.0040.01710.72
5.1.20.0050.03310.79
5.1.10.0030.02010.63
5.1.00.0020.02910.63
5.0.50.0050.0239.89
5.0.40.0000.0239.79
5.0.30.0050.0319.71
5.0.20.0030.0249.60
5.0.10.0050.0219.67
5.0.00.0030.0189.67
4.4.90.0000.0229.43
4.4.80.0040.0179.43
4.4.70.0050.0139.43
4.4.60.0000.0209.43
4.4.50.0000.0199.43
4.4.40.0000.0239.43
4.4.30.0030.0159.43
4.4.20.0020.0189.43
4.4.10.0020.0179.43
4.4.00.0050.0219.43
4.3.110.0040.0179.43
4.3.100.0020.0169.43
4.3.90.0000.0159.43
4.3.80.0050.0189.43
4.3.70.0020.0179.43
4.3.60.0030.0229.43
4.3.50.0020.0159.43
4.3.40.0040.0259.43
4.3.30.0000.0229.43
4.3.20.0030.0199.43
4.3.10.0030.0129.43
4.3.00.0030.0159.43

preferences:
45.88 ms | 401 KiB | 5 Q