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.0100.01417.00
8.3.50.0100.00921.18
8.3.40.0120.00418.90
8.3.30.0080.00819.01
8.3.20.0060.00320.30
8.3.10.0060.00323.64
8.3.00.0000.00823.36
8.2.180.0150.00617.13
8.2.170.0080.00822.96
8.2.160.0090.00620.16
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00421.30
8.2.120.0040.00426.35
8.2.110.0100.00022.24
8.2.100.0030.00917.85
8.2.90.0110.00018.28
8.2.80.0040.00417.97
8.2.70.0080.00317.88
8.2.60.0050.00717.90
8.2.50.0040.00818.09
8.2.40.0000.00822.18
8.2.30.0030.00619.41
8.2.20.0030.00618.05
8.2.10.0040.00418.04
8.2.00.0030.00518.18
8.1.280.0100.01025.92
8.1.270.0110.00721.99
8.1.260.0030.00528.09
8.1.250.0070.00328.09
8.1.240.0070.00323.88
8.1.230.0070.00720.90
8.1.220.0060.00317.79
8.1.210.0030.00618.90
8.1.200.0040.00817.60
8.1.190.0040.00417.36
8.1.180.0080.00018.10
8.1.170.0050.00318.69
8.1.160.0060.00320.84
8.1.150.0030.00520.63
8.1.140.0060.00319.61
8.1.130.0030.00517.74
8.1.120.0060.00317.52
8.1.110.0080.00017.60
8.1.100.0000.00817.67
8.1.90.0040.00417.52
8.1.80.0000.01017.52
8.1.70.0000.00717.62
8.1.60.0080.00017.75
8.1.50.0060.00317.67
8.1.40.0090.00017.67
8.1.30.0040.00417.77
8.1.20.0000.00817.79
8.1.10.0000.01017.68
8.1.00.0080.00017.72
8.0.300.0050.00320.13
8.0.290.0080.00016.88
8.0.280.0070.00018.50
8.0.270.0000.00817.36
8.0.260.0030.00317.27
8.0.250.0040.00417.20
8.0.240.0040.00417.18
8.0.230.0040.00417.17
8.0.220.0020.00517.16
8.0.210.0040.00417.08
8.0.200.0040.00417.13
8.0.190.0060.00317.09
8.0.180.0070.00017.11
8.0.170.0040.00417.07
8.0.160.0040.00417.13
8.0.150.0030.00617.08
8.0.140.0030.00516.96
8.0.130.0060.00013.55
8.0.120.0000.00817.00
8.0.110.0040.00417.13
8.0.100.0080.00016.98
8.0.90.0050.00317.06
8.0.80.0100.00717.15
8.0.70.0050.00316.89
8.0.60.0050.00217.07
8.0.50.0040.00417.12
8.0.30.0110.01017.28
8.0.20.0130.01017.46
8.0.10.0000.00817.36
8.0.00.0130.00916.97
7.4.330.0050.00016.68
7.4.320.0040.00416.83
7.4.300.0000.00816.88
7.4.290.0030.00316.77
7.4.280.0050.00316.73
7.4.270.0040.00416.60
7.4.260.0040.00416.74
7.4.250.0000.00816.75
7.4.240.0060.00316.77
7.4.230.0000.00716.88
7.4.220.0130.01016.87
7.4.210.0050.01916.77
7.4.200.0020.00516.93
7.4.160.0170.00316.75
7.4.150.0090.01417.40
7.4.140.0140.01417.86
7.4.130.0110.01116.79
7.4.120.0080.01216.94
7.4.110.0100.01016.57
7.4.100.0120.00816.84
7.4.90.0170.01116.80
7.4.80.0120.00919.39
7.4.70.0100.01016.81
7.4.60.0040.01716.98
7.4.50.0120.00016.61
7.4.40.0140.00716.60
7.4.30.0220.00016.68
7.4.00.0070.01315.26
7.3.330.0070.00013.24
7.3.320.0000.00613.54
7.3.310.0070.00016.68
7.3.300.0040.00416.55
7.3.290.0000.00716.64
7.3.280.0080.01216.58
7.3.270.0090.01317.40
7.3.260.0040.01516.51
7.3.250.0100.01216.74
7.3.240.0180.00616.82
7.3.230.0170.00716.62
7.3.210.0130.00616.56
7.3.200.0160.00319.39
7.3.190.0110.01516.68
7.3.180.0130.01016.60
7.3.170.0080.01516.57
7.3.160.0120.00816.72
7.3.120.0070.01115.30
7.3.110.0030.01415.22
7.3.100.0120.00315.11
7.3.90.0030.00914.79
7.3.80.0100.00314.83
7.3.70.0060.00914.78
7.3.60.0040.01214.96
7.3.50.0080.00815.05
7.3.40.0060.00615.07
7.3.30.0070.00715.11
7.3.20.0060.01616.78
7.3.10.0000.01716.93
7.3.00.0100.00616.72
7.2.330.0060.01616.78
7.2.320.0130.01416.98
7.2.310.0070.01316.79
7.2.300.0080.01216.98
7.2.290.0110.00916.88
7.2.250.0130.00615.38
7.2.240.0070.01415.21
7.2.230.0060.00915.22
7.2.220.0000.02115.24
7.2.210.0030.01215.27
7.2.200.0060.00915.34
7.2.190.0000.01615.18
7.2.180.0040.01515.26
7.2.170.0000.01415.27
7.2.60.0090.00617.13
7.2.00.0100.00319.77
7.1.330.0090.00616.07
7.1.320.0100.01016.23
7.1.310.0040.01116.09
7.1.300.0100.00716.01
7.1.290.0090.00315.96
7.1.280.0040.01116.24
7.1.270.0030.00916.08
7.1.260.0060.01015.95
7.1.200.0030.00915.82
7.1.100.0110.00518.31
7.1.70.0000.00817.43
7.1.60.0100.01719.40
7.1.50.0030.01017.15
7.1.00.0070.07322.38
7.0.200.0000.01017.04
7.0.60.0330.07021.66
7.0.50.0070.08317.89
7.0.40.0070.04720.22
7.0.30.0270.05320.20
7.0.20.0200.04320.23
7.0.10.0100.07720.00
7.0.00.0030.07020.31
5.6.280.0000.03320.81
5.6.210.0070.08020.54
5.6.200.0100.07718.16
5.6.190.0000.04720.27
5.6.180.0130.06020.27
5.6.170.0230.04720.52
5.6.160.0130.05320.32
5.6.150.0070.05018.21
5.6.140.0030.05718.09
5.6.130.0100.07718.11
5.6.120.0070.04020.98
5.6.110.0100.06721.14
5.6.100.0130.05020.88
5.6.90.0100.06020.96
5.6.80.0230.05720.53
5.5.350.4130.05720.30
5.5.340.0030.08017.92
5.5.330.0030.07720.47
5.5.320.0430.04020.13
5.5.310.0230.04720.29
5.5.300.0100.06717.94
5.5.290.0000.06017.87
5.5.280.0130.08020.77
5.5.270.0070.07720.75
5.5.260.0070.09020.80
5.5.250.0030.09020.68
5.5.240.0200.03020.16

preferences:
58.56 ms | 401 KiB | 5 Q