3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1 00:05:50,141 --> 00:05:54,771 This is what was said1 2 00:05:50,141 --> 00:05:54,771 This is what was said2 Boensnglr Dldldlsls 3 00:05:50,141 --> 00:05:54,771 This is what was said3 4 00:05:50,141 --> 00:05:54,771 This is what was said4 LLLL 5 00:05:50,141 --> 00:05:54,771 This is what was said5"; $count = explode(PHP_EOL.PHP_EOL, $str); foreach($count as &$line){ $line = implode(PHP_EOL, array_slice(explode(PHP_EOL, $line), 2)); } echo implode(PHP_EOL.PHP_EOL, $count);

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.70.0140.00716.50
8.3.60.0040.01216.50
8.3.50.0060.00817.45
8.3.40.0090.01218.71
8.3.30.0070.00718.55
8.3.20.0000.00720.24
8.3.10.0040.00423.52
8.3.00.0040.00419.53
8.2.190.0070.01016.58
8.2.180.0070.01316.50
8.2.170.0140.00718.82
8.2.160.0070.01422.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0100.00019.27
8.2.110.0060.00320.43
8.2.100.0080.00318.22
8.2.90.0030.00617.63
8.2.80.0060.00318.61
8.2.70.0080.00017.63
8.2.60.0050.00317.50
8.2.50.0040.00417.63
8.2.40.0060.00317.62
8.2.30.0040.00419.31
8.2.20.0070.00017.94
8.2.10.0000.00818.18
8.2.00.0040.00418.10
8.1.280.0040.01125.92
8.1.270.0040.00422.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.66
8.1.230.0060.00618.81
8.1.220.0000.00918.64
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0020.00518.91
8.1.160.0000.00719.00
8.1.150.0040.00418.95
8.1.140.0040.00417.45
8.1.130.0070.00018.84
8.1.120.0040.00417.40
8.1.110.0030.00617.35
8.1.100.0080.00017.47
8.1.90.0000.00717.34
8.1.80.0030.00317.44
8.1.70.0000.00717.35
8.1.60.0000.00917.58
8.1.50.0000.00717.39
8.1.40.0000.00717.38
8.1.30.0040.00417.67
8.1.20.0000.00717.59
8.1.10.0030.00617.52
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.43
8.0.270.0070.00017.27
8.0.260.0000.00717.29
8.0.250.0070.00016.93
8.0.240.0000.00816.98
8.0.230.0000.00716.94
8.0.220.0030.00316.89
8.0.210.0060.00016.89
8.0.200.0040.00417.02
8.0.190.0040.00416.92
8.0.180.0040.00416.91
8.0.170.0030.00316.80
8.0.160.0070.00016.98
8.0.150.0040.00416.86
8.0.140.0050.00216.84
8.0.130.0030.00313.36
8.0.120.0000.00716.84
8.0.110.0020.00517.00
8.0.100.0050.00216.84
8.0.90.0040.00416.93
8.0.80.0150.00016.84
8.0.70.0000.00716.88
8.0.60.0050.00216.91
8.0.50.0000.00816.76
8.0.30.0120.00516.93
8.0.20.0130.00617.40
8.0.10.0070.00317.07
8.0.00.0090.00916.64
7.4.330.0060.00015.55
7.4.320.0030.00316.50
7.4.300.0060.00016.57
7.4.290.0000.00716.50
7.4.280.0000.00816.63
7.4.270.0000.00716.48
7.4.260.0030.00316.60
7.4.250.0000.00716.56
7.4.240.0000.00716.61
7.4.230.0030.00316.66
7.4.220.0120.00616.51
7.4.210.0070.00716.55
7.4.200.0070.00016.39
7.4.160.0080.01016.61
7.4.150.0080.00917.40
7.4.140.0110.00817.86
7.4.130.0160.00316.32
7.4.120.0080.01216.50
7.4.110.0060.01216.42
7.4.100.0130.00916.47
7.4.90.0000.01716.31
7.4.80.0160.00419.39
7.4.70.0030.01816.52
7.4.60.0070.01016.32
7.4.50.0070.00716.58
7.4.40.0130.00916.59
7.4.30.0030.01316.54
7.4.00.0090.00615.01
7.3.330.0000.00513.07
7.3.320.0000.00513.10
7.3.310.0050.00316.37
7.3.300.0040.00416.25
7.3.290.0070.00016.30
7.3.280.0080.01116.26
7.3.270.0100.00717.40
7.3.260.0110.00616.45
7.3.250.0090.01116.33
7.3.240.0080.00816.37
7.3.230.0170.00616.35
7.3.210.0040.01216.28
7.3.200.0060.01416.48
7.3.190.0120.01016.48
7.3.180.0060.01016.37
7.3.170.0100.00716.50
7.3.160.0060.00916.29
7.2.330.0110.00616.61
7.2.320.0120.00616.63
7.2.310.0150.00816.59
7.2.300.0100.00716.56
7.2.290.0120.00616.66
7.2.60.0030.01016.77
7.2.00.0060.01119.43
7.1.200.0000.00915.65
7.1.120.0070.01118.91
7.1.110.0080.00818.08
7.1.100.0100.01018.10
7.1.90.0060.01018.16
7.1.80.0100.01017.84
7.1.70.0060.01517.05
7.1.60.0280.01134.87
7.1.50.0220.01434.61
7.1.40.0240.01634.34
7.1.30.0230.01434.47
7.1.20.0140.01934.57
7.1.10.0140.00916.38
7.1.00.0080.01016.38
7.0.330.0190.00517.94
7.0.260.0080.00818.13
7.0.250.0120.00617.92
7.0.240.0140.00017.70
7.0.230.0040.01617.72
7.0.220.0090.01517.82
7.0.210.0040.01316.67
7.0.200.0110.00616.73
7.0.190.0110.00716.48
7.0.180.0120.01016.19
7.0.170.0110.00816.06
7.0.160.0130.00416.23
7.0.150.0100.00816.21
7.0.140.0130.01016.24
7.0.130.0090.01116.48
7.0.120.0110.01016.48
7.0.110.0100.00916.31
7.0.100.0050.01416.17
7.0.90.0100.00916.34
7.0.80.0110.00816.25
7.0.70.0110.00916.20
7.0.60.0070.01216.16
7.0.50.0080.00916.34
7.0.40.0100.00916.52
7.0.30.0060.01016.43
7.0.20.0090.00716.40
7.0.10.0110.00616.43
7.0.00.0110.00616.37
5.6.300.0130.07220.71
5.6.290.0170.06020.70
5.6.280.0100.07020.96
5.6.270.0160.06620.88
5.6.260.0120.07420.78
5.6.250.0240.06620.92
5.6.240.0180.06520.83
5.6.230.0190.06620.87
5.6.220.0190.06520.78
5.6.210.0230.06320.76
5.6.200.0130.08120.74
5.6.190.0090.06720.84
5.6.180.0120.06820.81
5.6.170.0160.06420.87
5.6.160.0140.06120.87
5.6.150.0160.06220.84
5.6.140.0190.06820.84
5.6.130.0120.06820.72
5.6.120.0110.06320.78
5.6.110.0110.06320.84
5.6.100.0220.05420.82
5.6.90.0200.06220.95
5.6.80.0170.06320.13
5.6.70.0160.05220.19
5.6.60.0130.06420.22
5.6.50.0080.06620.19
5.6.40.0150.06420.20
5.6.30.0280.05320.15
5.6.20.0140.06520.09
5.6.10.0100.05720.07
5.6.00.0110.06720.19
5.5.380.0040.06017.56
5.5.370.0040.05917.41
5.5.360.0140.05517.39
5.5.350.0060.06017.39
5.5.340.0170.06817.93
5.5.330.0070.05617.71
5.5.320.0130.06917.80
5.5.310.0070.06117.97
5.5.300.0000.06617.74
5.5.290.0060.06317.79
5.5.280.0180.05217.74
5.5.270.0030.06517.98
5.5.260.0070.06217.95
5.5.250.0170.05017.77
5.5.240.0170.05717.15
5.5.230.0070.05917.16
5.5.220.0180.06417.11
5.5.210.0100.07217.42
5.5.200.0060.05817.23
5.5.190.0200.04717.22
5.5.180.0000.06217.31
5.5.160.0160.04917.40
5.5.150.0120.05117.40
5.5.140.0030.06217.05
5.5.130.0110.05017.09
5.5.120.0040.06017.32
5.5.110.0200.04417.39
5.5.100.0000.07617.25
5.5.90.0150.05117.12
5.5.80.0100.05017.21
5.5.70.0030.06117.11
5.5.60.0170.04617.21
5.5.50.0160.04516.95
5.5.40.0070.05517.30
5.5.30.0120.05017.22
5.5.20.0070.06017.17
5.5.10.0100.05416.98
5.5.00.0160.04817.18
5.4.450.0070.06419.29
5.4.440.0120.05619.35
5.4.430.0140.05919.21
5.4.420.0070.05819.25
5.4.410.0250.05619.15
5.4.400.0160.04818.80
5.4.390.0070.05918.80
5.4.380.0130.05918.98
5.4.370.0070.05318.87
5.4.360.0130.07319.03
5.4.350.0060.06118.93
5.4.340.0160.04518.96
5.4.320.0100.07218.71
5.4.310.0070.05718.86
5.4.300.0100.05619.02
5.4.290.0140.05818.98
5.4.280.0130.05218.98
5.4.270.0180.04618.95
5.4.260.0200.04319.00
5.4.250.0030.05918.95
5.4.240.0130.05118.85
5.4.230.0070.05718.93
5.4.220.0070.05718.86
5.4.210.0160.05018.73
5.4.200.0150.05318.86
5.4.190.0230.04218.93
5.4.180.0040.06019.01
5.4.170.0130.05018.95
5.4.160.0140.04818.89
5.4.150.0130.07518.94
5.4.140.0160.04816.34
5.4.130.0070.05016.55
5.4.120.0100.04916.48
5.4.110.0090.05016.52
5.4.100.0140.04316.38
5.4.90.0100.04816.45
5.4.80.0100.05616.52
5.4.70.0070.05216.45
5.4.60.0100.04516.55
5.4.50.0140.04316.50
5.4.40.0120.04616.38
5.4.30.0030.05416.31
5.4.20.0100.04816.49
5.4.10.0030.05916.34
5.4.00.0160.04015.98
5.3.290.0040.06314.85
5.3.280.0200.05914.76
5.3.270.0210.04514.79
5.3.260.0030.06514.41
5.3.250.0170.04714.82
5.3.240.0090.05014.80
5.3.230.0090.05414.59
5.3.220.0070.05314.66
5.3.210.0160.04614.63
5.3.200.0200.03914.54
5.3.190.0100.05114.55
5.3.180.0160.04414.69
5.3.170.0070.05114.75
5.3.160.0100.04514.72
5.3.150.0030.05714.78
5.3.140.0100.05614.51
5.3.130.0060.05414.59
5.3.120.0160.04814.64
5.3.110.0090.05114.69
5.3.100.0030.05513.84
5.3.90.0060.05114.00
5.3.80.0100.04813.95
5.3.70.0100.04914.00
5.3.60.0190.03913.98
5.3.50.0100.06314.13
5.3.40.0230.03614.12
5.3.30.0190.03813.97
5.3.20.0120.04713.68
5.3.10.0100.04513.48
5.3.00.0000.05813.75
5.2.170.0150.04811.25
5.2.160.0070.04011.29
5.2.150.0100.04011.20
5.2.140.0070.04211.16
5.2.130.0060.04811.00
5.2.120.0100.03711.08
5.2.110.0140.03310.91
5.2.100.0070.03711.03
5.2.90.0140.04611.20
5.2.80.0100.03510.90
5.2.70.0070.04211.14
5.2.60.0070.03911.16
5.2.50.0070.03910.97
5.2.40.0070.04111.01
5.2.30.0120.03411.17
5.2.20.0070.04011.11
5.2.10.0000.04510.91
5.2.00.0070.04010.77
5.1.60.0060.03710.27
5.1.50.0100.03210.07
5.1.40.0030.0429.95
5.1.30.0030.03910.38
5.1.20.0120.03110.48
5.1.10.0100.03010.14
5.1.00.0000.05110.17
5.0.50.0030.0308.68
5.0.40.0000.0428.63
5.0.30.0070.0538.53
5.0.20.0070.0348.49
5.0.10.0030.0318.36
5.0.00.0000.0468.36
4.4.90.0000.0248.36
4.4.80.0030.0208.36
4.4.70.0000.0258.36
4.4.60.0100.0168.36
4.4.50.0030.0228.36
4.4.40.0130.0268.36
4.4.30.0000.0268.36
4.4.20.0060.0218.36
4.4.10.0070.0278.36
4.4.00.0090.0378.36
4.3.110.0030.0318.36
4.3.100.0000.0338.36
4.3.90.0100.0168.36
4.3.80.0000.0378.36
4.3.70.0050.0198.36
4.3.60.0060.0188.36
4.3.50.0030.0288.36
4.3.40.0000.0388.36
4.3.30.0070.0188.36
4.3.20.0090.0168.36
4.3.10.0040.0218.36
4.3.00.0060.0198.36

preferences:
26.29 ms | 401 KiB | 5 Q