3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring="A string1 A string2 A string3 Of string4 to match"; preg_match_all('/string.{1}/',$sourcestring,$match); $myMatches = ""; foreach($match[0] as $thisMatch){ echo "$thisMatch\n"; $myMatches .= "$thisMatch<br/>"; } echo "My Matchs : " . $myMatches;

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.00718.68
8.3.50.0100.00921.39
8.3.40.0070.00718.92
8.3.30.0140.00018.96
8.3.20.0000.00819.07
8.3.10.0080.00020.63
8.3.00.0080.00418.00
8.2.180.0140.00417.00
8.2.170.0150.00022.96
8.2.160.0110.00422.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00519.89
8.2.110.0060.00321.05
8.2.100.0070.00417.97
8.2.90.0000.00819.34
8.2.80.0000.00817.97
8.2.70.0060.00617.75
8.2.60.0030.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0080.00019.99
8.2.20.0070.00017.94
8.2.10.0050.00317.72
8.2.00.0080.00017.80
8.1.280.0060.00925.92
8.1.270.0050.00223.99
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00720.79
8.1.230.0000.01320.96
8.1.220.0040.00418.77
8.1.210.0040.00418.87
8.1.200.0060.00317.35
8.1.190.0000.00717.53
8.1.180.0070.00018.10
8.1.170.0030.00618.91
8.1.160.0000.00718.91
8.1.150.0000.00718.70
8.1.140.0030.00617.65
8.1.130.0030.00317.80
8.1.120.0070.00017.64
8.1.110.0040.00417.50
8.1.100.0000.00717.61
8.1.90.0050.00317.57
8.1.80.0030.00517.62
8.1.70.0050.00317.53
8.1.60.0000.00817.63
8.1.50.0070.00017.66
8.1.40.0040.00417.70
8.1.30.0000.00817.67
8.1.20.0000.00817.77
8.1.10.0000.00917.70
8.1.00.0000.00717.54
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0040.00418.51
8.0.270.0000.00717.13
8.0.260.0030.00516.98
8.0.250.0080.00017.08
8.0.240.0090.00017.10
8.0.230.0040.00417.14
8.0.220.0070.00017.04
8.0.210.0060.00316.95
8.0.200.0030.00317.13
8.0.190.0040.00417.12
8.0.180.0000.00817.02
8.0.170.0040.00416.88
8.0.160.0070.00017.13
8.0.150.0040.00417.04
8.0.140.0050.00516.91
8.0.130.0030.00313.46
8.0.120.0040.00416.99
8.0.110.0000.00716.91
8.0.100.0000.00716.81
8.0.90.0000.00717.02
8.0.80.0060.00917.08
8.0.70.0050.00216.93
8.0.60.0070.00016.91
8.0.50.0070.00017.02
8.0.30.0030.01717.15
8.0.20.0080.01217.40
8.0.10.0000.00816.97
8.0.00.0090.00916.96
7.4.330.0050.00015.02
7.4.320.0030.00316.70
7.4.300.0030.00316.70
7.4.290.0070.00016.76
7.4.280.0050.00316.85
7.4.270.0000.00716.70
7.4.260.0000.00613.50
7.4.250.0060.00316.56
7.4.240.0040.00416.80
7.4.230.0040.00416.84
7.4.220.0100.01016.82
7.4.210.0090.00616.73
7.4.200.0000.00716.46
7.4.190.0050.00316.59
7.4.160.0090.00616.61
7.4.150.0130.00617.40
7.4.140.0110.00917.86
7.4.130.0090.00916.76
7.4.120.0090.00816.60
7.4.110.0070.01016.80
7.4.100.0100.00716.78
7.4.90.0070.01016.76
7.4.80.0110.00619.04
7.4.70.0150.00416.79
7.4.60.0080.00816.89
7.4.50.0070.00016.39
7.4.40.0100.00722.27
7.4.30.0120.00416.63
7.4.00.0000.01515.16
7.3.330.0030.00313.32
7.3.320.0030.00313.34
7.3.310.0080.00016.38
7.3.300.0000.00716.51
7.3.290.0040.01116.47
7.3.280.0090.00916.43
7.3.270.0140.00717.40
7.3.260.0090.00818.24
7.3.250.0110.00716.60
7.3.240.0130.00716.68
7.3.230.0120.00416.68
7.3.210.0100.00716.60
7.3.200.0060.01019.39
7.3.190.0030.01316.53
7.3.180.0120.00916.78
7.3.170.0100.01016.83
7.3.160.0070.01016.48
7.3.120.0000.01515.20
7.3.10.0130.00616.45
7.3.00.0130.00716.30
7.2.330.0060.01316.94
7.2.320.0180.00016.63
7.2.310.0130.00616.66
7.2.300.0040.01216.66
7.2.290.0110.00717.00
7.2.130.0080.00816.73
7.2.120.0130.01316.80
7.2.110.0130.00716.80
7.2.100.0140.00616.67
7.2.90.0100.00717.11
7.2.80.0110.00717.25
7.2.70.0200.00616.66
7.2.60.0110.00816.82
7.2.50.0230.00716.71
7.2.40.0190.00416.72
7.2.30.0170.00716.45
7.2.20.0170.00316.71
7.2.10.0130.01616.78
7.2.00.0120.01018.31
7.1.250.0140.00715.50
7.1.100.0100.00018.33
7.1.70.0000.00717.46
7.1.60.0090.01619.40
7.1.50.0230.01334.55
7.1.00.0000.03722.48
7.0.200.0030.00616.65
7.0.140.0070.07021.98
7.0.60.0070.08319.87
7.0.50.0070.05317.80
7.0.40.0370.04320.25
7.0.30.0330.04720.18
7.0.20.0230.06720.32
7.0.10.0070.04720.30
7.0.00.0100.05320.01
5.6.280.0100.06720.98
5.6.210.0170.07020.60
5.6.200.0100.07718.16
5.6.190.0000.04720.41
5.6.180.0300.05320.77
5.6.170.0230.08320.39
5.6.160.0070.06320.46
5.6.150.0030.07718.22
5.6.140.0030.09018.21
5.6.130.0100.08018.07
5.6.120.0130.08021.09
5.6.110.0170.03020.97
5.6.100.0000.06320.97
5.6.90.0100.08020.95
5.6.80.0030.04020.41
5.6.70.0300.07320.52
5.5.350.2530.03320.38
5.5.340.0070.08317.95
5.5.330.0030.08720.40
5.5.320.0230.08320.41
5.5.310.0200.05320.41
5.5.300.0070.08017.98
5.5.290.0030.08717.92
5.5.280.0030.04720.89
5.5.270.0130.07720.75
5.5.260.0070.06020.65
5.5.250.0130.03320.58
5.5.240.0070.07720.19
5.4.450.0000.04019.48
5.4.440.0030.08019.11
5.4.430.0000.05019.40
5.4.420.0070.06319.11
5.4.410.0030.06719.12
5.4.400.0070.03319.14
5.4.390.0070.05719.18
5.4.380.0030.08018.79
5.4.370.0000.04019.08
5.4.360.0030.07018.82
5.4.350.0000.06719.08
5.4.340.0070.05719.18
5.4.320.0100.03719.14
5.4.310.0070.07319.07
5.4.300.0030.05018.78
5.4.290.0070.07019.00
5.4.280.0070.04019.18
5.4.270.0070.04018.91
5.4.260.0070.07318.78
5.4.250.0070.07319.08
5.4.240.0100.05018.80
5.4.230.0030.04318.90
5.4.220.0070.06718.80
5.4.210.0100.03718.78
5.4.200.0100.03019.16
5.4.190.0070.07718.91
5.4.180.0070.05318.93
5.4.170.0070.07719.10
5.4.160.0000.07019.06
5.4.150.0070.04019.15
5.4.140.0170.04716.25
5.4.130.0000.04016.24
5.4.120.0070.03716.48
5.4.110.0030.03716.24
5.4.100.0100.06016.27
5.4.90.0000.03716.41
5.4.80.0070.03016.43
5.4.70.0070.06316.23
5.4.60.0070.06716.22
5.4.50.0100.03316.27
5.4.40.0100.03016.25
5.4.30.0000.04016.21
5.4.20.0000.06716.23
5.4.10.0070.07316.21
5.4.00.0030.03715.72
5.3.290.0070.07314.59
5.3.280.0000.07714.54
5.3.270.0170.06314.62
5.3.260.0130.06714.54
5.3.250.0070.04014.53
5.3.240.0070.06014.54
5.3.230.0100.03714.54
5.3.220.0030.04314.48
5.3.210.0070.06014.52
5.3.200.0100.07014.52
5.3.190.0000.04314.39
5.3.180.0030.06314.49
5.3.170.0030.03714.49
5.3.160.0000.05314.65
5.3.150.0030.03714.50
5.3.140.0130.06714.66
5.3.130.0130.06714.36
5.3.120.0070.06714.48
5.3.110.0100.07314.39
5.3.100.0070.07013.98
5.3.90.0070.03313.94
5.3.80.0030.04714.04
5.3.70.0030.04013.94
5.3.60.0000.04013.98
5.3.50.0030.03713.88
5.3.40.0030.03713.78
5.3.30.0100.06013.75
5.3.20.0000.06013.80
5.3.10.0070.03713.47
5.3.00.0100.06713.73
5.2.170.0000.05011.00
5.2.160.0030.05011.07
5.2.150.0030.02711.07
5.2.140.0070.04311.12
5.2.130.0100.05311.11
5.2.120.0030.06011.07
5.2.110.0100.02311.09
5.2.100.0030.03711.18
5.2.90.0070.04311.03
5.2.80.0030.03010.95
5.2.70.0130.05710.98
5.2.60.0000.03011.04
5.2.50.0070.04010.95
5.2.40.0070.06010.96
5.2.30.0000.06010.83
5.2.20.0000.03010.93
5.2.10.0000.03010.75
5.2.00.0000.06710.71
5.1.60.0000.0339.98
5.1.50.0000.02710.07
5.1.40.0070.0209.82
5.1.30.0000.03310.30
5.1.20.0000.06710.36
5.1.10.0070.05310.01
5.1.00.0070.0479.97
5.0.50.0000.0479.13
5.0.40.0070.0409.13
5.0.30.0000.0379.13
5.0.20.0070.0409.13
5.0.10.0030.0209.13
5.0.00.0000.0609.13
4.4.90.0030.0179.13
4.4.80.0000.0179.13
4.4.70.0000.0179.13
4.4.60.0000.0309.13
4.4.50.0070.0239.13
4.4.40.0030.0309.13
4.4.30.0030.0139.13
4.4.20.0000.0339.13
4.4.10.0030.0179.13
4.4.00.0000.0279.13
4.3.110.0030.0209.13
4.3.100.0000.0379.13
4.3.90.0000.0379.13
4.3.80.0000.0309.13
4.3.70.0100.0239.13
4.3.60.0030.0139.13
4.3.50.0000.0239.13
4.3.40.0000.0539.13
4.3.30.0000.0309.13
4.3.20.0030.0209.13
4.3.10.0000.0179.13
4.3.00.0000.0179.13

preferences:
45.85 ms | 401 KiB | 5 Q