3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cutlist=explode("\n", 'FILE PROCESSING COMPLETE 99042 FRAMES AT 2500 ------------------- 27475 32467 52725 58360 86124 89494 96382 99042'); #Markssql will hold the lines of SQL to insert in to the DB. $marks=array(); #Go through each line foreach ($cutlist as $aline) { #And match "One or more digit followed by one or more space/tab folowed by one or more digits again" #ie. Look for two columns of numbers - get those numbers. preg_match_all('/^([0-9]+)\s+([0-9]+)/',$aline,$result); #if there numbers make sense, create some SQL to insert the record in to the database if(!empty($result[1])) { if (($result[1][0]>0)&&($result[2][0])>1) { $marks[$result[1][0]]=MARK_COMM_START; $marks[$result[2][0]]=MARK_COMM_END; } } } var_dump($marks);

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.0120.00918.43
8.3.50.0140.00822.07
8.3.40.0090.00619.04
8.3.30.0070.00719.04
8.3.20.0000.00720.18
8.3.10.0080.00020.66
8.3.00.0060.00319.63
8.2.180.0030.01616.72
8.2.170.0070.00722.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0000.01124.66
8.2.130.0040.00426.16
8.2.120.0040.00422.22
8.2.110.0090.00022.15
8.2.100.0090.00318.16
8.2.90.0040.00419.18
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00717.92
8.2.50.0080.00018.07
8.2.40.0060.00318.28
8.2.30.0070.00019.40
8.2.20.0070.00017.97
8.2.10.0080.00018.16
8.2.00.0040.00417.97
8.1.280.0040.01125.92
8.1.270.0050.00323.84
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00623.84
8.1.230.0030.01019.13
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.61
8.1.190.0040.00417.60
8.1.180.0030.00518.10
8.1.170.0030.00618.91
8.1.160.0040.00422.04
8.1.150.0070.00018.98
8.1.140.0000.00817.64
8.1.130.0030.00317.75
8.1.120.0040.00417.55
8.1.110.0040.00417.62
8.1.100.0000.00717.70
8.1.90.0030.00617.61
8.1.80.0040.00417.52
8.1.70.0030.00317.56
8.1.60.0030.00617.68
8.1.50.0050.00317.53
8.1.40.0040.00417.68
8.1.30.0000.00917.73
8.1.20.0000.00817.67
8.1.10.0040.00417.76
8.1.00.0070.00017.70
8.0.300.0040.00418.77
8.0.290.0050.00217.13
8.0.280.0070.00018.41
8.0.270.0030.00317.31
8.0.260.0000.00617.27
8.0.250.0030.00317.19
8.0.240.0060.00317.18
8.0.230.0000.00717.14
8.0.220.0000.00817.12
8.0.210.0040.00417.13
8.0.200.0030.00317.14
8.0.190.0040.00417.21
8.0.180.0000.00817.09
8.0.170.0040.00417.20
8.0.160.0070.00017.19
8.0.150.0030.00317.03
8.0.140.0000.00717.05
8.0.130.0030.00313.60
8.0.120.0030.00617.06
8.0.110.0030.00517.10
8.0.100.0040.00416.96
8.0.90.0040.00417.00
8.0.80.0120.00417.11
8.0.70.0030.00617.02
8.0.60.0000.00716.98
8.0.50.0070.00017.09
8.0.30.0090.01017.46
8.0.20.0090.00817.40
8.0.10.0000.00717.22
8.0.00.0100.00717.07
7.4.330.0050.00015.00
7.4.320.0060.00016.84
7.4.300.0060.00016.75
7.4.290.0030.00316.87
7.4.280.0000.00716.79
7.4.270.0040.00416.75
7.4.260.0000.00716.68
7.4.250.0040.00416.72
7.4.240.0020.00516.84
7.4.230.0040.00416.87
7.4.220.0090.01116.74
7.4.210.0100.01016.82
7.4.200.0030.00316.92
7.4.160.0130.00316.73
7.4.150.0150.00317.40
7.4.140.0070.01117.86
7.4.130.0110.00716.78
7.4.120.0110.00916.86
7.4.110.0070.01016.89
7.4.100.0160.00316.90
7.4.90.0080.01216.69
7.4.80.0200.00319.39
7.4.70.0100.00716.73
7.4.60.0110.00416.62
7.4.50.0030.00316.54
7.4.40.0130.00416.64
7.4.30.0060.01216.89
7.4.00.0050.01015.09
7.3.330.0000.00613.48
7.3.320.0000.00513.42
7.3.310.0030.00316.56
7.3.300.0080.00016.59
7.3.290.0110.00316.52
7.3.280.0080.01016.59
7.3.270.0170.00517.40
7.3.260.0130.00716.59
7.3.250.0080.01016.52
7.3.240.0060.01216.88
7.3.230.0070.01016.61
7.3.210.0130.00516.82
7.3.200.0100.00719.39
7.3.190.0100.00616.50
7.3.180.0100.00716.81
7.3.170.0110.00716.77
7.3.160.0070.01416.51
7.3.120.0060.01014.89
7.3.110.0080.00815.25
7.3.100.0070.01315.11
7.3.90.0030.01015.09
7.3.80.0070.00715.07
7.3.70.0030.00714.81
7.3.60.0040.00815.08
7.3.50.0040.00715.24
7.3.40.0000.01014.96
7.3.30.0070.00714.80
7.3.20.0040.01116.89
7.3.10.0070.00416.63
7.3.00.0000.01216.93
7.2.330.0090.00916.82
7.2.320.0140.00316.90
7.2.310.0030.01516.90
7.2.300.0030.01316.87
7.2.290.0090.00916.73
7.2.250.0150.00615.10
7.2.240.0090.00615.28
7.2.230.0070.00715.44
7.2.220.0090.00615.44
7.2.210.0040.01215.23
7.2.200.0060.01015.18
7.2.190.0110.00315.26
7.2.180.0060.00615.23
7.2.170.0000.01115.27
7.2.60.0140.00016.70
7.2.00.0100.00319.73
7.1.330.0080.00816.21
7.1.320.0110.00715.89
7.1.310.0070.00716.02
7.1.300.0080.00315.86
7.1.290.0040.01115.76
7.1.280.0030.00916.14
7.1.270.0030.01016.00
7.1.260.0070.00716.13
7.1.200.0110.00015.77
7.1.100.0100.00318.46
7.1.70.0060.01017.36
7.1.60.0070.01319.61
7.1.50.0000.01217.05
7.1.00.0100.07022.54
7.0.200.0000.00917.03
7.0.140.0130.06322.07
7.0.60.0170.07320.05
7.0.50.0070.07317.84
7.0.40.0170.08320.26
7.0.30.0200.04320.01
7.0.20.0270.06720.05
7.0.10.0330.07320.18
7.0.00.0130.08020.01
5.6.280.0030.07321.08
5.6.210.0070.09020.70
5.6.200.0100.07018.09
5.6.190.0000.04720.77
5.6.180.0200.04720.61
5.6.170.0270.07720.47
5.6.160.0200.04320.41
5.6.150.0070.05018.18
5.6.140.0070.06018.11
5.6.130.0070.06018.21
5.6.120.0170.07321.00
5.6.110.0000.04321.09
5.6.100.0100.05320.97
5.6.90.0030.08720.92
5.6.80.0130.07020.36
5.5.350.0030.06720.46
5.5.340.0070.04017.92
5.5.330.0000.06020.20
5.5.320.0230.05020.31
5.5.310.0200.08720.27
5.5.300.0230.07018.02
5.5.290.0130.08317.92
5.5.280.0100.08020.87
5.5.270.0030.08320.67
5.5.260.0000.05020.87
5.5.250.0030.06320.58
5.5.240.0070.07720.11
5.4.450.0400.04019.41
5.4.440.0300.04319.57
5.4.430.0200.04019.45
5.4.420.0330.05019.45
5.4.410.0300.04319.11
5.4.400.0600.02719.09
5.4.390.0530.03718.91
5.4.380.0600.05718.57
5.4.370.0400.07718.74
5.4.360.0300.06718.59
5.4.350.0230.05718.59
5.4.340.0370.05318.50
5.4.320.0040.03712.46
5.4.310.0100.03812.45
5.4.300.0040.03712.45
5.4.290.0080.05012.45
5.4.280.0080.04212.35
5.4.270.0080.03912.35
5.4.260.0050.03912.35
5.4.250.0030.04112.35
5.4.240.0060.04012.35
5.4.230.0040.03912.34
5.4.220.0060.03612.34
5.4.210.0060.03412.34
5.4.200.0050.04012.34
5.4.190.0040.03712.34
5.4.180.0030.03912.34
5.4.170.0060.03412.35
5.4.160.0080.04112.34
5.4.150.0050.03612.34
5.4.140.0060.04012.02
5.4.130.0070.03512.02
5.4.120.0060.04211.97
5.4.110.0060.04011.97
5.4.100.0100.03611.97
5.4.90.0060.03511.97
5.4.80.0080.04011.96
5.4.70.0080.03611.96
5.4.60.0060.03311.96
5.4.50.0030.03711.96
5.4.40.0060.03411.95
5.4.30.0080.03311.95
5.4.20.0060.03411.95
5.4.10.0070.03211.95
5.4.00.0080.03211.44
5.3.290.0050.03912.80
5.3.280.0080.03512.71
5.3.270.0060.03812.72
5.3.260.0070.04312.72
5.3.250.0070.03512.72
5.3.240.0070.03512.72
5.3.230.0080.04112.71
5.3.220.0050.04012.68
5.3.210.0060.04012.68
5.3.200.0050.03712.68
5.3.190.0110.03512.68
5.3.180.0080.03512.68
5.3.170.0050.03712.67
5.3.160.0120.03112.67
5.3.150.0080.03412.68
5.3.140.0080.03312.66
5.3.130.0040.04012.66
5.3.120.0100.03712.66
5.3.110.0090.04312.66
5.3.100.0070.04612.11
5.3.90.0070.03512.09
5.3.80.0070.03412.07
5.3.70.0040.03812.08
5.3.60.0060.03512.07
5.3.50.0080.03312.00
5.3.40.0050.03612.00
5.3.30.0070.03711.96
5.3.20.0060.03911.73
5.3.10.0070.03811.70
5.3.00.0050.03911.69
5.2.170.0050.0399.19
5.2.160.0070.0309.19
5.2.150.0070.0299.19
5.2.140.0050.0309.19
5.2.130.0060.0339.15
5.2.120.0040.0309.15
5.2.110.0060.0289.16
5.2.100.0060.0279.15
5.2.90.0040.0369.15
5.2.80.0070.0289.15
5.2.70.0050.0299.15
5.2.60.0080.0269.10
5.2.50.0060.0289.07
5.2.40.0060.0279.05
5.2.30.0030.0319.04
5.2.20.0030.0309.02
5.2.10.0060.0268.93
5.2.00.0040.0328.78
5.1.60.0070.0218.07
5.1.50.0040.0258.06
5.1.40.0030.0268.04
5.1.30.0030.0278.39
5.1.20.0090.0218.41
5.1.10.0050.0258.14
5.1.00.0080.0288.14
5.0.50.0030.0226.62
5.0.40.0030.0206.48
5.0.30.0060.0286.30
5.0.20.0030.0206.27
5.0.10.0050.0196.25
5.0.00.0020.0316.23
4.4.90.0040.0164.78
4.4.80.0030.0174.76
4.4.70.0060.0144.75
4.4.60.0040.0144.75
4.4.50.0030.0194.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0050.0194.84
4.4.10.0060.0164.85
4.4.00.0050.0234.76
4.3.110.0050.0144.66
4.3.100.0020.0194.66
4.3.90.0040.0154.64
4.3.80.0020.0254.59
4.3.70.0040.0144.63
4.3.60.0010.0164.63
4.3.50.0040.0154.63
4.3.40.0030.0244.54
4.3.30.0030.0153.29
4.3.20.0030.0183.27
4.3.10.0030.0213.22
4.3.00.0000.02316.72

preferences:
49.93 ms | 401 KiB | 5 Q