3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f=fn($a,$f)=>$a?[...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.1.110.0030.00517.45
8.1.100.0050.00317.45
8.1.90.0070.00017.43
8.1.80.0090.00017.39
8.1.70.0070.00017.39
8.1.60.0050.00317.63
8.1.50.0040.00417.43
8.1.40.0000.00817.55
8.1.30.0060.00317.62
8.1.20.0060.00317.67
8.1.10.0040.00417.61
8.1.00.0000.00817.48
8.0.240.0070.00016.88
8.0.230.0040.00416.98
8.0.220.0030.00316.89
8.0.210.0040.00416.90
8.0.200.0030.00317.00
8.0.190.0000.00716.83
8.0.180.0080.00016.83
8.0.170.0040.00416.93
8.0.160.0030.00316.89
8.0.150.0080.00016.94
8.0.140.0000.00716.76
8.0.130.0000.00513.30
8.0.120.0030.00516.89
8.0.110.0040.00416.70
8.0.100.0040.00416.70
8.0.90.0060.00316.79
8.0.80.0110.00416.91
8.0.70.0040.00416.86
8.0.60.0000.00816.74
8.0.50.0070.00016.77
8.0.30.0110.00617.18
8.0.20.0050.01416.98
8.0.10.0000.00717.02
8.0.00.0070.01016.70
7.4.300.0030.00316.60
7.4.290.0050.00316.52
7.4.280.0040.00416.50
7.4.270.0000.00716.51
7.4.260.0000.00513.30
7.4.250.0050.00316.61
7.4.240.0060.00216.57
7.4.230.0030.00316.41
7.4.220.0050.00216.45
7.4.210.0090.00816.58
7.4.200.0000.00816.51
7.4.130.0090.00916.48
7.4.120.0130.00516.38
7.4.110.0030.01316.39
7.4.100.0060.01116.58
7.4.90.0080.01016.53
7.4.80.0110.00817.89
7.4.70.0090.01116.55
7.4.60.0140.00716.56
7.4.50.0110.00716.30
7.4.40.0110.00816.31
7.4.30.0120.00616.61
7.4.20.0080.01116.31
7.4.10.0100.00916.54
7.4.00.0100.01216.24
7.3.330.0040.00316.21
7.3.320.0000.00512.97
7.3.310.0040.00416.30
7.3.300.0000.00616.12
7.3.290.0080.00816.13
7.3.260.0090.00916.29
7.3.250.0030.01416.09
7.3.240.0070.01216.14
7.3.230.0050.01216.24
7.3.220.0040.01416.21
7.3.210.0100.00616.26
7.3.200.0100.00616.23
7.3.190.0100.00816.28
7.3.180.0120.00716.33
7.3.170.0110.00816.25
7.3.160.0120.00716.24
7.3.150.0100.00816.22
7.3.140.0130.00716.12
7.3.130.0080.00916.15
7.3.120.0070.01115.90
7.3.110.0080.00915.48
7.3.100.0090.00815.46
7.3.90.0090.00915.52
7.3.80.0070.00815.47
7.3.70.0090.00815.36
7.3.60.0080.00915.46
7.3.50.0090.00815.42
7.3.40.0090.00815.43
7.3.30.0080.00915.40
7.3.20.0100.00815.45
7.3.10.0090.00815.50
7.3.00.0100.01015.50
7.2.340.0090.00916.52
7.2.330.0100.00916.43
7.2.320.0080.01016.41
7.2.310.0140.00516.38
7.2.300.0100.00916.38
7.2.290.0100.01016.18
7.2.280.0120.00716.29
7.2.270.0080.01216.24
7.2.260.0080.01216.22
7.2.250.0120.00816.17
7.2.240.0090.00815.57
7.2.230.0090.00915.55
7.2.220.0090.00915.64
7.2.210.0080.00815.61
7.2.200.0100.00715.59
7.2.190.0080.00915.55
7.2.180.0080.01015.52
7.2.170.0080.01215.56
7.2.160.0080.00915.58
7.2.150.0080.01015.60
7.2.140.0110.00815.67
7.2.130.0070.00915.63
7.2.120.0140.00915.63
7.2.110.0090.00815.63
7.2.100.0090.01015.65
7.2.90.0080.01015.57
7.2.80.0090.01015.65
7.2.70.0080.01115.62
7.2.60.0080.01115.64
7.2.50.0080.00915.50
7.2.40.0180.00915.58
7.2.30.0100.00915.63
7.2.20.0100.00815.61
7.2.10.0110.01015.51
7.2.00.0080.00915.60
7.1.330.0090.00814.51
7.1.320.0090.00714.48
7.1.310.0080.00814.53
7.1.300.0090.00714.42
7.1.290.0110.01014.46
7.1.280.0070.01014.45
7.1.270.0070.01014.52
7.1.260.0070.00914.44
7.1.250.0080.00914.49
7.1.240.0170.00914.84
7.1.230.0090.01014.96
7.1.220.0110.00614.87
7.1.210.0060.01114.96
7.1.200.0110.00614.91
7.1.190.0120.00914.88
7.1.180.0110.00614.86
7.1.170.0080.00914.98
7.1.160.0090.00814.92
7.1.150.0090.00914.98
7.1.140.0080.00914.92
7.1.130.0090.00815.03
7.1.120.0080.01015.02
7.1.110.0110.00814.96
7.1.100.0100.00915.08
7.1.90.0090.00815.04
7.1.80.0110.00514.94
7.1.70.0090.00715.01
7.1.60.0090.00915.02
7.1.50.0080.01015.02
7.1.40.0120.00815.10
7.1.30.0100.00714.97
7.1.20.0090.00814.98
7.1.10.0090.00915.07
7.1.00.0100.00715.06
7.0.330.0200.00314.89
7.0.320.0160.00914.91
7.0.310.0080.01214.97
7.0.300.0160.00815.05
7.0.290.0130.00314.79
7.0.280.0120.00814.90
7.0.270.0130.01415.03
7.0.260.0170.00714.88
7.0.250.0110.00815.26
7.0.240.0110.01015.00
7.0.230.0040.01415.08
7.0.220.0200.00314.96
7.0.210.0180.00514.93
7.0.200.0130.00314.87
7.0.190.0060.01315.07
7.0.180.0090.01014.91
7.0.170.0140.00715.12
7.0.160.0150.00614.96
7.0.150.0060.01514.96
7.0.140.0140.00315.08
7.0.130.0150.00715.04
7.0.120.0100.01015.05
7.0.110.0180.00514.93
7.0.100.0170.00315.00
7.0.90.0220.00014.89
7.0.80.0070.01114.86
7.0.70.0050.01115.00
7.0.60.0140.01414.96
7.0.50.0140.00514.95
7.0.40.0090.01014.82
7.0.30.0150.00014.93
7.0.20.0170.00815.07
7.0.10.0190.00314.93
7.0.00.0030.01414.99
5.6.400.0100.01415.69
5.6.390.0130.01015.77
5.6.380.0290.00015.69
5.6.370.0130.01015.45
5.6.360.0120.01015.57
5.6.350.0160.01015.76
5.6.340.0100.01715.36
5.6.330.0040.01615.49
5.6.320.0170.00315.79
5.6.310.0120.00915.79
5.6.300.0150.00615.66
5.6.290.0160.00615.55
5.6.280.0080.01415.77
5.6.270.0090.01315.82
5.6.260.0130.01015.74
5.6.250.0160.01315.64
5.6.240.0050.01515.63
5.6.230.0090.01215.70
5.6.220.0070.01315.35
5.6.210.0080.01315.56
5.6.200.0030.01515.72
5.6.190.0180.00415.74
5.6.180.0070.01115.71
5.6.170.0140.00515.55
5.6.160.0070.01415.55
5.6.150.0060.01315.69
5.6.140.0080.01215.49
5.6.130.0160.01415.86
5.6.120.0150.00315.75
5.6.110.0100.01015.69
5.6.100.0110.00715.62
5.6.90.0090.00915.84
5.6.80.0100.01015.70
5.6.70.0100.01015.65
5.6.60.0040.01815.55
5.6.50.0140.00515.54
5.6.40.0150.01115.65
5.6.30.0150.01015.37
5.6.20.0160.00615.55
5.6.10.0150.00915.41
5.6.00.0210.00415.62
5.5.380.0230.01215.73
5.5.370.0260.00615.48
5.5.360.0170.01815.57
5.5.350.0280.00815.47
5.5.340.0210.01415.62
5.5.330.0260.00515.40
5.5.320.0200.01015.75
5.5.310.0210.01015.54
5.5.300.0250.00715.49
5.5.290.0150.01515.70
5.5.280.0170.01115.43
5.5.270.0300.00015.73
5.5.260.0280.00015.43
5.5.250.0150.01515.39
5.5.240.0200.00915.39
5.5.230.0170.01215.69
5.5.220.0180.01115.40
5.5.210.0230.00715.66
5.5.200.0210.00915.51
5.5.190.0260.00415.53
5.5.180.0200.00815.42
5.5.170.0210.00715.45
5.5.160.0130.01715.59
5.5.150.0220.00715.41
5.5.140.0190.00915.63
5.5.130.0180.01115.63
5.5.120.0240.00715.50
5.5.110.0150.01515.64
5.5.100.0240.00715.30
5.5.90.0200.01015.29
5.5.80.0220.01115.55
5.5.70.0200.01215.37
5.5.60.0200.00815.68
5.5.50.0190.00915.46
5.5.40.0260.00315.66
5.5.30.0200.01015.42
5.5.20.0230.00415.58
5.5.10.0170.01415.59
5.5.00.0130.01315.54
5.4.450.0160.00812.50
5.4.440.0220.00012.49
5.4.430.0150.00612.50
5.4.420.0130.01012.32
5.4.410.0130.01012.48
5.4.400.0130.01012.29
5.4.390.0180.00612.23
5.4.380.0160.00612.27
5.4.370.0240.00012.19
5.4.360.0160.00612.32
5.4.350.0130.01312.55
5.4.340.0170.00712.48
5.4.330.0160.00512.40
5.4.320.0070.01512.22
5.4.310.0200.00312.39
5.4.300.0160.00612.18
5.4.290.0160.00812.41
5.4.280.0170.00712.23
5.4.270.0180.00412.32
5.4.260.0060.01612.48
5.4.250.0170.00612.52
5.4.240.0190.00912.46
5.4.230.0160.01312.41
5.4.220.0150.00612.27
5.4.210.0150.00712.42
5.4.200.0140.00812.49
5.4.190.0160.00712.25
5.4.180.0210.00012.25
5.4.170.0130.01012.39
5.4.160.0170.00312.31
5.4.150.0140.00712.21
5.4.140.0200.00012.64
5.4.130.0090.01212.57
5.4.120.0130.00912.26
5.4.110.0140.00812.25
5.4.100.0170.00612.32
5.4.90.0180.00212.50
5.4.80.0140.00712.24
5.4.70.0150.00612.23
5.4.60.0190.00412.44
5.4.50.0220.00312.40
5.4.40.0190.00312.32
5.4.30.0110.01112.57
5.4.20.0230.00012.57
5.4.10.0200.00312.51
5.4.00.0120.01212.40
5.3.290.0190.00312.86
5.3.280.0110.01112.64
5.3.270.0150.00612.78
5.3.260.0130.00812.85
5.3.250.0160.00712.70
5.3.240.0120.01212.56
5.3.230.0230.00012.63
5.3.220.0140.01012.57
5.3.210.0160.01112.59
5.3.200.0160.00612.58
5.3.190.0150.00812.75
5.3.180.0130.00912.91
5.3.170.0170.00712.79
5.3.160.0210.00612.86
5.3.150.0150.01112.91
5.3.140.0160.00712.84
5.3.130.0210.00312.76
5.3.120.0230.00612.80
5.3.110.0270.00012.66
5.3.100.0070.02212.76
5.3.90.0120.01912.87
5.3.80.0170.00812.70
5.3.70.0180.00712.65
5.3.60.0130.01612.69
5.3.50.0070.02112.64
5.3.40.0180.00912.62
5.3.30.0140.01112.63
5.3.20.0150.01212.68
5.3.10.0210.00412.47
5.3.00.0120.01212.41
5.2.170.0130.01311.77
5.2.160.0160.00911.86
5.2.150.0140.00811.70
5.2.140.0140.00711.95
5.2.130.0120.00911.68
5.2.120.0190.00611.68
5.2.110.0080.01211.64
5.2.100.0180.00711.73
5.2.90.0150.00611.73
5.2.80.0150.00811.70
5.2.70.0160.00811.73
5.2.60.0200.00411.51
5.2.50.0200.00511.71
5.2.40.0100.01111.68
5.2.30.0150.00911.63
5.2.20.0190.00511.73
5.2.10.0130.00711.60
5.2.00.0080.01511.38
5.1.60.0070.01411.02
5.1.50.0110.00810.80
5.1.40.0110.00610.83
5.1.30.0110.01110.95
5.1.20.0140.00610.88
5.1.10.0120.00610.84
5.1.00.0070.01110.71
5.0.50.0120.0039.97
5.0.40.0120.00410.12
5.0.30.0080.0069.99
5.0.20.0040.0169.84
5.0.10.0090.00610.02
5.0.00.0090.0069.73
4.4.90.0080.0039.73
4.4.80.0080.0059.73
4.4.70.0060.0069.73
4.4.60.0000.0129.73
4.4.50.0070.0039.73
4.4.40.0070.0059.73
4.4.30.0120.0009.73
4.4.20.0070.0049.73
4.4.10.0050.0059.73
4.4.00.0070.0029.73
4.3.110.0070.0009.73
4.3.100.0050.0049.73
4.3.90.0100.0009.73
4.3.80.0080.0049.73
4.3.70.0060.0069.73
4.3.60.0060.0069.73
4.3.50.0080.0049.73
4.3.40.0060.0069.73
4.3.30.0030.0079.73
4.3.20.0110.0009.73
4.3.10.0050.0059.73
4.3.00.0060.0039.73

preferences:
73.15 ms | 406 KiB | 5 Q