3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainArr = [ [125 => 'B', 127 => 'A', 178 => 'Z', 78 => 'G'], [111 => 'X', 127 => 'K', 108 => 'J', 708 => 'P'], [125 => 'L', 127 => 'M', 178 => 'Q', 78 => 'A'], ]; array_walk($mainArr, function(&$subarray) { asort($subarray); }); var_export($mainArr);

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.120.0150.00720.36
8.4.110.0110.00822.33
8.4.100.0140.00717.85
8.4.90.0110.01018.69
8.4.80.0070.00717.58
8.4.70.0120.00717.83
8.4.60.0120.00818.74
8.4.50.0150.00522.53
8.4.40.0060.00317.72
8.4.30.0030.00620.58
8.4.20.0040.00417.90
8.4.10.0040.00417.35
8.3.250.0030.00418.79
8.3.240.0110.00716.45
8.3.230.0060.00216.40
8.3.220.0100.01016.98
8.3.210.0080.00216.62
8.3.200.0080.00116.63
8.3.190.0110.00617.16
8.3.180.0110.00718.53
8.3.170.0080.01117.05
8.3.160.0110.00718.40
8.3.150.0120.00618.32
8.3.140.0110.00416.65
8.3.130.0060.00318.50
8.3.120.0110.00019.01
8.3.110.0080.00420.94
8.3.100.0060.00924.06
8.3.90.0070.01026.77
8.3.80.0090.00019.36
8.3.70.0210.00016.50
8.3.60.0180.00418.43
8.3.50.0120.00423.53
8.3.40.0120.00318.84
8.3.30.0120.00318.53
8.3.20.0050.00221.73
8.3.10.0080.00019.95
8.3.00.0070.00021.71
8.2.290.0110.00920.29
8.2.280.0120.00618.18
8.2.270.0000.01017.07
8.2.260.0040.00416.43
8.2.250.0020.00516.50
8.2.240.0120.00316.89
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0070.00026.77
8.2.200.0040.00418.88
8.2.190.0140.00718.54
8.2.180.0040.01118.50
8.2.170.0110.00322.96
8.2.160.0120.00620.24
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00720.98
8.2.100.0090.00317.84
8.2.90.0040.00417.75
8.2.80.0040.00418.78
8.2.70.0040.00417.49
8.2.60.0060.00317.63
8.2.50.0040.00418.07
8.2.40.0060.00318.28
8.2.30.0020.00519.34
8.2.20.0000.00718.07
8.2.10.0000.00719.36
8.2.00.0050.00219.35
8.1.330.0110.00922.01
8.1.320.0130.00815.84
8.1.310.0140.00018.18
8.1.300.0070.01017.48
8.1.290.0040.00430.84
8.1.280.0150.00025.92
8.1.270.0030.00520.24
8.1.260.0070.00026.35
8.1.250.0080.01228.09
8.1.240.0060.00319.27
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0080.00017.53
8.1.180.0050.00518.10
8.1.170.0080.00018.59
8.1.160.0000.00718.90
8.1.150.0030.00518.83
8.1.140.0000.00720.71
8.1.130.0000.00820.20
8.1.120.0000.00717.50
8.1.110.0040.00417.50
8.1.100.0070.00017.31
8.1.90.0070.00417.32
8.1.80.0040.00417.36
8.1.70.0000.00717.42
8.1.60.0080.00017.55
8.1.50.0040.00417.51
8.1.40.0040.00417.52
8.1.30.0060.00317.48
8.1.20.0030.00517.64
8.1.10.0040.00417.43
8.1.00.0040.00417.30
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0040.00417.93
8.0.260.0000.00719.91
8.0.250.0030.00316.78
8.0.240.0030.00316.86
8.0.230.0030.00316.89
8.0.220.0030.00316.80
8.0.210.0060.00016.76
8.0.200.0060.00316.85
8.0.190.0040.00416.83
8.0.180.0000.00816.92
8.0.170.0060.00316.93
8.0.160.0020.00516.92
8.0.150.0040.00416.86
8.0.140.0000.00716.89
8.0.130.0030.00313.33
8.0.120.0000.00716.88
8.0.110.0000.00716.73
8.0.100.0000.00716.77
8.0.90.0080.00016.76
8.0.80.0040.01116.84
8.0.70.0040.00416.70
8.0.60.0050.00316.75
8.0.50.0050.00316.82
8.0.30.0120.00917.14
8.0.20.0080.01216.90
8.0.10.0040.00416.96
8.0.00.0120.00816.74
7.4.330.0050.00016.74
7.4.320.0060.00016.64
7.4.300.0050.00316.51
7.4.290.0070.00016.56
7.4.280.0050.00516.57
7.4.270.0070.00016.52
7.4.260.0000.00513.27
7.4.250.0050.00216.56
7.4.240.0040.00316.50
7.4.230.0030.00316.32
7.4.220.0050.00216.64
7.4.210.0080.00916.51
7.4.200.0000.00716.45
7.4.130.0090.00916.30
7.4.120.0120.00616.61
7.4.110.0070.01016.48
7.4.20.0090.00916.31
7.4.10.0030.01316.45
7.4.00.0070.00916.30
7.3.330.0020.00516.31
7.3.320.0050.00013.04
7.3.310.0000.00716.24
7.3.300.0000.00616.12
7.3.290.0090.00816.21
7.3.280.0040.01116.20
7.3.260.0070.01016.27
7.3.240.0110.00616.34
7.3.230.0140.00316.27
7.3.130.0080.00816.20
7.3.120.0130.01016.25
7.3.110.0120.00616.12
7.3.100.0070.01016.16
7.3.90.0080.00816.23
7.3.80.0100.00716.52
7.3.70.0080.00816.18
7.3.60.0000.01616.23
7.3.50.0070.01016.14
7.3.40.0040.01116.18
7.3.30.0110.01016.23
7.3.20.0000.01515.96
7.3.10.0070.00716.11
7.3.00.0160.00016.18
7.2.260.0080.00816.45
7.2.250.0090.00916.21
7.2.240.0000.01816.07
7.2.230.0000.01816.26
7.2.220.0070.01016.29
7.2.210.0030.01316.54
7.2.200.0070.01016.45
7.2.190.0140.00416.29
7.2.180.0070.01016.46
7.2.170.0110.01016.43
7.2.160.0000.02116.30
7.2.150.0100.01016.49
7.2.140.0120.00616.30
7.2.130.0110.01116.50
7.2.120.0100.01016.40
7.2.110.0110.00616.45
7.2.100.0060.00916.44
7.2.90.0150.00316.30
7.2.80.0090.00916.51
7.2.70.0120.00916.08
7.2.60.0130.01016.30
7.2.50.0120.00616.30
7.2.40.0030.01416.41
7.2.30.0160.00316.42
7.2.20.0150.00416.40
7.2.10.0090.00916.36
7.2.00.0110.01116.33

preferences:
27.47 ms | 403 KiB | 5 Q