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)) { foreach ($matches[1] as $match) { $blockSize = $match[1] - $match[0] + 1; $startingBlock = $match[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.0140.00716.86
8.3.50.0040.01116.66
8.3.40.0120.00319.09
8.3.30.0110.00719.11
8.3.20.0080.00020.24
8.3.10.0040.00423.66
8.3.00.0040.00421.84
8.2.180.0070.00717.00
8.2.170.0120.00322.96
8.2.160.0060.00920.46
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0140.00421.25
8.2.120.0040.00426.35
8.2.110.0110.00019.39
8.2.100.0000.01218.16
8.2.90.0040.00419.39
8.2.80.0080.00018.00
8.2.70.0060.00317.74
8.2.60.0090.00318.04
8.2.50.0100.00018.09
8.2.40.0030.00622.32
8.2.30.0060.00319.42
8.2.20.0000.00817.85
8.2.10.0000.00718.03
8.2.00.0030.00518.14
8.1.270.0030.01622.19
8.1.260.0040.00428.09
8.1.250.0030.00328.09
8.1.240.0030.00619.33
8.1.230.0000.01117.83
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.38
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0030.00518.67
8.1.160.0040.00420.73
8.1.150.0000.00718.83
8.1.140.0030.00519.52
8.1.130.0040.00417.74
8.1.120.0080.00017.52
8.1.110.0000.00717.68
8.1.100.0000.00717.63
8.1.90.0040.00417.51
8.1.80.0030.00617.52
8.1.70.0030.00317.53
8.1.60.0000.00917.74
8.1.50.0050.00517.63
8.1.40.0000.01117.69
8.1.30.0000.00817.81
8.1.20.0060.00317.84
8.1.10.0000.00817.67
8.1.00.0030.00517.60
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0000.00718.47
8.0.270.0030.00317.32
8.0.260.0030.00317.28
8.0.250.0030.00317.18
8.0.240.0000.00817.13
8.0.230.0030.00317.06
8.0.220.0050.00316.99
8.0.210.0030.00317.11
8.0.200.0070.00017.16
8.0.190.0080.00017.20
8.0.180.0040.00417.16
8.0.170.0050.00317.04
8.0.160.0000.00717.09
8.0.150.0030.00517.05
8.0.140.0040.00417.05
8.0.130.0080.00013.49
8.0.120.0080.00017.06
8.0.110.0000.00817.05
8.0.100.0040.00416.98
8.0.90.0070.00017.11
8.0.80.0000.01517.13
8.0.70.0050.00217.18
8.0.60.0040.00417.14
8.0.50.0050.00317.02
8.0.30.0040.01317.23
8.0.20.0110.01017.40
8.0.10.0040.00417.27
8.0.00.0050.01417.02
7.4.330.0030.00316.74
7.4.320.0030.00316.90
7.4.300.0000.00716.69
7.4.290.0040.00416.89
7.4.280.0040.00416.79
7.4.270.0070.00016.83
7.4.260.0040.00416.71
7.4.250.0070.00016.75
7.4.240.0040.00416.85
7.4.230.0000.00716.83
7.4.220.0030.01516.98
7.4.210.0050.01316.79
7.4.200.0040.00417.01
7.4.160.0160.00816.89
7.4.150.0070.01817.40
7.4.140.0170.00717.86
7.4.130.0140.00316.74
7.4.120.0100.01216.84
7.4.110.0000.01916.76
7.4.100.0060.01216.59
7.4.90.0160.00716.77
7.4.80.0090.00919.39
7.4.70.0040.01816.68
7.4.60.0080.01116.90
7.4.50.0130.00316.59
7.4.40.0140.00516.60
7.4.30.0130.00616.60
7.4.00.0070.01015.32
7.3.330.0060.00013.49
7.3.320.0000.00513.52
7.3.310.0000.00716.46
7.3.300.0000.00816.73
7.3.290.0040.00316.61
7.3.280.0070.01016.59
7.3.270.0090.00917.40
7.3.260.0120.00616.69
7.3.250.0130.01016.71
7.3.240.0080.01216.59
7.3.230.0090.00916.78
7.3.210.0080.00816.64
7.3.200.0090.00919.39
7.3.190.0090.00916.69
7.3.180.0070.01016.67
7.3.170.0100.01016.86
7.3.160.0110.00616.75
7.2.330.0150.00616.92
7.2.320.0110.00716.89
7.2.310.0030.01317.09
7.2.300.0090.00916.92
7.2.290.0080.00917.06
7.2.80.0050.00217.05
7.2.60.0100.00617.21
7.2.00.0070.00719.41
7.1.200.0000.01315.93
7.1.100.0060.00918.14
7.1.70.0030.00617.52
7.1.60.0040.01119.40
7.1.50.0210.01234.90
7.1.00.0000.08022.42
7.0.200.0000.01017.08
7.0.60.0170.04721.79
7.0.50.0030.06017.82
7.0.40.0030.05320.22
7.0.30.0270.05720.20
7.0.20.0230.03320.20
7.0.10.0100.05320.30
7.0.00.0130.08020.01
5.6.280.0070.04320.89
5.6.210.0030.06720.67
5.6.200.0030.08018.21
5.6.190.0100.06020.60
5.6.180.0370.07020.45
5.6.170.0400.08020.48
5.6.160.0170.03320.75
5.6.150.0130.07718.09
5.6.140.0070.08018.21
5.6.130.0100.05718.19
5.6.120.0070.08320.93
5.6.110.0230.05021.18
5.6.100.0170.03721.14
5.6.90.0170.07021.11
5.6.80.0170.06320.43
5.5.350.3800.04720.44
5.5.340.0000.06717.88
5.5.330.0030.07320.15
5.5.320.0670.07020.33
5.5.310.0270.08020.27
5.5.300.0070.04317.97
5.5.290.0070.06317.98
5.5.280.0100.08320.75
5.5.270.0170.07320.80
5.5.260.0230.06720.90
5.5.250.0070.07320.81
5.5.240.0100.03720.23

preferences:
66.49 ms | 400 KiB | 5 Q