3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Assigning values to a multidimensional array, new key has to be put * in the first position of the array expression, for example, */ $foo = array(); $foo['foo'] = 'hello'; // Wrong key order // $foo['foo']['bar'] = 'world'; // Right key order $foo['bar']['foo'] = 'world'; print_r($foo); ?>

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.00918.43
8.3.50.0130.00322.13
8.3.40.0070.00718.67
8.3.30.0070.01019.04
8.3.20.0070.00020.20
8.3.10.0000.00821.97
8.3.00.0000.00822.32
8.2.180.0130.00616.75
8.2.170.0100.00722.96
8.2.160.0030.01220.77
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.38
8.2.110.0030.00620.32
8.2.100.0080.00417.91
8.2.90.0000.00819.08
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0050.00518.03
8.2.50.0000.00918.07
8.2.40.0030.00518.22
8.2.30.0000.00718.04
8.2.20.0070.00017.54
8.2.10.0050.00319.39
8.2.00.0000.00717.68
8.1.280.0030.01425.92
8.1.270.0000.00822.03
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0030.00917.62
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00617.40
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0000.00722.00
8.1.150.0050.00318.68
8.1.140.0000.00717.30
8.1.130.0040.00417.83
8.1.120.0040.00417.41
8.1.110.0000.00717.46
8.1.100.0040.00417.40
8.1.90.0040.00417.33
8.1.80.0030.00317.37
8.1.70.0040.00417.33
8.1.60.0030.00617.56
8.1.50.0060.00317.32
8.1.40.0040.00517.44
8.1.30.0040.00417.43
8.1.20.0040.00417.63
8.1.10.0000.00717.53
8.1.00.0080.00017.49
8.0.300.0000.00818.77
8.0.290.0070.00016.58
8.0.280.0000.00718.39
8.0.270.0070.00017.16
8.0.260.0070.00016.66
8.0.250.0030.00316.92
8.0.240.0030.00316.85
8.0.230.0070.00016.93
8.0.220.0040.00416.83
8.0.210.0070.00016.82
8.0.200.0040.00416.95
8.0.190.0040.00416.94
8.0.180.0070.00016.75
8.0.170.0040.00416.74
8.0.160.0050.00216.79
8.0.150.0000.00716.77
8.0.140.0000.00716.81
8.0.130.0000.00513.30
8.0.120.0040.00416.72
8.0.110.0000.00716.77
8.0.100.0000.00816.88
8.0.90.0000.00716.86
8.0.80.0120.00916.88
8.0.70.0050.00316.86
8.0.60.0000.00716.66
8.0.50.0000.00716.84
8.0.30.0110.00816.74
8.0.20.0120.01017.40
8.0.10.0000.00816.93
8.0.00.0140.00716.63
7.4.330.0000.00515.00
7.4.320.0000.00616.34
7.4.300.0030.00316.30
7.4.290.0030.00316.59
7.4.280.0040.00716.54
7.4.270.0030.00316.39
7.4.260.0000.00716.48
7.4.250.0040.00416.50
7.4.240.0040.00316.47
7.4.230.0030.00316.45
7.4.220.0100.00716.62
7.4.210.0080.00616.49
7.4.200.0030.00316.29
7.4.190.0020.00516.37
7.4.160.0090.01216.52
7.4.150.0170.00017.40
7.4.140.0040.01417.86
7.4.130.0130.00516.26
7.4.120.0070.01316.50
7.4.110.0060.01016.39
7.4.100.0100.00616.39
7.4.90.0140.01016.45
7.4.80.0150.00719.39
7.4.70.0070.01016.37
7.4.60.0090.00616.36
7.4.50.0000.00416.58
7.4.40.0090.00922.77
7.4.30.0090.00616.50
7.4.00.0040.01314.87
7.3.330.0030.00312.88
7.3.320.0020.00212.92
7.3.310.0070.00016.06
7.3.300.0030.00316.11
7.3.290.0060.01216.18
7.3.280.0040.01316.18
7.3.270.0090.01217.40
7.3.260.0140.00316.12
7.3.250.0100.00816.27
7.3.240.0110.00816.27
7.3.230.0060.01016.39
7.3.210.0070.01016.41
7.3.200.0070.01619.39
7.3.190.0090.01316.60
7.3.180.0000.01716.12
7.3.170.0000.02016.50
7.3.160.0060.00916.25
7.3.120.0050.01114.84
7.3.110.0100.00214.62
7.3.100.0030.01014.75
7.3.90.0080.00614.73
7.3.80.0050.00814.69
7.3.70.0070.00514.68
7.3.60.0040.00814.87
7.3.50.0020.01114.80
7.3.40.0060.00614.56
7.3.30.0060.00814.57
7.3.20.0090.00516.68
7.3.10.0060.00916.60
7.3.00.0060.00716.37
7.2.330.0030.01316.55
7.2.320.0120.01216.50
7.2.310.0030.01316.66
7.2.300.0030.01316.39
7.2.290.0160.00016.33
7.2.250.0030.01515.00
7.2.240.0050.01515.03
7.2.230.0100.00814.73
7.2.220.0020.01214.92
7.2.210.0020.01114.74
7.2.200.0060.00814.89
7.2.190.0080.00514.93
7.2.180.0060.00814.95
7.2.170.0020.01215.06
7.2.130.0050.00916.79
7.2.120.0070.00716.91
7.2.110.0080.00616.66
7.2.100.0040.01216.66
7.2.90.0040.00916.78
7.2.80.0090.00316.72
7.2.70.0090.00616.91
7.2.60.0020.01016.63
7.2.50.0090.00416.85
7.2.40.0100.00316.78
7.2.30.0020.01216.74
7.2.20.0070.00616.48
7.2.10.0090.00516.77
7.2.00.0060.00617.63
7.1.330.0070.00715.83
7.1.320.0060.00915.54
7.1.310.0020.01015.82
7.1.300.0030.01215.72
7.1.290.0050.00915.74
7.1.280.0040.01115.60
7.1.270.0000.01315.83
7.1.260.0030.01015.80
7.1.250.0020.01115.79
7.1.240.0090.00015.46
7.1.230.0040.00715.44
7.1.220.0090.00615.47
7.1.210.0070.01015.73
7.1.200.0060.00715.66
7.1.190.0070.00715.73
7.1.180.0040.00415.68
7.1.170.0070.00715.89
7.1.160.0040.00915.48
7.1.150.0000.01315.59
7.1.140.0000.01415.77
7.1.130.0040.00815.60
7.1.120.0000.01215.63
7.1.110.0090.00615.86
7.1.100.0030.00615.49
7.1.90.0030.00915.75
7.1.80.0040.00815.93
7.1.70.0030.00716.50
7.1.60.0050.00716.39
7.1.50.0180.00625.16
7.1.40.0070.00715.77
7.1.30.0040.01115.48
7.1.20.0070.00715.76
7.1.10.0000.01215.75
7.1.00.0060.04019.11
7.0.330.0110.00415.25
7.0.320.0030.01015.37
7.0.310.0030.00915.41
7.0.300.0080.00315.32
7.0.290.0090.00014.94
7.0.280.0030.00915.25
7.0.270.0090.00315.32
7.0.260.0030.00715.31
7.0.250.0050.00415.17
7.0.240.0070.00715.22
7.0.230.0030.01015.07
7.0.220.0070.00315.41
7.0.210.0030.00715.18
7.0.200.0060.00615.93
7.0.190.0070.00315.23
7.0.180.0070.00415.20
7.0.170.0110.00415.31
7.0.160.0030.00715.18
7.0.150.0000.01015.26
7.0.140.0030.04118.61
7.0.130.0070.00715.16
7.0.120.0040.01115.25
7.0.110.0080.00415.00
7.0.100.0000.01115.21
7.0.90.0060.00314.97
7.0.80.0030.01215.08
7.0.70.0100.00315.23
7.0.60.0020.02617.63
7.0.50.0060.02316.48
7.0.40.0100.04616.75
7.0.30.0340.03716.75
7.0.20.0070.02816.69
7.0.10.0070.03216.86
7.0.00.0080.02316.57
5.6.380.0080.00014.54
5.6.370.0000.01414.57
5.6.360.0090.00014.51
5.6.350.0060.00913.98
5.6.340.0030.01014.00
5.6.330.0060.00314.29
5.6.320.0030.01014.30
5.6.310.0040.00714.45
5.6.300.0000.01314.27
5.6.290.0080.00414.23
5.6.280.0070.04517.69
5.6.270.0030.00914.34
5.6.260.0090.00314.32
5.6.250.0060.00614.34
5.6.240.0090.00614.03
5.6.230.0100.00314.06
5.6.220.0070.00714.02
5.6.210.0070.02217.26
5.6.200.0100.02316.16
5.6.190.0020.05217.51
5.6.180.0180.04017.31
5.6.170.0170.04317.29
5.6.160.0110.04517.25
5.6.150.0100.03316.13
5.6.140.0100.04016.21
5.6.130.0030.04616.17
5.6.120.0030.03117.56
5.6.110.0100.04317.51
5.6.100.0020.04817.50
5.6.90.0050.03317.46
5.6.80.0060.02817.04
5.6.70.2320.02517.24
5.6.60.0030.01214.07
5.6.50.0070.00714.45
5.6.40.0070.00714.40
5.6.30.0040.00814.09
5.6.20.0000.01214.42
5.6.10.0100.00714.07
5.6.00.0110.00314.03
5.5.380.0130.00011.07
5.5.370.0060.00611.14
5.5.360.0060.00011.00
5.5.350.0150.03515.73
5.5.340.0080.03814.50
5.5.330.0080.04015.70
5.5.320.0120.04715.56
5.5.310.0170.03215.75
5.5.300.0060.04314.46
5.5.290.0050.02214.46
5.5.280.0060.02315.94
5.5.270.0050.02315.86
5.5.260.0090.04215.91
5.5.250.0110.03815.84
5.5.240.0070.02615.68
5.5.230.0060.00311.00
5.5.220.0000.00611.00
5.5.210.0080.00011.00
5.5.200.0000.00811.15
5.5.190.0040.00811.11
5.5.180.0030.00611.10
5.5.170.0030.00611.00
5.5.160.0030.00911.15
5.5.150.0000.00911.00
5.5.140.0030.00911.00
5.5.130.0000.00711.23
5.5.120.0070.00311.00
5.5.110.0040.00411.07
5.5.100.0070.00311.09
5.5.90.0130.00011.00
5.5.80.0000.01211.09
5.5.70.0060.00611.00
5.5.60.0060.00611.02
5.5.50.0000.01211.00
5.5.40.0040.00711.05
5.5.30.0000.00911.00
5.5.20.0050.00311.05
5.5.10.0030.00611.00
5.5.00.0050.00511.05
5.4.450.0300.03215.28
5.4.440.0150.03415.30
5.4.430.0100.02815.31
5.4.420.0080.02715.23
5.4.410.0040.03214.98
5.4.400.0200.02714.79
5.4.390.0200.03714.86
5.4.380.0130.02614.88
5.4.370.0100.02714.79
5.4.360.0030.02314.79
5.4.350.0110.01711.49
5.4.340.0020.02511.48
5.4.330.0000.01011.00
5.4.320.0040.02111.73
5.4.310.0050.02211.73
5.4.300.0050.02411.73
5.4.290.0090.02211.73
5.4.280.0050.02311.67
5.4.270.0130.02515.01
5.4.260.0110.02615.07
5.4.250.0080.03015.03
5.4.240.0080.03814.99
5.4.230.0070.04214.91
5.4.220.0100.03314.94
5.4.210.0070.03215.03
5.4.200.0100.02815.03
5.4.190.0080.03814.87
5.4.180.0050.04015.00
5.4.170.0070.03515.03
5.4.160.0100.03715.06
5.4.150.0050.04114.99
5.4.140.0070.04213.79
5.4.130.0080.03513.64
5.4.120.0130.03813.64
5.4.110.0080.03813.80
5.4.100.0110.02613.67
5.4.90.0070.03313.77
5.4.80.0040.02913.65
5.4.70.0070.02813.74
5.4.60.0020.03413.67
5.4.50.0100.02513.76
5.4.40.0080.03513.76
5.4.30.0050.03513.78
5.4.20.0070.04013.73
5.4.10.0100.03513.71
5.4.00.0100.03613.41
5.3.290.0040.02511.90
5.3.280.0060.03812.85
5.3.270.0100.03712.88
5.3.260.0100.03012.88
5.3.250.0030.03712.79
5.3.240.0070.03912.90
5.3.230.0100.03012.79
5.3.220.0120.02712.77
5.3.210.0100.02612.87
5.3.200.0090.02512.86
5.3.190.0070.03212.87
5.3.180.0060.03312.80
5.3.170.0130.03212.87
5.3.160.0100.02812.82
5.3.150.0080.04012.78
5.3.140.0080.03012.88
5.3.130.0150.03612.77
5.3.120.0050.03012.83
5.3.110.0080.02912.79
5.3.100.0030.04112.42
5.3.90.0070.03712.54
5.3.80.0050.02612.45
5.3.70.0070.03912.50
5.3.60.0050.02812.59
5.3.50.0100.03512.51
5.3.40.0100.02812.51
5.3.30.0080.03012.51
5.3.20.0050.03912.34
5.3.10.0100.03112.36
5.3.00.0080.03012.34
5.2.170.0050.02811.15
5.2.160.0030.02511.15
5.2.150.0100.03310.97
5.2.140.0050.02711.12
5.2.130.0080.02511.08
5.2.120.0030.02711.11
5.2.110.0110.01811.11
5.2.100.0050.02611.17
5.2.90.0040.02511.11
5.2.80.0050.02511.11
5.2.70.0050.02611.12
5.2.60.0080.02211.02
5.2.50.0080.03010.92
5.2.40.0050.02511.11
5.2.30.0060.02111.04
5.2.20.0050.02210.88
5.2.10.0060.02010.95
5.2.00.0070.02510.88
5.1.60.0060.02610.65
5.1.50.0080.01910.63
5.1.40.0080.01710.63
5.1.30.0100.01510.74
5.1.20.0020.02310.78
5.1.10.0030.02410.63
5.1.00.0110.01310.65
5.0.50.0050.01610.63
5.0.40.0000.02010.63
5.0.30.0060.02010.63
5.0.20.0070.01710.63
5.0.10.0050.01610.63
5.0.00.0030.02210.63
4.4.90.0050.01510.63
4.4.80.0030.01410.63
4.4.70.0040.01210.63
4.4.60.0020.01510.63
4.4.50.0020.01410.63
4.4.40.0050.01810.63
4.4.30.0020.01210.63
4.4.20.0030.01910.63
4.4.10.0050.01710.63
4.4.00.0060.01710.63
4.3.110.0010.01510.63
4.3.100.0030.01310.63
4.3.90.0000.01410.63
4.3.80.0000.02610.63
4.3.70.0030.01510.63
4.3.60.0010.01510.63
4.3.50.0030.01310.63
4.3.40.0030.02010.63
4.3.30.0050.01110.63
4.3.20.0000.01710.63
4.3.10.0020.01310.63
4.3.00.0000.0139.14

preferences:
47.78 ms | 401 KiB | 5 Q