3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META content="text/html; charset=windows-1251" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 11.00.9600.17105"> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <FONT size=2><DIV align=center> <TABLE borderColor=#0e0016 cellSpacing=2 borderColorDark=#ba0000 cellPadding=0 width=860 bgColor=#f5f5fa borderColorLight=#ba0000 border=0></TABLE> </BODY> </HTML>'; $body2 = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META content="text/html; charset=windows-1251" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 11.00.9600.17105"><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><FONT size=2><BODY>test</BODY><DIV align=center><TABLE borderColor=#0e0016 cellSpacing=2 borderColorDark=#ba0000 cellPadding=0 width=860 bgColor=#f5f5fa borderColorLight=#ba0000 border=0></TABLE></BODY></HTML>'; $pattern = "#.*(<body.*?>.*?</body>)*.*#is"; preg_match($pattern, $body2, $matches); var_dump($matches);

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.0070.00718.43
8.3.50.0120.00622.03
8.3.40.0070.00718.51
8.3.30.0000.01718.98
8.3.20.0040.00420.38
8.3.10.0050.00321.90
8.3.00.0090.00020.95
8.2.180.0110.01116.88
8.2.170.0100.01022.96
8.2.160.0070.00722.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0080.00019.83
8.2.110.0070.01022.26
8.2.100.0090.00317.75
8.2.90.0090.00019.09
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0000.01017.80
8.2.50.0050.00318.07
8.2.40.0040.00418.07
8.2.30.0040.00418.09
8.2.20.0030.00617.71
8.2.10.0040.00417.89
8.2.00.0000.00817.82
8.1.280.0110.01125.92
8.1.270.0030.00618.73
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.82
8.1.230.0090.00319.17
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00917.50
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0080.00018.71
8.1.160.0080.00021.96
8.1.150.0000.00718.72
8.1.140.0000.00717.53
8.1.130.0000.00817.83
8.1.120.0050.00317.52
8.1.110.0030.00517.44
8.1.100.0040.00417.53
8.1.90.0040.00417.47
8.1.80.0070.00017.40
8.1.70.0030.00717.42
8.1.60.0040.00417.70
8.1.50.0040.00417.61
8.1.40.0050.00317.66
8.1.30.0060.00317.76
8.1.20.0040.00417.63
8.1.10.0040.00417.49
8.1.00.0080.00017.50
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0030.00517.11
8.0.260.0060.00017.14
8.0.250.0000.00716.93
8.0.240.0040.00416.89
8.0.230.0040.00417.02
8.0.220.0000.00716.89
8.0.210.0000.00716.84
8.0.200.0060.00017.04
8.0.190.0050.00516.91
8.0.180.0040.00417.03
8.0.170.0030.00517.01
8.0.160.0000.00717.02
8.0.150.0050.00216.88
8.0.140.0000.00716.94
8.0.130.0000.00613.38
8.0.120.0080.00016.94
8.0.110.0020.00516.81
8.0.100.0040.00417.02
8.0.90.0050.00316.87
8.0.80.0140.00316.96
8.0.70.0000.00717.08
8.0.60.0000.00716.88
8.0.50.0000.00716.76
8.0.30.0100.00717.06
8.0.20.0080.01217.40
8.0.10.0000.00816.89
8.0.00.0090.00916.88
7.4.330.0020.00215.03
7.4.320.0030.00316.54
7.4.300.0000.00716.73
7.4.290.0030.00616.71
7.4.280.0080.00316.64
7.4.270.0070.00016.54
7.4.260.0040.00816.51
7.4.250.0040.00416.46
7.4.240.0050.00216.63
7.4.230.0030.00316.71
7.4.220.0060.02216.74
7.4.210.0140.00716.66
7.4.200.0070.00016.63
7.4.160.0000.01516.43
7.4.150.0140.00417.40
7.4.140.0110.00717.86
7.4.130.0120.00616.61
7.4.120.0110.00616.61
7.4.110.0070.01316.62
7.4.100.0150.00416.61
7.4.90.0100.00716.52
7.4.80.0060.01219.39
7.4.70.0110.00616.69
7.4.60.0090.00616.64
7.4.50.0020.00216.47
7.4.40.0030.01316.64
7.4.30.0120.00616.73
7.4.00.0070.01014.82
7.3.330.0000.00613.14
7.3.320.0030.00313.04
7.3.310.0050.00216.16
7.3.300.0000.00716.14
7.3.290.0070.00716.31
7.3.280.0090.00916.31
7.3.270.0140.00317.40
7.3.260.0180.00016.28
7.3.250.0090.00916.45
7.3.240.0140.00316.34
7.3.230.0100.01316.46
7.3.210.0130.00416.25
7.3.200.0130.00419.39
7.3.190.0120.00616.47
7.3.180.0100.00716.52
7.3.170.0040.01516.41
7.3.160.0060.01316.28
7.2.330.0100.00716.62
7.2.320.0120.00716.60
7.2.310.0120.00616.67
7.2.300.0090.00916.46
7.2.290.0110.00816.56
7.2.60.0030.01316.60
7.2.00.0080.00819.34
7.1.200.0060.00616.04
7.1.100.0060.00918.19
7.1.70.0070.00017.27
7.1.60.0130.01319.46
7.1.50.0090.01317.02
7.1.00.0030.07022.50
7.0.200.0610.00614.70
7.0.140.0030.07021.99
7.0.60.0200.05721.77
7.0.50.0030.05017.91
7.0.40.0030.04320.21
7.0.30.0130.05020.35
7.0.20.0300.08020.02
7.0.10.0100.08320.32
7.0.00.0100.04020.14
5.6.280.0070.06321.09
5.6.210.0070.04720.58
5.6.200.0030.07318.22
5.6.190.0070.05320.77
5.6.180.0470.05320.57
5.6.170.0300.03720.44
5.6.160.0000.04720.71
5.6.150.0070.08018.20
5.6.140.0030.08318.08
5.6.130.0070.05018.18
5.6.120.0030.07020.98
5.6.110.0100.04021.12
5.6.100.0030.07320.95
5.6.90.0100.08720.87
5.6.80.0030.07320.40
5.5.350.0200.07720.37
5.5.340.0170.07717.91
5.5.330.0030.05720.23
5.5.320.0530.05020.24
5.5.310.0200.06720.25
5.5.300.0200.02717.98
5.5.290.0170.07017.93
5.5.280.0070.08320.88
5.5.270.0130.07720.76
5.5.260.0100.08020.95
5.5.250.0030.09020.70
5.5.240.0170.03320.18
5.4.450.0370.04019.49
5.4.440.0400.05719.46
5.4.430.0300.07319.36
5.4.420.0330.07319.19
5.4.410.0300.06719.26
5.4.400.0400.06719.00
5.4.390.0270.05319.16
5.4.380.0400.05319.16
5.4.370.0270.04019.13
5.4.360.0330.07319.16
5.4.350.0300.04019.04
5.4.340.0300.04018.91
5.4.320.0270.05019.06
5.4.310.0300.07019.17
5.4.300.0330.05719.19
5.4.290.0330.07319.16
5.4.280.0300.07318.87
5.4.270.0430.03719.04
5.4.260.0370.06719.04
5.4.250.0300.04019.04
5.4.240.0200.07719.05
5.4.230.0230.04018.96
5.4.220.0270.07719.13
5.4.210.0300.07318.99
5.4.200.0370.02719.00
5.4.190.0370.05318.86
5.4.180.0330.07319.15
5.4.170.0270.07018.91
5.4.160.0330.06719.04
5.4.150.0330.07019.14
5.4.140.0170.05316.25
5.4.130.0300.07016.28
5.4.120.0300.07316.25
5.4.110.0330.05316.46
5.4.100.0300.06716.35
5.4.90.0270.04716.35
5.4.80.0430.06016.11
5.4.70.0270.07316.48
5.4.60.0370.06016.39
5.4.50.0300.07016.44
5.4.40.0230.07716.10
5.4.30.0270.07316.36
5.4.20.0330.05016.39
5.4.10.0230.03716.38
5.4.00.0270.03315.70
5.3.290.0270.07314.60
5.3.280.0270.04714.52
5.3.270.0370.04014.54
5.3.260.0300.03714.50
5.3.250.0300.07314.54
5.3.240.0270.03314.50
5.3.230.0400.06014.52
5.3.220.0300.04314.66
5.3.210.0330.06714.53
5.3.200.0270.04714.52
5.3.190.0400.06714.58
5.3.180.0270.06714.50
5.3.170.0370.05314.49
5.3.160.0330.05314.44
5.3.150.0330.05014.38
5.3.140.0300.07014.53
5.3.130.0330.06314.46
5.3.120.0430.05714.47
5.3.110.0270.05314.47
5.3.100.0500.05013.93
5.3.90.0300.04013.96
5.3.80.0230.08013.96
5.3.70.0270.05014.00
5.3.60.0270.04313.95
5.3.50.0300.04713.93
5.3.40.0330.07013.77
5.3.30.0300.04014.00
5.3.20.0330.03313.61
5.3.10.0400.05313.58
5.3.00.0330.04013.73
5.2.170.0200.06311.11
5.2.160.0300.05311.30
5.2.150.0300.04711.11
5.2.140.0200.03711.09
5.2.130.0200.03711.09
5.2.120.0170.03711.09
5.2.110.0230.03711.02
5.2.100.0270.03311.02
5.2.90.0270.03311.09
5.2.80.0330.05011.00
5.2.70.0230.03710.95
5.2.60.0270.05710.97
5.2.50.0270.06010.91
5.2.40.0170.06010.85
5.2.30.0200.05710.90
5.2.20.0230.05310.95
5.2.10.0230.03710.81
5.2.00.0270.02710.72
5.1.60.0200.0279.89
5.1.50.0170.03710.14
5.1.40.0270.0239.94
5.1.30.0200.05710.34
5.1.20.0330.04010.35
5.1.10.0200.04010.01
5.1.00.0170.03710.08
5.0.50.0130.0238.51
5.0.40.0130.0378.39
5.0.30.0070.0408.18
5.0.20.0130.0278.26
5.0.10.0100.0278.21
5.0.00.0270.0478.20
4.4.90.0130.0307.95
4.4.80.0170.0307.95
4.4.70.0130.0177.95
4.4.60.0100.0207.95
4.4.50.0100.0207.95
4.4.40.0170.0377.95
4.4.30.0070.0377.95
4.4.20.0130.0277.95
4.4.10.0100.0277.95
4.4.00.0070.0377.95
4.3.110.0100.0207.95
4.3.100.0170.0137.95
4.3.90.0100.0337.95
4.3.80.0130.0307.95
4.3.70.0130.0237.95
4.3.60.0100.0237.95
4.3.50.0070.0177.95
4.3.40.0100.0377.95
4.3.30.0100.0107.95
4.3.20.0030.0377.95
4.3.10.0000.0207.95
4.3.00.0030.0177.95

preferences:
50.75 ms | 401 KiB | 5 Q