3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nested = array( 'key' => 'val', 'key1' => array( 'subkey' => 'subval', 'subkey1' => 'subval1' ), 'key2' => array('a', 'b', 'c', 'd'), '2D_collection_5' => array( array( 'id' => 1, 'name' => 'lorem', 'categoryId' => 5, 'date' => '2013.07.08' ), array( 'id' => 2, 'name' => 'ipsum', 'categoryId' => 3, 'date' => '2013.07.07' ), array( 'id' => 5, 'name' => 'dolor', 'categoryId' => 1, 'date' => '2012.07.08' ), array( 'id' => 6, 'name' => 'sit', 'categoryId' => 3, 'date' => '2013.12.08' ), array( 'id' => 9, 'name' => 'amet', 'categoryId' => 5, 'date' => '2013.10.14' ) ), '2D_collection_5_named' => array( 'lorem' => array( 'id' => 1, 'name' => 'lorem', 'categoryId' => 5, 'date' => '2013.07.08' ), 'ipsum' => array( 'id' => 2, 'name' => 'ipsum', 'categoryId' => 3, 'date' => '2013.07.07' ), 'dolor' => array( 'id' => 5, 'name' => 'dolor', 'categoryId' => 1, 'date' => '2012.07.08' ), 'sit' => array( 'id' => 6, 'name' => 'sit', 'categoryId' => 3, 'date' => '2013.12.08' ), 'amet' => array( 'id' => 9, 'name' => 'amet', 'categoryId' => 5, 'date' => '2013.10.14' ) ) ); echo http_build_query($nested);

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.70.0150.00618.15
8.3.60.0070.00718.31
8.3.50.0130.00521.99
8.3.40.0070.00718.67
8.3.30.0070.00719.08
8.3.20.0050.00320.16
8.3.10.0080.00020.53
8.3.00.0000.00819.13
8.2.180.0150.00016.75
8.2.170.0070.01322.96
8.2.160.0050.00920.39
8.2.150.0000.00724.18
8.2.140.0090.00624.66
8.2.130.0030.00626.16
8.2.120.0040.00422.05
8.2.110.0090.00022.11
8.2.100.0090.00317.85
8.2.90.0050.00318.09
8.2.80.0080.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0030.00518.10
8.2.40.0000.00818.03
8.2.30.0040.00421.10
8.2.20.0040.00417.66
8.2.10.0040.00417.84
8.2.00.0000.00717.52
8.1.280.0070.01425.92
8.1.270.0030.00622.19
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00023.83
8.1.230.0030.01020.73
8.1.220.0050.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0050.00322.02
8.1.150.0000.00818.72
8.1.140.0100.00017.38
8.1.130.0030.00317.77
8.1.120.0040.00417.41
8.1.110.0000.00917.42
8.1.100.0040.00417.44
8.1.90.0070.00017.30
8.1.80.0000.00817.37
8.1.70.0070.00017.38
8.1.60.0060.00317.51
8.1.50.0060.00317.47
8.1.40.0050.00317.39
8.1.30.0050.00317.54
8.1.20.0040.00417.55
8.1.10.0040.00417.49
8.1.00.0000.00717.41
8.0.300.0030.00621.91
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0040.00417.21
8.0.260.0060.00017.26
8.0.250.0030.00316.96
8.0.240.0000.00716.82
8.0.230.0030.00316.79
8.0.220.0000.00716.85
8.0.210.0000.00716.89
8.0.200.0030.00316.75
8.0.190.0060.00316.85
8.0.180.0040.00416.89
8.0.170.0040.00416.73
8.0.160.0040.00416.76
8.0.150.0070.00016.67
8.0.140.0000.00716.80
8.0.130.0030.00313.18
8.0.120.0000.00816.78
8.0.110.0050.00216.80
8.0.100.0040.00416.77
8.0.90.0000.00716.89
8.0.80.0120.00616.83
8.0.70.0000.00716.71
8.0.60.0040.00416.70
8.0.50.0020.00516.81
8.0.30.0140.00717.17
8.0.20.0100.00917.40
8.0.10.0040.00416.85
8.0.00.0130.00516.51
7.4.330.0000.00515.00
7.4.320.0030.00316.36
7.4.300.0080.00016.52
7.4.290.0070.00016.36
7.4.280.0040.00416.32
7.4.270.0030.00316.45
7.4.260.0030.00616.41
7.4.250.0070.00016.39
7.4.240.0020.00516.54
7.4.230.0030.00316.41
7.4.220.0100.00716.30
7.4.210.0060.01316.47
7.4.200.0070.00016.28
7.4.160.0060.00916.66
7.4.150.0070.01017.40
7.4.140.0150.00317.86
7.4.130.0080.00816.52
7.4.120.0140.00816.36
7.4.110.0110.00816.49
7.4.100.0100.00716.54
7.4.90.0100.00716.42
7.4.80.0030.01519.39
7.4.70.0060.01316.36
7.4.60.0130.01016.49
7.4.50.0040.00416.53
7.4.40.0040.01316.25
7.4.30.0090.00616.18
7.4.00.0060.00814.86
7.3.330.0030.00313.11
7.3.320.0020.00213.03
7.3.310.0070.00016.23
7.3.300.0000.00716.17
7.3.290.0100.01016.10
7.3.280.0070.00816.15
7.3.270.0140.00317.40
7.3.260.0060.01016.07
7.3.250.0050.01216.39
7.3.240.0100.00716.08
7.3.230.0070.01016.39
7.3.210.0040.01416.14
7.3.200.0100.00719.39
7.3.190.0100.00616.46
7.3.180.0030.01316.08
7.3.170.0060.01116.36
7.3.160.0030.01216.22
7.3.120.0060.01214.67
7.3.110.0110.00514.53
7.3.100.0080.00914.80
7.3.90.0070.00714.85
7.3.80.0050.00614.88
7.3.70.0050.00614.59
7.3.60.0080.00614.71
7.3.50.0070.00714.53
7.3.40.0060.00514.46
7.3.30.0010.00814.38
7.3.20.0100.00516.51
7.3.10.0080.00516.50
7.3.00.0050.01116.64
7.2.330.0140.00316.59
7.2.320.0130.01016.22
7.2.310.0220.00016.59
7.2.300.0130.01016.63
7.2.290.0100.00616.20
7.2.250.0030.01214.76
7.2.240.0120.00714.90
7.2.230.0070.01214.92
7.2.220.0080.00914.87
7.2.210.0020.01414.83
7.2.200.0050.00714.95
7.2.190.0060.00314.89
7.2.180.0060.00714.74
7.2.170.0050.00914.63
7.2.160.0080.00614.72
7.2.150.0050.00916.80
7.2.140.0030.01016.68
7.2.130.0070.00616.59
7.2.120.0100.00716.81
7.2.110.0070.00716.77
7.2.100.0060.00816.74
7.2.90.0100.00216.66
7.2.80.0100.00516.63
7.2.70.0080.00816.73
7.2.60.0060.00816.72
7.2.50.0030.00916.73
7.2.40.0030.00716.79
7.2.30.0080.00816.78
7.2.20.0000.01316.80
7.2.10.0090.00516.62
7.2.00.0100.00516.65
7.1.330.0080.01015.66
7.1.320.0050.01015.83
7.1.310.0060.00515.79
7.1.300.0050.00415.73
7.1.290.0060.00715.64
7.1.280.0050.00515.78
7.1.270.0030.01115.61
7.1.260.0030.00815.66
7.1.250.0050.01015.82
7.1.240.0070.01015.74
7.1.230.0030.00915.56
7.1.220.0040.01215.58
7.1.210.0090.00615.75
7.1.200.0060.00715.68
7.1.190.0030.01015.38
7.1.180.0100.00015.55
7.1.170.0060.00915.56
7.1.160.0040.01015.73
7.1.150.0090.00615.57
7.1.140.0000.01015.68
7.1.130.0060.00615.65
7.1.120.0060.00315.59
7.1.110.0040.00415.81
7.1.100.0050.00315.56
7.1.90.0030.00615.91
7.1.80.0030.00515.54
7.1.70.0090.00516.36
7.1.60.0080.01117.66
7.1.50.0110.00716.16
7.1.40.0130.00315.44
7.1.30.0030.00615.63
7.1.20.0000.01315.42
7.1.10.0030.00815.76
7.1.00.0070.03919.01
7.0.330.0070.00315.40
7.0.320.0050.00515.44
7.0.310.0060.00915.13
7.0.300.0090.00615.45
7.0.290.0000.01315.27
7.0.280.0070.00715.30
7.0.270.0000.00915.49
7.0.260.0030.00615.05
7.0.250.0000.01115.42
7.0.240.0060.01115.54
7.0.230.0030.00915.59
7.0.220.0090.00315.21
7.0.210.0040.00415.39
7.0.200.0490.00515.08
7.0.190.0090.00615.53
7.0.180.0100.00715.51
7.0.170.0030.01015.29
7.0.160.0030.00615.33
7.0.150.0100.00015.42
7.0.140.0070.03818.79
7.0.130.0110.00315.20
7.0.120.0030.00615.33
7.0.110.0000.01015.11
7.0.100.0070.00715.38
7.0.90.0070.00715.46
7.0.80.0030.00715.28
7.0.70.0030.00715.45
7.0.60.0020.04517.69
7.0.50.0060.04116.61
7.0.40.0050.02516.79
7.0.30.0250.04516.83
7.0.20.0180.04216.82
7.0.10.0100.04316.70
7.0.00.0050.02616.59
5.6.400.0030.00614.44
5.6.390.0100.00314.45
5.6.380.0080.00314.40
5.6.370.0030.01314.30
5.6.360.0030.00714.20
5.6.350.0100.00314.09
5.6.340.0070.00314.27
5.6.330.0130.00014.08
5.6.320.0040.00814.39
5.6.310.0060.00914.18
5.6.300.0030.01014.52
5.6.290.0070.00714.26
5.6.280.0080.04017.59
5.6.270.0030.01014.54
5.6.260.0090.00614.36
5.6.250.0070.00314.18
5.6.240.0040.01114.21
5.6.230.0070.00714.34
5.6.220.0030.01014.43
5.6.210.0050.04517.32
5.6.200.0030.02816.21
5.6.190.0050.05117.47
5.6.180.0280.04417.41
5.6.170.0150.03517.35
5.6.160.0120.03817.36
5.6.150.0020.03916.35
5.6.140.0100.03416.21
5.6.130.0080.04216.32
5.6.120.0070.03817.54
5.6.110.0110.04217.62
5.6.100.0060.02317.70
5.6.90.0030.03317.75
5.6.80.0030.02917.20
5.6.70.0030.01514.15
5.6.60.0060.00314.36
5.6.50.0070.00714.22
5.6.40.0040.00813.98
5.6.30.0040.00714.21
5.6.20.0000.01514.42
5.6.10.0040.00814.03
5.6.00.0140.00314.23
5.5.380.0030.00614.23
5.5.370.0060.00614.41
5.5.360.0000.00914.30
5.5.350.0120.04317.19
5.5.340.0050.04316.05
5.5.330.0020.02817.26
5.5.320.0150.02517.15
5.5.310.0170.03817.07
5.5.300.0020.02916.29
5.5.290.0070.03016.03
5.5.280.0030.04717.26
5.5.270.0060.02817.55
5.5.260.0130.04017.52
5.5.250.0110.02617.29
5.5.240.0120.04117.14
5.5.230.0030.00914.08
5.5.220.0040.00813.97
5.5.210.0100.00314.21
5.5.200.0080.00414.40
5.5.190.0060.00613.88
5.5.180.0030.00914.15
5.5.170.0070.00714.20
5.5.160.0000.01414.21
5.5.150.0030.00914.11
5.5.140.0060.00614.30
5.5.130.0000.01414.15
5.5.120.0070.00713.95
5.5.110.0000.01214.03
5.5.100.0030.00614.28
5.5.90.0070.00314.11
5.5.80.0060.00614.30
5.5.70.0070.00314.13
5.5.60.0090.00413.98
5.5.50.0100.00314.22
5.5.40.0040.01114.29
5.5.30.0030.00614.01
5.5.20.0000.01614.15
5.5.10.0000.01513.86
5.5.00.0070.00714.10
5.4.450.0170.02815.17
5.4.440.0120.02115.39
5.4.430.0170.04015.38
5.4.420.0130.02215.38
5.4.410.0270.01715.09
5.4.400.0150.02915.07
5.4.390.0180.04015.06
5.4.380.0210.02015.22
5.4.370.0170.04015.22
5.4.360.0140.03315.18
5.4.350.0150.02515.14
5.4.340.0210.03315.00
5.4.330.0060.00011.20
5.4.320.0200.03415.13
5.4.310.0130.03015.17
5.4.300.0170.03215.15
5.4.290.0180.02715.14
5.4.280.0130.03315.06
5.4.270.0130.02315.16
5.4.260.0150.03715.18
5.4.250.0160.02315.14
5.4.240.0120.02715.13
5.4.230.0130.02515.13
5.4.220.0190.03715.00
5.4.210.0250.02415.18
5.4.200.0220.03315.13
5.4.190.0190.01815.04
5.4.180.0130.02315.20
5.4.170.0110.02115.14
5.4.160.0160.01915.14
5.4.150.0100.02215.03
5.4.140.0080.02313.70
5.4.130.0080.02213.72
5.4.120.0020.02213.71
5.4.110.0350.01813.81
5.4.100.0100.02213.71
5.4.90.0150.01713.82
5.4.80.0120.02513.75
5.4.70.0080.02313.82
5.4.60.0150.01813.84
5.4.50.0120.01913.79
5.4.40.0120.01913.79
5.4.30.0080.02313.70
5.4.20.0140.01713.78
5.4.10.0120.01913.70
5.4.00.0140.02113.46
5.3.290.0300.05714.53
5.3.280.0430.05714.47
5.3.270.0200.04314.61
5.3.260.0170.04014.46
5.3.250.0170.04014.47
5.3.240.0200.03314.57
5.3.230.0170.03314.71
5.3.220.0100.04714.42
5.3.210.1570.03314.61
5.3.200.0200.03314.44
5.3.190.0170.03714.52
5.3.180.0130.04014.53
5.3.170.0200.03314.61
5.3.160.0170.03714.42
5.3.150.0270.02714.53
5.3.140.0270.03314.41
5.3.130.0130.04014.50
5.3.120.0270.03314.54
5.3.110.0130.04314.43
5.3.100.0270.03313.88
5.3.90.0200.04013.98
5.3.80.0270.02714.13
5.3.70.0200.03313.82
5.3.60.0200.03713.85
5.3.50.0270.03013.81
5.3.40.0170.03713.81
5.3.30.0200.04013.95
5.3.20.0200.03313.66
5.3.10.0230.03713.72
5.3.00.0270.04013.70
5.2.170.0270.02711.08
5.2.160.0200.02711.02
5.2.150.0170.02711.01
5.2.140.0170.02711.01
5.2.130.0230.03311.07
5.2.120.0170.04010.96
5.2.110.0200.04311.14
5.2.100.0230.05310.98
5.2.90.0230.02010.97
5.2.80.0270.05311.21
5.2.70.0200.03010.95
5.2.60.0170.03010.93
5.2.50.0230.05311.08
5.2.40.0200.06010.86
5.2.30.0100.04010.84
5.2.20.0130.03310.92
5.2.10.0170.03010.97
5.2.00.0200.03010.78
5.1.60.0270.02710.06
5.1.50.0170.02710.15
5.1.40.0270.03010.08
5.1.30.0130.04310.32
5.1.20.0300.04310.45
5.1.10.0170.05710.05
5.1.00.0200.05310.16
5.0.50.0070.05010.05
5.0.40.0130.03710.05
5.0.30.0070.06710.05
5.0.20.0130.04710.05
5.0.10.0070.03710.05
5.0.00.0100.06310.05
4.4.90.0070.03010.05
4.4.80.0100.03310.05
4.4.70.0100.01310.05
4.4.60.0130.03310.05
4.4.50.0070.03310.05
4.4.40.0030.03310.05
4.4.30.0130.01310.05
4.4.20.0100.03010.05
4.4.10.0130.02310.05
4.4.00.0030.05310.05
4.3.110.0070.02310.05
4.3.100.0100.01710.05
4.3.90.0170.02310.05
4.3.80.0100.02710.05
4.3.70.0070.01710.05
4.3.60.0170.02710.05
4.3.50.0100.03310.05
4.3.40.0070.04010.05
4.3.30.0070.03310.05
4.3.20.0030.02710.05
4.3.10.0070.02010.05
4.3.00.0030.01710.05

preferences:
32.17 ms | 401 KiB | 5 Q