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, fn(&$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.0080.01023.99
8.4.110.0050.00418.54
8.4.100.0120.00918.78
8.4.90.0160.00520.35
8.4.80.0080.00918.52
8.4.70.0100.01018.13
8.4.60.0120.00918.83
8.4.50.0070.00922.32
8.4.40.0060.00317.41
8.4.30.0070.00420.64
8.4.20.0050.00317.67
8.4.10.0040.00417.68
8.3.250.0140.00318.87
8.3.240.0120.00719.02
8.3.230.0070.00416.49
8.3.220.0060.00218.87
8.3.210.0080.00816.73
8.3.200.0050.00716.61
8.3.190.0050.00817.15
8.3.180.0080.00618.22
8.3.170.0140.00318.79
8.3.160.0150.00316.94
8.3.150.0040.01517.22
8.3.140.0090.00017.21
8.3.130.0060.00316.66
8.3.120.0120.00618.91
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0070.01416.50
8.3.60.0070.00718.31
8.3.50.0110.00623.59
8.3.40.0120.00418.46
8.3.30.0100.01018.52
8.3.20.0040.00421.89
8.3.10.0040.00420.13
8.3.00.0040.00421.95
8.2.290.0110.00420.36
8.2.280.0120.00718.38
8.2.270.0000.00817.35
8.2.260.0040.00418.19
8.2.250.0060.00316.71
8.2.240.0070.01116.93
8.2.230.0050.00322.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00318.88
8.2.190.0160.00318.54
8.2.180.0000.01418.41
8.2.170.0110.00322.96
8.2.160.0070.01020.52
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00620.48
8.2.100.0060.00617.66
8.2.90.0000.00817.75
8.2.80.0040.00418.73
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0070.00018.16
8.2.30.0060.00318.08
8.2.20.0000.00718.15
8.2.10.0000.00719.23
8.2.00.0030.00319.17
8.1.330.0120.00721.74
8.1.320.0090.01018.44
8.1.310.0070.01116.30
8.1.300.0030.00620.11
8.1.290.0030.00630.84
8.1.280.0100.00525.92
8.1.270.0080.00022.07
8.1.260.0040.00426.35
8.1.250.0040.01128.09
8.1.240.0090.00018.98
8.1.230.0040.00817.82
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0030.00617.48
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00718.87
8.1.150.0050.00318.85
8.1.140.0040.00420.65
8.1.130.0000.00820.18
8.1.120.0050.00217.41
8.1.110.0040.00417.47
8.1.100.0070.00017.41
8.1.90.0030.00717.46
8.1.80.0000.00717.39
8.1.70.0000.00717.30
8.1.60.0030.00617.56
8.1.50.0040.00417.54
8.1.40.0000.00817.34
8.1.30.0030.00617.66
8.1.20.0000.00817.59
8.1.10.0000.00717.53
8.1.00.0020.00517.38
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0070.00017.87
8.0.260.0030.00320.09
8.0.250.0000.00716.89
8.0.240.0000.00816.86
8.0.230.0030.00316.87
8.0.220.0040.00416.72
8.0.210.0030.00316.83
8.0.200.0040.00417.00
8.0.190.0000.00916.93
8.0.180.0000.00816.83
8.0.170.0040.00416.87
8.0.160.0000.00716.79
8.0.150.0000.00716.70
8.0.140.0030.00316.89
8.0.130.0000.00513.30
8.0.120.0080.00016.89
8.0.110.0070.00016.82
8.0.100.0040.00416.93
8.0.90.0030.00616.75
8.0.80.0110.00616.77
8.0.70.0050.00216.75
8.0.60.0050.00316.98
8.0.50.0040.00416.89
8.0.30.0130.00317.00
8.0.20.0090.00917.02
8.0.10.0040.00416.95
8.0.00.0130.01016.80
7.4.330.0050.00016.67
7.4.320.0000.00616.50
7.4.300.0030.00316.48
7.4.290.0030.00316.55
7.4.280.0060.00316.49
7.4.270.0030.00316.51
7.4.260.0000.00513.22
7.4.250.0040.00416.38
7.4.240.0040.00316.56
7.4.230.0000.00716.59
7.4.220.0020.00516.56
7.4.210.0060.01016.50
7.4.200.0050.00216.59
7.4.130.0120.00616.36
7.4.120.0120.00616.32
7.4.110.0060.01316.46
7.4.100.0030.01316.64
7.4.90.0100.00716.32
7.4.80.0080.01419.39
7.4.70.0040.01216.47
7.4.60.0030.01416.60
7.4.50.0100.00316.60
7.4.40.0090.00616.18
7.4.20.0150.00916.48
7.4.10.0130.00816.13
7.4.00.0080.00816.43
7.3.330.0000.00716.21
7.3.320.0050.00013.09
7.3.310.0060.00016.25
7.3.300.0030.00516.17
7.3.290.0040.01116.15
7.3.260.0100.00716.40
7.3.240.0120.00616.26
7.3.230.0110.00716.32
7.3.210.0060.01016.07
7.3.200.0130.00216.14
7.3.190.0060.01216.23
7.3.180.0060.00916.26
7.3.170.0100.01016.33
7.3.160.0040.01116.21
7.3.130.0090.01316.21
7.3.120.0140.00316.18
7.3.110.0120.00416.23
7.3.100.0110.01116.26
7.3.90.0130.00316.27
7.3.80.0150.00616.16
7.3.70.0070.01616.14
7.3.60.0070.01016.21
7.3.50.0060.01116.23
7.3.40.0130.00716.16
7.3.30.0120.00816.17
7.3.20.0100.01016.07
7.3.10.0120.00916.23
7.3.00.0110.00716.13
7.2.330.0070.01316.53
7.2.320.0060.01016.49
7.2.310.0100.01016.35
7.2.300.0090.00616.18
7.2.290.0100.01016.33
7.2.260.0040.01416.34
7.2.250.0070.01416.27
7.2.240.0090.01016.10
7.2.230.0120.01316.35
7.2.220.0150.00616.44
7.2.210.0150.00916.06
7.2.200.0140.00716.14
7.2.190.0100.00616.23
7.2.180.0160.00416.22
7.2.170.0000.01716.07
7.2.160.0110.00616.09
7.2.150.0100.01016.41
7.2.140.0070.01116.20
7.2.130.0090.00916.36
7.2.120.0090.00916.27
7.2.110.0030.01316.38
7.2.100.0070.01116.49
7.2.90.0120.00716.32
7.2.80.0040.01516.52
7.2.70.0070.01616.16
7.2.60.0150.00616.25
7.2.50.0110.01016.46
7.2.40.0040.01816.30
7.2.30.0060.01616.31
7.2.20.0090.01416.25
7.2.10.0090.00916.47
7.2.00.0090.01316.25

preferences:
118.01 ms | 403 KiB | 5 Q