3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['$and'=> ['task.discriminator' => 'filippo', 'status.deleted' => 'asdf']]; $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr)); $keys = array(); foreach ($iterator as $key => $value) { // Build long key name based on parent keys for ($i = $iterator->getDepth() - 1; $i >= 0; $i--) { $key = $iterator->getSubIterator($i)->key() . '_' . $key; } $keys[] = $key; } var_export($keys);

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.0100.00718.68
8.3.60.0040.01216.88
8.3.50.0140.00722.11
8.3.40.0100.00718.71
8.3.30.0190.00318.76
8.3.20.0000.00722.09
8.3.10.0040.00421.77
8.3.00.0000.00723.69
8.2.190.0110.00716.58
8.2.180.0130.00718.54
8.2.170.0100.01022.96
8.2.160.0100.00719.46
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00022.07
8.2.120.0070.00026.35
8.2.110.0150.00322.25
8.2.100.0040.01017.84
8.2.90.0040.00419.15
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0040.00418.04
8.2.50.0030.00518.10
8.2.40.0040.00420.47
8.2.30.0030.00519.31
8.2.20.0000.00718.13
8.2.10.0000.00818.37
8.2.00.0070.00018.31
8.1.280.0110.00325.92
8.1.270.0040.00420.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0080.00417.83
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00222.05
8.1.160.0000.00718.88
8.1.150.0000.00821.96
8.1.140.0050.00319.59
8.1.130.0030.00318.98
8.1.120.0040.00417.37
8.1.110.0080.00017.44
8.1.100.0030.00517.37
8.1.90.0000.00717.52
8.1.80.0000.00717.51
8.1.70.0000.00717.48
8.1.60.0070.00017.59
8.1.50.0030.00617.45
8.1.40.0000.00817.47
8.1.30.0000.00817.49
8.1.20.0030.00617.68
8.1.10.0000.00817.62
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.50
8.0.270.0000.00717.13
8.0.260.0040.00417.26
8.0.250.0030.00616.92
8.0.240.0030.00316.98
8.0.230.0000.00817.00
8.0.220.0040.00416.80
8.0.210.0040.00416.84
8.0.200.0030.00316.99
8.0.190.0040.00416.87
8.0.180.0020.00516.91
8.0.170.0030.00316.92
8.0.160.0070.00016.88
8.0.150.0040.00416.88
8.0.140.0040.00416.89
8.0.130.0040.00413.39
8.0.120.0080.00016.91
8.0.110.0070.00016.91
8.0.100.0050.00216.86
8.0.90.0050.00216.71
8.0.80.0090.01316.94
8.0.70.0070.00016.85
8.0.60.0070.00016.76
8.0.50.0040.00416.84
8.0.30.0070.01116.89
8.0.20.0110.01417.40
8.0.10.0040.00416.91
8.0.00.0070.01116.82
7.4.330.0020.00215.55
7.4.320.0080.00016.50
7.4.300.0030.00316.52
7.4.290.0030.00316.45
7.4.280.0000.00816.51
7.4.270.0000.00716.58
7.4.260.0030.00316.48
7.4.250.0000.00716.41
7.4.240.0040.00416.46
7.4.230.0030.00316.41
7.4.220.0130.00616.54
7.4.210.0080.00716.58
7.4.200.0000.00716.44
7.4.160.0080.00816.51
7.4.150.0040.01417.40
7.4.140.0110.00617.86
7.4.130.0070.01116.60
7.4.120.0130.00916.52
7.4.110.0070.01316.52
7.4.100.0030.01416.58
7.4.90.0120.00916.47
7.4.80.0030.01419.39
7.4.70.0090.00916.61
7.4.60.0080.00816.44
7.4.50.0100.00716.55
7.4.40.0030.01616.54
7.4.30.0070.01016.66
7.4.00.0060.01014.93
7.3.330.0030.00313.03
7.3.320.0030.00313.12
7.3.310.0000.00916.36
7.3.300.0030.00316.29
7.3.290.0000.00616.31
7.3.280.0110.00816.29
7.3.270.0100.01317.40
7.3.260.0090.00816.39
7.3.250.0130.00916.24
7.3.240.0110.00716.56
7.3.230.0000.02016.37
7.3.210.0070.01316.32
7.3.200.0100.00616.32
7.3.190.0160.00016.59
7.3.180.0060.00916.21
7.3.170.0100.00716.34
7.3.160.0060.01016.36
7.3.120.0090.00814.69
7.3.110.0070.00814.88
7.3.100.0050.00914.74
7.3.90.0050.01014.70
7.3.80.0030.01014.72
7.3.70.0090.00714.78
7.3.60.0080.00714.72
7.3.50.0050.01114.79
7.3.40.0060.00814.61
7.3.30.0050.00914.80
7.3.20.0070.00716.61
7.3.10.0060.00816.50
7.3.00.0040.01016.58
7.2.330.0100.00716.77
7.2.320.0040.01516.65
7.2.310.0130.00316.64
7.2.300.0030.01316.41
7.2.290.0030.01316.84
7.2.250.0060.01115.05
7.2.240.0050.01315.07
7.2.230.0100.00614.98
7.2.220.0030.01215.01
7.2.210.0050.00914.96
7.2.200.0080.00715.05
7.2.190.0060.00915.18
7.2.180.0080.00815.10
7.2.170.0060.00915.04
7.2.160.0030.00714.82
7.2.150.0000.01017.05
7.2.140.0030.00816.95
7.2.130.0000.01116.77
7.2.120.0080.00416.93
7.2.110.0130.00316.95
7.2.100.0130.00317.04
7.2.90.0000.01116.89
7.2.80.0040.00716.90
7.2.70.0030.01017.02
7.2.60.0060.00316.76
7.2.50.0100.00716.93
7.2.40.0070.01117.07
7.2.30.0060.01216.74
7.2.20.0080.00416.88
7.2.10.0130.00316.96
7.2.00.0030.00717.05
7.1.330.0040.01115.73
7.1.320.0080.00615.85
7.1.310.0070.00815.71
7.1.300.0040.00815.76
7.1.290.0070.00515.75
7.1.280.0060.00715.74
7.1.270.0060.00815.58
7.1.260.0070.00615.77
7.1.250.0050.00315.59
7.1.240.0060.00315.70
7.1.230.0070.00415.66
7.1.220.0090.00615.36
7.1.210.0100.00315.48
7.1.200.0000.00915.73
7.1.190.0040.01115.44
7.1.180.0100.00715.93
7.1.170.0060.00315.88
7.1.160.0070.00715.49
7.1.150.0030.00715.72
7.1.140.0070.00715.71
7.1.130.0030.00915.72
7.1.120.0110.00415.76
7.1.110.0030.01515.78
7.1.100.0030.00916.01
7.1.90.0060.00615.99
7.1.80.0100.00015.64
7.1.70.0130.00516.41
7.1.60.0050.01116.63
7.1.50.0000.01315.72
7.1.40.2630.03927.11
7.1.30.1930.01324.11
7.1.20.2180.01024.20
7.1.10.2700.01015.25
7.1.00.2180.00715.26
7.0.330.0040.00415.42
7.0.320.0030.00615.07
7.0.310.0030.01015.39
7.0.300.0120.00815.27
7.0.290.0070.01015.46
7.0.280.0000.01215.43
7.0.270.0000.01314.92
7.0.260.0060.00615.25
7.0.250.0080.00415.52
7.0.240.0070.00715.18
7.0.230.0070.00715.43
7.0.220.0030.01015.35
7.0.210.0030.00615.23
7.0.200.0060.00916.12
7.0.190.0100.00315.17
7.0.180.0050.00515.30
7.0.170.3270.01214.88
7.0.160.2560.00914.71
7.0.150.2090.00814.88
7.0.140.2050.00814.90
7.0.130.2220.01215.06
7.0.120.1770.00814.93
7.0.110.2320.00814.86
7.0.100.1900.01214.96
7.0.90.1920.01014.94
7.0.80.1480.00315.02
7.0.70.1430.01314.92
7.0.60.1700.00914.94
7.0.50.1550.00914.83
7.0.40.1460.00914.05
7.0.30.0050.01114.00
7.0.20.0050.00914.01
7.0.10.0050.00813.91
7.0.00.0050.00913.92
5.6.400.0030.01014.71
5.6.390.0070.00314.33
5.6.380.0030.01114.31
5.6.370.0030.00614.52
5.6.360.0160.00314.02
5.6.350.0060.00314.29
5.6.340.0130.00314.37
5.6.330.0030.00714.45
5.6.320.0030.01014.24
5.6.310.0090.00614.20
5.6.300.0110.00714.44
5.6.290.0030.01414.25
5.6.280.0040.01114.45
5.6.270.0130.00314.40
5.6.260.0000.01114.32
5.6.250.0030.01314.55
5.6.240.0070.00714.26
5.6.230.0030.00514.49
5.6.220.0120.00014.41
5.6.210.0090.00914.43
5.6.200.0030.01714.21
5.6.190.0040.01514.46
5.6.180.0060.00614.47
5.6.170.0090.00314.22
5.6.160.0000.01614.13
5.6.150.0000.01114.02
5.6.140.0090.00614.37
5.6.130.0000.01314.36
5.6.120.0090.00014.34
5.6.110.0000.01314.51
5.6.100.0030.01014.17
5.6.90.0110.00314.38
5.6.80.0090.00614.00
5.6.70.0120.00614.03
5.6.60.0030.01014.28
5.6.50.0000.01314.20
5.6.40.0120.00314.19
5.6.30.0000.00914.25
5.6.20.0000.01614.30
5.6.10.0040.00714.20
5.6.00.0030.01014.65

preferences:
20.36 ms | 401 KiB | 5 Q