3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f=fn($a,$f)=>$a?array_merge(array_shift($a),$f(array_reverse($a?next($a)?array_map(null,...$a):array_chunk($a[0],1):$a),$f)):$a; print_r( $f([[1, 2, 3, 4], [12, 13, 14, 5], [11, 16, 15, 6], [10, 9, 8, 7]], $f) );

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.0150.00018.31
8.3.50.0040.01218.34
8.3.40.0150.00018.71
8.3.30.0080.00818.66
8.3.20.0040.00420.90
8.3.10.0040.00421.93
8.3.00.0040.00420.68
8.2.180.0140.00718.27
8.2.170.0060.00922.96
8.2.160.0180.00021.20
8.2.150.0070.01124.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.83
8.2.110.0100.00022.27
8.2.100.0080.00417.91
8.2.90.0040.00417.96
8.2.80.0060.00318.16
8.2.70.0050.00318.03
8.2.60.0000.00718.16
8.2.50.0030.00518.10
8.2.40.0080.00019.47
8.2.30.0040.00419.39
8.2.20.0040.00418.02
8.2.10.0000.00719.02
8.2.00.0040.00419.39
8.1.280.0110.00325.92
8.1.270.0040.00422.17
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00620.57
8.1.230.0040.00720.98
8.1.220.0040.00420.84
8.1.210.0060.00618.77
8.1.200.0060.00317.34
8.1.190.0000.00817.24
8.1.180.0080.00018.10
8.1.170.0030.00618.69
8.1.160.0060.00318.95
8.1.150.0060.00319.00
8.1.140.0040.00418.95
8.1.130.0060.00320.19
8.1.120.0040.00417.45
8.1.110.0050.00217.36
8.1.100.0000.00717.47
8.1.90.0000.00717.38
8.1.80.0000.00717.38
8.1.70.0000.00717.36
8.1.60.0030.00617.50
8.1.50.0000.00717.48
8.1.40.0050.00317.57
8.1.30.0050.00317.69
8.1.20.0030.00517.62
8.1.10.0040.00417.57
8.1.00.0070.00017.54
8.0.300.0080.00021.90
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0060.00317.16
8.0.260.0030.00320.02
8.0.250.0050.00216.92
8.0.240.0000.00616.83
8.0.230.0000.00716.79
8.0.220.0030.00316.82
8.0.210.0000.00616.77
8.0.200.0040.00417.00
8.0.190.0000.00716.98
8.0.180.0040.00416.99
8.0.170.0030.00616.94
8.0.160.0020.00517.02
8.0.150.0040.00416.68
8.0.140.0040.00416.89
8.0.130.0030.00313.39
8.0.120.0040.00416.90
8.0.110.0070.00016.70
8.0.100.0000.00816.76
8.0.90.0030.00616.83
8.0.80.0130.00716.89
8.0.70.0040.00416.85
8.0.60.0000.00816.89
8.0.50.0040.00416.85
8.0.30.0090.00916.92
8.0.20.0090.01017.08
8.0.10.0060.00317.05
8.0.00.0000.01816.90
7.4.330.0000.00415.55
7.4.320.0000.00716.57
7.4.300.0030.00316.54
7.4.290.0040.00416.55
7.4.280.0040.00416.49
7.4.270.0000.00716.52
7.4.260.0050.00013.23
7.4.250.0030.00316.47
7.4.240.0040.00316.64
7.4.230.0040.00416.37
7.4.220.0030.00316.56
7.4.210.0070.01116.57
7.4.200.0000.00716.32
7.4.130.0100.00916.51
7.4.120.0140.00416.55
7.4.110.0100.00716.59
7.4.100.0090.00916.27
7.4.90.0100.00516.39
7.4.80.0060.00919.39
7.4.70.0160.03216.54
7.4.60.0110.01016.39
7.4.50.0000.01316.48
7.4.40.0080.00816.28
7.4.10.0090.01014.75
7.4.00.0030.01014.98
7.3.330.0100.00015.95
7.3.320.0000.00612.98
7.3.310.0040.00316.12
7.3.300.0030.00316.17
7.3.290.0030.00316.14
7.3.280.0120.00616.20
7.3.260.0110.00816.24
7.3.240.0070.01116.24
7.3.230.0040.01216.27
7.3.210.0130.00316.30
7.3.200.0130.00316.32
7.3.190.0130.00316.13
7.3.180.0080.00816.20
7.3.170.0090.00616.04
7.3.160.0060.00916.10
7.3.130.0070.01114.68
7.3.120.0030.01614.49
7.3.110.0070.00714.60
7.3.100.0030.00914.57
7.3.90.0070.00914.62
7.3.80.0080.00714.68
7.3.70.0040.00814.67
7.3.60.0080.00614.61
7.3.50.0090.00414.59
7.3.40.0040.00814.51
7.3.30.0060.00614.66
7.3.20.0030.01015.28
7.3.10.0050.00815.20
7.3.00.0070.00615.25
7.2.330.0090.00916.52
7.2.320.0060.01116.02
7.2.310.0120.00416.50
7.2.300.0120.00916.25
7.2.290.0030.01316.26
7.2.260.0140.00714.73
7.2.250.0100.00714.99
7.2.240.0030.01014.68
7.2.230.0050.01014.84
7.2.220.0080.00614.73
7.2.210.0050.00914.70
7.2.200.0090.00514.80
7.2.190.0090.00414.63
7.2.180.0060.00514.77
7.2.170.0070.00614.68
7.2.160.0070.00614.73
7.2.150.0070.00815.39
7.2.140.0050.00915.46
7.2.130.0150.01215.51
7.2.120.0060.00615.44
7.2.110.0050.00815.40
7.2.100.0060.00715.42
7.2.90.0070.00915.46
7.2.80.0070.00715.38
7.2.70.0090.00515.42
7.2.60.0100.00315.47
7.2.50.0050.00915.47
7.2.40.0070.00715.48
7.2.30.0070.00915.63
7.2.20.0120.00315.40
7.2.10.0070.01015.46
7.2.00.0080.00715.46
7.1.330.0090.00914.34
7.1.320.0120.00314.34
7.1.310.0060.00614.31
7.1.300.0070.00614.30
7.1.290.0040.01014.25
7.1.280.0070.00614.29
7.1.270.0070.00514.27
7.1.260.0030.01014.33
7.1.250.0060.00714.29
7.1.240.0030.00515.53
7.1.230.0040.00715.64
7.1.220.0070.00715.62
7.1.210.0060.00315.55
7.1.200.0090.00615.52
7.1.190.0060.00915.77
7.1.180.0110.00015.58
7.1.170.0000.00815.61
7.1.160.0050.00915.50
7.1.150.0130.00315.52
7.1.140.0000.00915.61
7.1.130.0030.00515.44
7.1.120.0090.00015.36
7.1.110.0110.00415.59
7.1.100.0030.00715.72
7.1.90.0070.00715.60
7.1.80.0030.00715.49
7.1.70.0030.00915.65
7.1.60.0100.00315.36
7.1.50.0000.01115.71
7.1.40.0070.00715.46
7.1.30.0030.01015.72
7.1.20.0070.00715.70
7.1.10.0000.01015.49
7.1.00.0060.00615.46

preferences:
62.77 ms | 400 KiB | 5 Q