3v4l.org

run code in 300+ PHP versions simultaneously
<?php $log = "(9143308-9144331):246221357-246222380, (IND):246222381, (9144332-9145355):246222382-246223405, (IND):246223406, (9145356-9146379):246223407-246224430, (IND):246224431, (9146380-9147403):246224432-246225455, (IND):246225456, (9147404-9148427):246225457-246226480, (IND):246226481, (9148428-9149451):246226482-246227505, (IND):246227506, (9149452-9150475):246227507-246228530, (IND):246228531, (9150476-9151499):246228532-246229555, (IND):246229556, (9151500-9152523):246229557-246230580, (IND):246230581, (9152524-9153547):246230582-246231605, (IND):246231606, (9153548-9154571):246231607-246232630, (IND):246232631, (9154572-9155027):246232632-246233087, (9155028-9155595):246233115-246233682, (IND):246233683, (9155596-9156619):246233684-246234707, (IND):246234708, (9156620-9157643):246234709-246235732, (IND):246235733, (9157644-9158667):246235734-246236757, (IND):246236758, (9158668-9159691):246236759-246237782, (IND):246237783, (9159692-9160715):246237784-246238807, (IND):246238808, (9160716-9161739):246238809-246239832, (IND):246239833, (9161740-9162763):246239834-246240857, (IND):246240858, (9162764-9163787):246240859-246241882, (IND):246241883, (9163788-9164811):246241884-246242907, (IND):246242908, (9164812-9165835):246242909-246243932, (IND):246243933, (9165836-9166859):246243934-246244957, (IND):246244958, (9166860-9167883):246244959-246245982, (IND):246245983, (9167884-9168907):246245984-246247007, (IND):246247008, (9168908-9169931):246247009-246248032, (IND):246248033, (9169932-9170955):246248034-246249057, (IND):246249058, (9170956-9171979):246249059-246250082, (IND):246250083, (9171980-9173003):246250084-246251107, (IND):246251108, (9173004-9173414):246251109-246251519, (9173415-9174027):246252034-246252646, (IND):246252647, (9174028-9175039):246252648-246253659 TOTAL: 9184010"; $out = '#!/bin/sh' . PHP_EOL; $matches = array(); if (preg_match_all('/((.*?)-(.*?)):(.*?)-(.*?),/m', $log, $matches)) { var_dump($matches); foreach ($matches as $match) { $blockSize = $match[1][1] - $match[1][0] + 1; $startingBlock = $match[1][3]; $out .= sprintf('fsgrab -c %s -s %s /dev/sdc2 >> "/media/root/TOSHIBA EXT/blabla"', $blockSize, $startingBlock) . PHP_EOL; } } echo $out;

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.0170.00716.63
8.3.50.0040.01416.63
8.3.40.0130.00318.98
8.3.30.0140.00719.12
8.3.20.0030.00620.34
8.3.10.0030.00623.45
8.3.00.0090.00023.57
8.2.180.0170.00717.00
8.2.170.0100.00722.96
8.2.160.0080.00820.58
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00920.94
8.2.120.0030.00626.35
8.2.110.0080.00320.96
8.2.100.0100.00318.16
8.2.90.0060.00319.30
8.2.80.0000.00817.97
8.2.70.0030.00717.88
8.2.60.0090.00017.93
8.2.50.0070.00518.09
8.2.40.0040.00422.27
8.2.30.0040.00419.63
8.2.20.0040.00417.91
8.2.10.0030.00618.09
8.2.00.0040.00418.16
8.1.280.0170.00325.92
8.1.270.0060.00922.03
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00322.74
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0000.00817.47
8.1.180.0000.00918.10
8.1.170.0000.00818.74
8.1.160.0040.00420.87
8.1.150.0040.00418.97
8.1.140.0060.00319.59
8.1.130.0070.00017.73
8.1.120.0080.00017.67
8.1.110.0040.00417.63
8.1.100.0000.00817.61
8.1.90.0040.00417.57
8.1.80.0000.01117.58
8.1.70.0000.00717.52
8.1.60.0030.00617.66
8.1.50.0060.00317.60
8.1.40.0060.00317.75
8.1.30.0040.00417.72
8.1.20.0000.00817.81
8.1.10.0000.00817.77
8.1.00.0060.00317.64
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0070.00018.56
8.0.270.0040.00417.18
8.0.260.0030.00317.29
8.0.250.0040.00417.19
8.0.240.0070.00317.17
8.0.230.0040.00417.19
8.0.220.0040.00417.09
8.0.210.0060.00317.16
8.0.200.0050.00217.10
8.0.190.0060.00317.19
8.0.180.0030.00517.15
8.0.170.0030.00617.07
8.0.160.0080.00017.21
8.0.150.0000.00917.09
8.0.140.0040.00417.13
8.0.130.0000.00613.56
8.0.120.0030.00617.15
8.0.110.0000.00917.11
8.0.100.0030.00516.95
8.0.90.0040.00417.11
8.0.80.0090.00917.09
8.0.70.0050.00316.95
8.0.60.0040.00417.08
8.0.50.0040.00416.96
8.0.30.0120.01017.29
8.0.20.0140.01417.40
8.0.10.0050.00317.13
8.0.00.0100.01216.86
7.4.330.0000.00616.81
7.4.320.0070.00016.70
7.4.300.0000.00816.83
7.4.290.0040.00716.81
7.4.280.0030.00716.68
7.4.270.0030.00416.82
7.4.260.0050.00216.84
7.4.250.0050.00316.82
7.4.240.0080.00016.89
7.4.230.0080.00016.87
7.4.220.0180.00916.91
7.4.210.0060.01616.79
7.4.200.0040.00416.91
7.4.160.0210.00016.77
7.4.150.0130.01017.40
7.4.140.0170.01217.86
7.4.130.0110.01116.61
7.4.120.0150.00616.65
7.4.110.0090.01216.56
7.4.100.0090.01616.64
7.4.90.0070.01416.67
7.4.80.0090.01219.39
7.4.70.0150.00716.66
7.4.60.0100.01016.88
7.4.50.0030.01016.54
7.4.40.0120.00916.57
7.4.30.0190.01016.95
7.4.00.0100.00615.20
7.3.330.0070.00013.47
7.3.320.0030.00313.44
7.3.310.0040.00416.64
7.3.300.0070.00016.54
7.3.290.0020.00516.59
7.3.280.0100.01016.63
7.3.270.0150.00717.40
7.3.260.0100.01016.79
7.3.250.0120.01016.67
7.3.240.0100.01216.84
7.3.230.0190.00616.68
7.3.210.0170.00816.61
7.3.200.0080.01219.39
7.3.190.0150.01016.78
7.3.180.0180.01116.89
7.3.170.0120.01216.70
7.3.160.0160.00316.49
7.3.00.0090.00616.70
7.2.330.0060.01616.82
7.2.320.0110.01116.79
7.2.310.0170.00416.86
7.2.300.0120.00916.89
7.2.290.0150.00616.89
7.2.130.0070.01016.93
7.2.120.0150.00617.02
7.2.110.0080.00816.99
7.2.100.0060.00917.24
7.2.90.0110.00717.38
7.2.80.0070.00917.14
7.2.70.0070.01017.23
7.2.60.0080.00816.97
7.2.50.0170.00717.19
7.2.40.0060.00617.15
7.2.30.0170.00017.03
7.2.20.0070.01017.01
7.2.10.0130.00617.04
7.2.00.0050.01118.27
7.1.250.0070.00415.99
7.1.240.0070.00715.79
7.1.230.0040.00716.17
7.1.220.0070.00315.99
7.1.210.0000.00915.74
7.1.200.0060.00815.98
7.1.190.0030.01016.05
7.1.180.0130.00715.92
7.1.170.0090.00915.96
7.1.160.0040.01216.07
7.1.150.0100.00716.09
7.1.140.0030.01016.13
7.1.130.0000.01816.06
7.1.120.0080.01115.92
7.1.110.0120.00316.00
7.1.100.0070.00916.87
7.1.90.0000.01215.86
7.1.80.0000.01716.03
7.1.70.0040.00816.46
7.1.60.0100.01217.71
7.1.50.0080.01016.53
7.1.40.0070.01016.21
7.1.30.0160.00016.09
7.1.20.0090.00615.98
7.1.10.0090.00616.06
7.1.00.0060.04019.23
7.0.330.0060.00915.65
7.0.320.0080.01115.65
7.0.310.0000.01115.69
7.0.300.0100.00715.56
7.0.290.0000.01315.63
7.0.280.0040.00415.35
7.0.270.0130.00515.76
7.0.260.0040.00715.42
7.0.250.0070.00715.65
7.0.240.0100.00615.53
7.0.230.0000.01415.58
7.0.220.0140.00715.75
7.0.210.0070.00715.58
7.0.200.0110.00216.28
7.0.190.0030.00615.29
7.0.180.0060.00615.51
7.0.170.0060.00815.57
7.0.160.0000.01315.42
7.0.150.0090.00615.32
7.0.140.0030.00615.62
7.0.130.0000.01315.38
7.0.120.0070.00715.65
7.0.110.0090.00615.70
7.0.100.0030.00715.68
7.0.90.0040.00415.23
7.0.80.0080.00815.65
7.0.70.0080.00415.73
7.0.60.0170.03718.53
7.0.50.0070.03016.83
7.0.40.0070.03816.90
7.0.30.0180.04016.87
7.0.20.0050.03216.76
7.0.10.0050.04616.97
7.0.00.0020.03016.96
5.6.380.0040.01114.47
5.6.370.0070.01114.31
5.6.360.0000.01614.35
5.6.350.0060.00914.60
5.6.340.0030.01214.51
5.6.330.0030.01014.53
5.6.320.0120.00314.13
5.6.310.0120.00314.30
5.6.300.0000.01414.21
5.6.290.0060.01214.64
5.6.280.0050.02817.71
5.6.270.0070.01014.64
5.6.260.0110.00614.48
5.6.250.0030.00814.39
5.6.240.0070.00714.48
5.6.230.0000.01014.44
5.6.220.0070.00414.44
5.6.210.0050.03917.54
5.6.200.0060.04416.21
5.6.190.0110.04517.40
5.6.180.0110.04317.44
5.6.170.0230.03017.40
5.6.160.0070.02517.30
5.6.150.0070.04316.14
5.6.140.0090.03216.50
5.6.130.0050.03216.33
5.6.120.0090.02317.80
5.6.110.0080.04317.67
5.6.100.0110.04217.63
5.6.90.0060.05017.75
5.6.80.0100.04317.53
5.6.70.0140.00714.52
5.6.60.0130.00314.53
5.6.50.0100.00714.53
5.6.40.0060.00814.50
5.6.30.0070.00714.36
5.6.20.0090.00914.30
5.6.10.0060.01514.79
5.6.00.0070.01014.38
5.5.380.0000.00710.88
5.5.370.0030.01011.29
5.5.360.0060.00911.35
5.5.350.2100.02715.60
5.5.340.0050.04114.62
5.5.330.0060.02315.87
5.5.320.0340.03815.78
5.5.310.0190.04015.94
5.5.300.0070.04214.72
5.5.290.0140.03514.72
5.5.280.0080.03315.99
5.5.270.0130.03515.97
5.5.260.0070.04315.93
5.5.250.0050.04315.73
5.5.240.0130.02015.75
5.5.230.0030.00611.12
5.5.220.0050.00511.36
5.5.210.0040.00811.14
5.5.200.0090.00311.04
5.5.190.0090.00011.25
5.5.180.0040.00811.03
5.5.170.0000.01110.80
5.5.160.0030.00611.21
5.5.150.0060.00611.19
5.5.140.0030.00911.32
5.5.130.0060.00611.01
5.5.120.0030.00711.03
5.5.110.0000.01211.17
5.5.100.0040.00811.32
5.5.90.0040.00411.06
5.5.80.0130.00011.22
5.5.70.0000.01411.03
5.5.60.0000.01311.13
5.5.50.0070.00710.89
5.5.40.0040.00811.13
5.5.30.0110.00511.08
5.5.20.0000.01211.39
5.5.10.0100.00611.10
5.5.00.0070.00711.14

preferences:
43.41 ms | 400 KiB | 5 Q