3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'GuiPrinter.ProcessPrint of 116806 25374 K356 S Black Face.png 229 at 1 table'; $re = '/GuiPrinter\.ProcessPrint of \K.*?\.(?:gif|png|bmp|jpe?g)\b/'; function findMatch($message, $regex) { preg_match($regex, $message, $matches); return array_shift($matches); } $result = findMatch($str, $re); if ($result) { echo "Found: $result"; } else { echo "No match."; }

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.5.30.0110.00819.52
8.5.20.0100.00819.59
8.5.10.0090.00916.87
8.5.00.0100.01120.30
8.4.180.0140.00725.53
8.4.170.0150.00723.82
8.4.160.0120.01023.97
8.4.150.0050.00816.93
8.4.140.0120.00917.88
8.4.130.0130.00817.88
8.4.120.0080.00320.37
8.4.110.0080.00218.62
8.4.100.0110.00117.86
8.4.90.0120.00817.93
8.4.80.0090.01117.90
8.4.70.0080.00818.05
8.4.60.0120.00817.95
8.4.50.0110.00824.02
8.4.40.0100.00018.01
8.4.30.0100.01017.92
8.4.20.0030.00618.61
8.4.10.0060.01017.76
8.3.300.0130.00722.73
8.3.290.0120.00920.92
8.3.280.0090.01018.48
8.3.270.0110.00916.49
8.3.260.0110.00916.53
8.3.250.0170.00719.07
8.3.240.0130.00616.57
8.3.230.0100.00916.61
8.3.220.0060.00317.30
8.3.210.0080.00816.47
8.3.200.0130.00719.00
8.3.190.0110.00816.67
8.3.180.0080.00818.53
8.3.170.0070.01116.71
8.3.160.0090.00916.84
8.3.150.0060.01217.19
8.3.140.0030.00616.61
8.3.130.0080.00018.67
8.3.120.0000.00818.85
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0040.00426.77
8.3.80.0090.00016.50
8.3.70.0110.00718.43
8.3.60.0140.00018.38
8.3.50.0110.00518.14
8.3.40.0040.01118.79
8.3.30.0110.00718.92
8.3.20.0040.00419.15
8.3.10.0030.00523.61
8.3.00.0060.00323.65
8.2.300.0140.00718.32
8.2.290.0120.00620.42
8.2.280.0110.00816.59
8.2.270.0080.01116.91
8.2.260.0040.00417.22
8.2.250.0090.00616.86
8.2.240.0100.01016.94
8.2.230.0110.00022.58
8.2.220.0090.00037.54
8.2.210.0030.00526.77
8.2.200.0060.00316.88
8.2.190.0090.00916.75
8.2.180.0110.00425.92
8.2.170.0070.00718.95
8.2.160.0040.01222.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0070.00319.26
8.2.110.0060.00321.15
8.2.100.0080.00418.03
8.2.90.0030.00519.89
8.2.80.0000.00918.03
8.2.70.0000.00817.80
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0000.00719.30
8.2.30.0040.00420.65
8.2.20.0000.00818.08
8.2.10.0060.00318.08
8.2.00.0000.00819.50
8.1.340.0110.00819.98
8.1.330.0110.00816.97
8.1.320.0100.01016.34
8.1.310.0060.00318.46
8.1.300.0120.00620.19
8.1.290.0100.00018.88
8.1.280.0090.00625.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00923.97
8.1.230.0000.01220.97
8.1.220.0030.00617.78
8.1.210.0060.00318.90
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00318.84
8.1.160.0040.00418.76
8.1.150.0050.00218.91
8.1.140.0030.00318.99
8.1.130.0040.00419.03
8.1.120.0000.00717.45
8.1.110.0040.00417.53
8.1.100.0090.00017.43
8.1.90.0000.00717.45
8.1.80.0070.00017.43
8.1.70.0110.00017.55
8.1.60.0080.00017.80
8.1.50.0000.00817.56
8.1.40.0040.00417.55
8.1.30.0090.00317.80
8.1.20.0040.00717.71
8.1.10.0030.00517.64
8.1.00.0030.00517.66
8.0.300.0000.00819.85
8.0.290.0030.00616.88
8.0.280.0040.00418.35
8.0.270.0100.00017.27
8.0.260.0030.00317.27
8.0.250.0070.00017.00
8.0.240.0030.00316.99
8.0.230.0070.00017.05
8.0.220.0000.00717.08
8.0.210.0030.00316.95
8.0.200.0040.00417.12
8.0.190.0070.00016.97
8.0.180.0000.00817.10
8.0.170.0000.00817.07
8.0.160.0040.00417.09
8.0.150.0000.00716.98
8.0.140.0000.00717.02
8.0.130.0030.00313.48
8.0.120.0000.00817.06
8.0.110.0080.00016.93
8.0.100.0040.00416.95
8.0.90.0000.00717.09
8.0.80.0120.00616.94
8.0.70.0040.00417.01
8.0.60.0040.00416.92
8.0.50.0080.00016.84
8.0.30.0070.01117.36
8.0.20.0100.00917.41
8.0.10.0000.00716.93
8.0.00.0050.01216.90
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0070.00016.82
7.4.290.0070.00016.63
7.4.280.0090.00016.81
7.4.270.0040.00416.82
7.4.260.0040.00416.68
7.4.250.0040.00416.67
7.4.240.0000.00716.83
7.4.230.0040.00416.91
7.4.220.0050.00316.82
7.4.210.0050.01016.73
7.4.200.0070.00016.72
7.4.160.0130.00816.75
7.4.140.0120.01017.86
7.4.130.0110.00716.63
7.4.120.0100.00716.75
7.4.110.0100.00716.68
7.4.100.0060.01216.66
7.4.90.0070.01116.59
7.4.80.0130.00319.39
7.4.70.0120.00616.75
7.4.60.0090.01216.66
7.4.50.0060.01016.61
7.4.40.0030.01516.49
7.4.00.0030.01015.21
7.3.330.0060.00013.27
7.3.320.0020.00213.28
7.3.310.0040.00316.50
7.3.300.0070.00016.51
7.3.290.0070.00016.48
7.3.280.0070.01016.46
7.3.260.0130.01116.67
7.3.240.0130.00616.71
7.3.230.0040.01216.74
7.3.210.0040.01316.81
7.3.200.0030.01316.68
7.3.190.0120.00616.66
7.3.180.0160.00016.77
7.3.170.0100.01116.92
7.3.160.0030.01316.92
7.2.330.0170.01116.88
7.2.320.0060.01016.77
7.2.310.0100.00716.62
7.2.300.0060.01216.78
7.2.290.0100.00716.70
7.2.80.0450.00714.91
7.2.70.0640.00615.12
7.2.60.0150.00615.24
7.2.50.0590.00715.09
7.2.40.0550.00914.95
7.2.30.0350.00715.18
7.2.20.0630.00615.28
7.2.10.0660.00415.21
7.2.00.0710.00315.11
7.1.200.0320.00814.01
7.1.190.0980.00514.19
7.1.180.0050.00713.98
7.1.170.0340.00414.09
7.1.160.0140.00314.05
7.1.150.0220.00814.01
7.1.140.0390.00614.07
7.1.130.0390.00613.98
7.1.120.0850.00614.15
7.1.110.0510.00214.03
7.1.100.0670.00514.09
7.1.90.0630.00814.19
7.1.80.0770.00214.21
7.1.70.0850.00513.99
7.1.60.0780.01332.23
7.1.50.0840.00832.14
7.1.40.0910.00332.18
7.1.30.0770.01431.90
7.1.20.0940.00832.13
7.1.10.0560.00513.94
7.1.00.0340.00914.20

preferences:
54.25 ms | 1420 KiB | 5 Q