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.*?>.*?</body>).*?$#ims"; preg_match($pattern, $body, $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.0040.01516.63
8.3.50.0090.00618.60
8.3.40.0000.01418.97
8.3.30.0140.00019.09
8.3.20.0040.00420.30
8.3.10.0000.00821.82
8.3.00.0040.00420.77
8.2.180.0100.00618.54
8.2.170.0100.01022.96
8.2.160.0100.00722.24
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0050.00522.33
8.2.100.0070.00417.63
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0060.00320.07
8.2.30.0040.00417.95
8.2.20.0040.00417.76
8.2.10.0000.00818.09
8.2.00.0000.00817.72
8.1.280.0100.01025.92
8.1.270.0060.00318.70
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0110.00019.21
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0050.00320.37
8.1.160.0000.00721.88
8.1.150.0000.00718.85
8.1.140.0040.00417.58
8.1.130.0030.00317.83
8.1.120.0040.00417.60
8.1.110.0030.00517.52
8.1.100.0040.00417.46
8.1.90.0000.00717.56
8.1.80.0030.00517.54
8.1.70.0040.00417.53
8.1.60.0030.00617.66
8.1.50.0030.00517.49
8.1.40.0040.00417.56
8.1.30.0000.00817.74
8.1.20.0050.00217.64
8.1.10.0060.00317.60
8.1.00.0030.00617.59
8.0.300.0060.00318.77
8.0.290.0030.00616.88
8.0.280.0050.00318.31
8.0.270.0030.00317.13
8.0.260.0000.00617.17
8.0.250.0050.00216.88
8.0.240.0000.00717.03
8.0.230.0030.00317.00
8.0.220.0030.00316.91
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0030.00617.07
8.0.180.0040.00417.03
8.0.170.0050.00217.06
8.0.160.0030.00517.02
8.0.150.0030.00516.80
8.0.140.0050.00216.80
8.0.130.0030.00313.47
8.0.120.0040.00416.92
8.0.110.0040.00416.91
8.0.100.0000.00716.87
8.0.90.0070.00016.96
8.0.80.0120.00616.90
8.0.70.0000.00816.86
8.0.60.0050.00216.76
8.0.50.0040.00416.86
8.0.30.0150.01217.06
8.0.20.0050.01417.40
8.0.10.0040.00417.08
8.0.00.0100.00916.72
7.4.330.0000.00515.03
7.4.320.0030.00316.74
7.4.300.0060.00016.59
7.4.290.0060.00316.72
7.4.280.0070.00316.64
7.4.270.0030.00316.66
7.4.260.0030.00616.73
7.4.250.0030.00516.63
7.4.240.0070.00016.72
7.4.230.0030.00316.57
7.4.220.0100.00716.64
7.4.210.0130.00716.55
7.4.200.0040.00416.53
7.4.160.0100.00616.62
7.4.150.0170.00917.40
7.4.140.0110.00617.86
7.4.130.0130.00916.75
7.4.120.0090.00816.70
7.4.110.0060.01216.49
7.4.100.0130.00616.84
7.4.90.0110.00816.61
7.4.80.0080.00819.39
7.4.70.0070.01016.65
7.4.60.0060.01216.63
7.4.50.0080.00016.41
7.4.40.0030.01216.49
7.4.30.0160.00816.71
7.4.00.0060.01014.78
7.3.330.0060.00013.09
7.3.320.0030.00313.22
7.3.310.0040.00416.22
7.3.300.0040.00416.20
7.3.290.0090.00716.31
7.3.280.0080.00916.28
7.3.270.0110.00717.40
7.3.260.0160.00916.37
7.3.250.0080.01416.29
7.3.240.0100.00716.34
7.3.230.0070.01416.39
7.3.210.0040.01616.24
7.3.200.0030.01819.39
7.3.190.0080.00816.75
7.3.180.0070.01016.29
7.3.170.0130.00316.34
7.3.160.0130.00916.37
7.2.330.0060.01216.58
7.2.320.0090.00916.56
7.2.310.0070.01416.56
7.2.300.0080.00816.72
7.2.290.0150.00916.55
7.2.00.0030.00919.43
7.1.100.0000.01318.51
7.1.70.0000.00917.41
7.1.60.0140.01019.46
7.1.50.0180.00417.05
7.1.00.0030.07722.46
7.0.200.0840.00614.95
7.0.140.0000.07721.95
7.0.60.0070.04320.05
7.0.50.0030.04317.87
7.0.40.0000.05020.23
7.0.30.0300.06720.20
7.0.20.0170.05320.14
7.0.10.0130.08020.01
7.0.00.0030.09020.03
5.6.280.0000.07721.10
5.6.210.0070.07020.74
5.6.200.0030.06718.11
5.6.190.0070.07020.31
5.6.180.0530.07020.61
5.6.170.0300.04020.48
5.6.160.0200.07020.49
5.6.150.0100.07718.15
5.6.140.0070.08018.09
5.6.130.0100.06318.21
5.6.120.0100.05020.99
5.6.110.0070.08721.13
5.6.100.0000.09021.08
5.6.90.0100.06321.04
5.6.80.0130.05720.47
5.5.350.0400.07020.43
5.5.340.0070.03717.96
5.5.330.0130.07020.57
5.5.320.0070.07320.24
5.5.310.0370.05320.41
5.5.300.0000.07317.99
5.5.290.0100.05318.02
5.5.280.0000.05720.87
5.5.270.0030.05320.72
5.5.260.0130.04320.86
5.5.250.0030.04020.70
5.5.240.0130.07320.26
5.4.450.0300.02719.46
5.4.440.0200.04019.11
5.4.430.0170.04719.20
5.4.420.0230.03719.48
5.4.410.0170.03719.36
5.4.400.0200.03319.17
5.4.390.0170.03719.06
5.4.380.0230.03019.06
5.4.370.0330.05019.22
5.4.360.0300.07018.88
5.4.350.0230.06019.12
5.4.340.0330.06719.09
5.4.320.0330.06719.24
5.4.310.0370.06319.06
5.4.300.0200.04319.13
5.4.290.0370.06319.09
5.4.280.0230.04719.06
5.4.270.0270.07719.08
5.4.260.0230.04318.91
5.4.250.0270.07719.15
5.4.240.0200.05318.88
5.4.230.0370.04019.22
5.4.220.0300.07019.08
5.4.210.0300.07019.07
5.4.200.0230.08319.24
5.4.190.0270.05018.79
5.4.180.0330.06319.23
5.4.170.0300.07719.12
5.4.160.0370.06018.77
5.4.150.0230.07319.11
5.4.140.0300.07016.26
5.4.130.0300.04016.18
5.4.120.0230.07316.30
5.4.110.0270.07016.50
5.4.100.0300.06716.48
5.4.90.0270.05716.47
5.4.80.0300.06716.21
5.4.70.0300.07016.43
5.4.60.0370.06016.24
5.4.50.0330.06716.31
5.4.40.0300.05716.38
5.4.30.0270.04316.40
5.4.20.0170.04316.18
5.4.10.0230.07716.17
5.4.00.0370.06015.72
5.3.290.0270.07714.77
5.3.280.0300.07014.54
5.3.270.0230.04314.44
5.3.260.0330.06714.46
5.3.250.0300.04014.70
5.3.240.0300.07314.45
5.3.230.0330.07014.44
5.3.220.0300.06014.47
5.3.210.0200.06314.42
5.3.200.0300.06714.51
5.3.190.0270.07714.42
5.3.180.0300.05014.46
5.3.170.0270.05714.56
5.3.160.0300.05314.54
5.3.150.0400.06314.42
5.3.140.0330.06014.43
5.3.130.0330.05714.39
5.3.120.0370.06314.40
5.3.110.0300.06714.64
5.3.100.0270.08013.96
5.3.90.0300.06313.86
5.3.80.0270.04313.82
5.3.70.0270.05014.00
5.3.60.0300.07313.98
5.3.50.0300.06013.86
5.3.40.0330.05013.95
5.3.30.0300.07013.85
5.3.20.0230.04713.72
5.3.10.0300.04713.70
5.3.00.0230.05313.59
5.2.170.0230.03312.01
5.2.160.0200.04012.01
5.2.150.0230.03712.01
5.2.140.0200.05312.01
5.2.130.0270.04312.01
5.2.120.0270.05312.01
5.2.110.0200.04012.01
5.2.100.0270.05312.01
5.2.90.0330.04712.01
5.2.80.0270.05712.01
5.2.70.0230.05712.01
5.2.60.0200.06312.01
5.2.50.0330.04012.01
5.2.40.0200.05712.01
5.2.30.0230.05012.01
5.2.20.0230.04712.01
5.2.10.0200.05712.01
5.2.00.0200.06312.01
5.1.60.0200.05312.01
5.1.50.0230.04012.01
5.1.40.0370.03712.01
5.1.30.0200.05712.01
5.1.20.0330.04312.01
5.1.10.0230.05012.01
5.1.00.0200.05012.01
5.0.50.0030.04312.01
5.0.40.0170.03712.01
5.0.30.0170.06012.01
5.0.20.0100.04312.01
5.0.10.0130.03012.01
5.0.00.0070.05012.01
4.4.90.0100.02712.01
4.4.80.0100.02012.01
4.4.70.0100.02012.01
4.4.60.0200.03012.01
4.4.50.0200.02712.01
4.4.40.0100.05312.01
4.4.30.0070.03312.01
4.4.20.0130.03312.01
4.4.10.0100.03312.01
4.4.00.0070.04712.01
4.3.110.0130.03012.01
4.3.100.0100.03712.01
4.3.90.0130.03012.01
4.3.80.0100.04712.01
4.3.70.0100.03312.01
4.3.60.0130.02712.01
4.3.50.0100.03012.01
4.3.40.0130.05012.01
4.3.30.0030.03012.01
4.3.20.0030.04312.01
4.3.10.0070.02312.01
4.3.00.0070.03312.01

preferences:
51.47 ms | 400 KiB | 5 Q