3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_to_parse ="ADDING MEMBER ID 199867 TO THE 25 MATRIX... Checking For Next Paid Sponsor in Level 25 SPONSOR ID FOUND IS 199849 Sponsor ID found to be: 199849 Checking Row 1 Checking Row 2 COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID: 2377893"; function FindSponserId($string_to_parse) { if (preg_match("/COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID:/", $string_to_parse, $matches)) { $array_index = explode("COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID:",$string_to_parse); $sponsor_id = $array_index[1]; print_r("Sponsor Id :: ".$sponsor_id); } } FindSponserId($string_to_parse); ?>

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.01018.30
8.3.50.0140.00521.14
8.3.40.0070.01119.06
8.3.30.0110.00419.23
8.3.20.0080.00020.33
8.3.10.0000.00922.09
8.3.00.0040.00422.39
8.2.180.0120.00916.88
8.2.170.0000.01522.96
8.2.160.0070.00719.33
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0050.00319.73
8.2.110.0130.00320.39
8.2.100.0090.00319.70
8.2.90.0000.00919.35
8.2.80.0030.00517.97
8.2.70.0090.00017.63
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0000.00819.91
8.2.30.0040.00418.20
8.2.20.0040.00417.93
8.2.10.0040.00417.87
8.2.00.0040.00417.95
8.1.280.0070.01125.92
8.1.270.0040.00422.20
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0000.01023.76
8.1.230.0040.00819.20
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.53
8.1.180.0000.00818.58
8.1.170.0080.00018.70
8.1.160.0000.00722.20
8.1.150.0040.00418.73
8.1.140.0060.00317.54
8.1.130.0070.00017.76
8.1.120.0000.00717.54
8.1.110.0070.00017.52
8.1.100.0000.00717.56
8.1.90.0000.00717.58
8.1.80.0050.00217.54
8.1.70.0070.00017.44
8.1.60.0030.00617.72
8.1.50.0050.00317.66
8.1.40.0040.00417.55
8.1.30.0000.00817.82
8.1.20.0030.00517.64
8.1.10.0020.00517.73
8.1.00.0040.00417.71
8.0.300.0050.00218.77
8.0.290.0040.00417.16
8.0.280.0040.00418.34
8.0.270.0000.00717.28
8.0.260.0000.00617.02
8.0.250.0030.00317.09
8.0.240.0000.00717.00
8.0.230.0030.00317.07
8.0.220.0000.00717.03
8.0.210.0000.00717.08
8.0.200.0030.00317.06
8.0.190.0070.00017.10
8.0.180.0000.00717.04
8.0.170.0080.00017.01
8.0.160.0000.00717.13
8.0.150.0000.00717.04
8.0.140.0040.00416.89
8.0.130.0030.00313.56
8.0.120.0040.00416.98
8.0.110.0080.00017.09
8.0.100.0040.00416.84
8.0.90.0040.00416.93
8.0.80.0110.00716.91
8.0.70.0040.00416.93
8.0.60.0070.00016.89
8.0.50.0040.00416.77
8.0.30.0110.00717.19
8.0.20.0130.01017.46
8.0.10.0000.00717.21
8.0.00.0110.00817.12
7.4.330.0030.00315.00
7.4.320.0060.00016.73
7.4.300.0040.00416.77
7.4.290.0000.00716.79
7.4.280.0000.00716.82
7.4.270.0070.00016.84
7.4.260.0070.00016.75
7.4.250.0080.00016.66
7.4.240.0020.00516.75
7.4.230.0070.00016.63
7.4.220.0000.01716.70
7.4.210.0070.00716.72
7.4.200.0040.00416.82
7.4.190.0080.00016.98
7.4.160.0030.01316.68
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0090.01216.70
7.4.120.0060.01216.65
7.4.110.0100.00716.64
7.4.100.0110.01116.63
7.4.90.0160.00616.77
7.4.80.0060.01219.39
7.4.70.0070.01116.66
7.4.60.0070.01016.72
7.4.50.0000.00816.48
7.4.40.0060.01022.77
7.4.30.0100.00716.80
7.4.00.0070.01015.14
7.3.330.0000.00613.34
7.3.320.0030.00313.48
7.3.310.0000.00716.57
7.3.300.0040.00416.52
7.3.290.0100.00316.35
7.3.280.0110.00616.42
7.3.270.0130.00317.40
7.3.260.0100.01416.45
7.3.250.0120.00916.54
7.3.240.0080.00816.44
7.3.230.0060.01216.46
7.3.210.0130.00316.47
7.3.200.0120.00919.39
7.3.190.0150.00616.44
7.3.180.0060.01216.70
7.3.170.0080.00816.74
7.3.160.0100.00616.60
7.3.120.0000.01115.21
7.2.330.0040.01516.77
7.2.320.0140.00516.76
7.2.310.0030.01416.68
7.2.300.0080.00916.64
7.2.290.0130.00316.93
7.1.70.0090.00417.36
7.1.60.0030.02219.82
7.1.50.0070.01417.35
7.1.00.0100.07022.36
7.0.200.0030.01216.99
7.0.140.0000.08022.21
7.0.60.0070.07319.90
7.0.50.0200.04317.89
7.0.40.0130.03720.06
7.0.30.0500.06020.20
7.0.20.0200.05720.21
7.0.10.0070.08720.32
7.0.00.0000.06020.02
5.6.280.0000.07720.93
5.6.210.0070.08320.63
5.6.200.0070.08018.18
5.6.190.0030.08720.77
5.6.180.0300.06720.61
5.6.170.0230.04020.56
5.6.160.0130.07720.71
5.6.150.0030.08718.25
5.6.140.0100.06018.16
5.6.130.0130.06718.18
5.6.120.0070.08321.12
5.6.110.0130.04720.89
5.6.100.0030.04020.97
5.6.90.0070.08320.99
5.6.80.0030.08320.37
5.5.350.0100.05720.45
5.5.340.0070.08017.98
5.5.330.0070.05320.27
5.5.320.0000.05320.27
5.5.310.0130.04320.34
5.5.300.0030.08718.09
5.5.290.0000.07318.06
5.5.280.0070.06320.80
5.5.270.0330.06020.86
5.5.260.0000.05320.76
5.5.250.0130.07720.59
5.5.240.4130.04020.15
5.4.450.0000.05319.47
5.4.440.0030.04319.46
5.4.430.0230.05319.46
5.4.420.0000.08719.46
5.4.410.0030.07719.16
5.4.400.0030.07319.24
5.4.390.0030.08018.89
5.4.380.0070.07318.95
5.4.370.0030.06018.87
5.4.360.0100.07319.21
5.4.350.0030.05019.16
5.4.340.0030.07719.06
5.4.320.0000.06019.22
5.4.310.0000.08318.87
5.4.300.0000.07319.14
5.4.290.0030.06318.87
5.4.280.0070.07019.15
5.4.270.0130.06319.20
5.4.260.0000.07319.00
5.4.250.0170.05719.31
5.4.240.0000.05718.86
5.4.230.0070.04018.98
5.4.220.0000.08018.85
5.4.210.0000.08019.15
5.4.200.0200.04719.21
5.4.190.0070.04019.08
5.4.180.0000.08019.21
5.4.170.0130.05019.13
5.4.160.0030.06319.25
5.4.150.0100.05319.18
5.4.140.0000.06016.53
5.4.130.0030.04316.51
5.4.120.0030.07316.35
5.4.110.0000.04016.56
5.4.100.0000.07316.55
5.4.90.0000.07316.63
5.4.80.0070.06316.49
5.4.70.0000.07716.55
5.4.60.0100.05016.39
5.4.50.0070.06316.52
5.4.40.0070.06016.24
5.4.30.0030.04316.50
5.4.20.0000.04716.42
5.4.10.0030.06316.42
5.4.00.0070.06015.79
5.3.290.0100.04714.56
5.3.280.0000.07714.64
5.3.270.0070.06714.67
5.3.260.0030.08014.67
5.3.250.0000.04314.65
5.3.240.0070.07314.82
5.3.230.0030.04714.50
5.3.220.0000.08014.68
5.3.210.0000.04714.78
5.3.200.0030.07714.63
5.3.190.0000.08014.43
5.3.180.0030.07714.65
5.3.170.0030.07314.61
5.3.160.0100.04714.56
5.3.150.0000.04714.47
5.3.140.0030.07014.77
5.3.130.0070.07714.56
5.3.120.0000.08314.61
5.3.110.0000.05714.61
5.3.100.0000.08014.04
5.3.90.0030.05313.94
5.3.80.0030.04713.94
5.3.70.0000.06013.92
5.3.60.0000.04313.91
5.3.50.0000.04713.85
5.3.40.0030.03714.03
5.3.30.0000.03713.98
5.3.20.0070.06013.91
5.3.10.0030.04313.58
5.3.00.0000.07013.75
5.2.170.0030.05712.10
5.2.160.0030.03712.10
5.2.150.0030.02712.10
5.2.140.0030.04012.10
5.2.130.0000.04012.10
5.2.120.0070.05012.10
5.2.110.0000.03712.10
5.2.100.0030.04712.10
5.2.90.0030.04012.10
5.2.80.0030.04012.10
5.2.70.0000.04012.10
5.2.60.0030.04012.10
5.2.50.0030.04312.10
5.2.40.0100.04312.10
5.2.30.0070.03712.10
5.2.20.0130.02712.10
5.2.10.0100.05712.10
5.2.00.0000.05312.10
5.1.60.0030.02712.10
5.1.50.0000.02712.10
5.1.40.0070.05012.10
5.1.30.0030.05712.10
5.1.20.0030.03712.10
5.1.10.0000.06012.10
5.1.00.0000.05312.10
5.0.50.0030.03312.10
5.0.40.0070.03312.10
5.0.30.0070.05312.10
5.0.20.0000.02312.10
5.0.10.0030.04312.10
5.0.00.0000.06012.10
4.4.90.0000.03012.10
4.4.80.0000.02312.10
4.4.70.0030.03012.10
4.4.60.0000.02312.10
4.4.50.0030.03312.10
4.4.40.0000.02712.10
4.4.30.0030.01312.10
4.4.20.0030.03712.10
4.4.10.0000.03712.10
4.4.00.0000.03312.10
4.3.110.0000.03712.10
4.3.100.0000.02712.10
4.3.90.0000.02312.10
4.3.80.0030.03012.10
4.3.70.0000.03712.10
4.3.60.0000.03712.10
4.3.50.0070.02712.10
4.3.40.0000.03012.10
4.3.30.0000.02312.10
4.3.20.0000.03312.10
4.3.10.0000.02012.10
4.3.00.0030.02012.10

preferences:
36.33 ms | 401 KiB | 5 Q