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>).*?#i"; 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.70.0040.01116.63
8.3.60.0160.00616.50
8.3.50.0110.00722.03
8.3.40.0110.00418.94
8.3.30.0110.00419.12
8.3.20.0040.00420.16
8.3.10.0040.00421.60
8.3.00.0090.00019.26
8.2.190.0160.00016.63
8.2.180.0090.00618.41
8.2.170.0090.00622.96
8.2.160.0100.00322.21
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00219.95
8.2.110.0090.00019.30
8.2.100.0110.00017.72
8.2.90.0000.00817.88
8.2.80.0040.00418.78
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0000.00718.05
8.2.20.0040.00417.68
8.2.10.0040.00417.95
8.2.00.0030.00517.80
8.1.280.0190.00325.92
8.1.270.0040.00418.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01322.08
8.1.230.0090.00320.97
8.1.220.0080.00018.77
8.1.210.0000.00919.08
8.1.200.0060.00317.25
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0060.00320.45
8.1.160.0030.00521.89
8.1.150.0000.00818.85
8.1.140.0070.00017.58
8.1.130.0000.00817.81
8.1.120.0040.00417.57
8.1.110.0070.00017.51
8.1.100.0040.00417.42
8.1.90.0000.00717.48
8.1.80.0040.00417.41
8.1.70.0070.00017.50
8.1.60.0100.00017.68
8.1.50.0080.00017.65
8.1.40.0000.00817.48
8.1.30.0000.00817.63
8.1.20.0070.00017.66
8.1.10.0020.00517.59
8.1.00.0000.00817.61
8.0.300.0000.00819.81
8.0.290.0000.00716.75
8.0.280.0070.00018.31
8.0.270.0030.00317.21
8.0.260.0040.00417.16
8.0.250.0030.00317.03
8.0.240.0000.00616.99
8.0.230.0030.00316.96
8.0.220.0000.00716.90
8.0.210.0050.00316.94
8.0.200.0050.00317.02
8.0.190.0000.00717.01
8.0.180.0000.00716.98
8.0.170.0060.00316.97
8.0.160.0070.00016.96
8.0.150.0070.00016.90
8.0.140.0040.00416.89
8.0.130.0000.00613.33
8.0.120.0030.00616.95
8.0.110.0000.00716.83
8.0.100.0040.00417.03
8.0.90.0000.00717.02
8.0.80.0000.02216.96
8.0.70.0050.00316.91
8.0.60.0000.00816.99
8.0.50.0000.00817.03
8.0.30.0050.01617.27
8.0.20.0110.01217.40
8.0.10.0070.00017.08
8.0.00.0100.00816.80
7.4.330.0030.00315.03
7.4.320.0030.00316.60
7.4.300.0000.00616.69
7.4.290.0060.00616.63
7.4.280.0000.00816.73
7.4.270.0000.00716.75
7.4.260.0030.00816.57
7.4.250.0050.00316.47
7.4.240.0040.00416.73
7.4.230.0070.00016.50
7.4.220.0040.01416.52
7.4.210.0110.00316.63
7.4.200.0000.00816.82
7.4.160.0110.01116.65
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0050.01716.54
7.4.120.0090.01116.58
7.4.110.0100.01316.58
7.4.100.0100.01216.82
7.4.90.0070.01016.78
7.4.80.0110.00816.83
7.4.70.0120.00616.71
7.4.60.0000.01716.59
7.4.50.0000.00916.63
7.4.40.0100.01016.43
7.4.30.0140.00716.76
7.4.00.0070.00715.12
7.3.330.0020.00213.13
7.3.320.0060.00013.13
7.3.310.0030.00316.18
7.3.300.0000.00716.20
7.3.290.0030.00316.37
7.3.280.0120.00616.23
7.3.270.0070.01117.40
7.3.260.0080.01116.38
7.3.250.0060.01116.49
7.3.240.0090.00916.26
7.3.230.0030.01616.39
7.3.210.0180.00016.62
7.3.200.0130.01019.39
7.3.190.0090.00616.58
7.3.180.0070.01016.40
7.3.170.0070.01016.32
7.3.160.0040.01216.52
7.2.330.0060.01216.75
7.2.320.0150.00316.56
7.2.310.0070.01016.72
7.2.300.0070.01716.72
7.2.290.0140.00416.55
7.2.60.0030.01416.85
7.2.00.0040.01119.48
7.1.200.0000.01115.69
7.1.100.0030.00918.34
7.1.70.0070.00717.20
7.1.60.0040.01819.46
7.1.50.0150.00617.05
7.1.00.0100.07022.48
7.0.200.0740.00714.91
7.0.140.0030.05022.07
7.0.60.0100.08319.95
7.0.50.0070.08017.84
7.0.40.0170.07720.00
7.0.30.0330.05720.11
7.0.20.0200.05320.02
7.0.10.0130.08020.22
7.0.00.0130.07020.16
5.6.280.0100.06320.85
5.6.210.0170.07020.46
5.6.200.0100.07718.20
5.6.190.0030.04720.56
5.6.180.0570.06720.47
5.6.170.0230.04020.52
5.6.160.0000.05720.48
5.6.150.0070.04318.09
5.6.140.0070.08018.11
5.6.130.0000.04718.15
5.6.120.0030.04321.12
5.6.110.0070.07720.89
5.6.100.0200.07320.98
5.6.90.0130.07321.12
5.6.80.0070.08020.54
5.5.350.0230.04020.41
5.5.340.0070.08017.98
5.5.330.0130.07720.23
5.5.320.0000.04720.20
5.5.310.0400.07020.18
5.5.300.0100.06017.91
5.5.290.0070.04317.94
5.5.280.0070.08020.79
5.5.270.0130.07720.78
5.5.260.0070.06320.96
5.5.250.0070.07320.43
5.5.240.0130.03720.23
5.4.450.0470.06319.32
5.4.440.0600.06019.48
5.4.430.0970.05719.43
5.4.420.1000.06019.31
5.4.410.0930.04019.32
5.4.400.0300.06318.53
5.4.390.0170.06018.79
5.4.380.0230.06018.79
5.4.370.0300.07718.74
5.4.360.0300.07318.68
5.4.350.0330.05318.68
5.4.340.0300.05318.69
5.4.320.0330.04718.58
5.4.310.0270.05718.54
5.4.300.0230.05718.67
5.4.290.0230.06018.53
5.4.280.0170.06018.47
5.4.270.0270.05018.65
5.4.260.0270.05018.71
5.4.250.0230.06018.61
5.4.240.0200.06018.77
5.4.230.0300.05018.59
5.4.220.0170.06318.66
5.4.210.0300.04318.45
5.4.200.0230.05716.40
5.4.190.0330.04318.67
5.4.180.0230.06018.47
5.4.170.0200.06018.51
5.4.160.0130.06018.47
5.4.150.0200.05718.50
5.4.140.0300.04716.16
5.4.130.0230.05016.10
5.4.120.0270.04316.13
5.4.110.0200.04716.27
5.4.100.0200.05016.22
5.4.90.0230.04716.22
5.4.80.0200.05716.14
5.4.70.0330.05016.13
5.4.60.0270.05016.05
5.4.50.0130.05716.13
5.4.40.0300.05016.13
5.4.30.0300.04316.11
5.4.20.0370.06316.23
5.4.10.0230.07016.00
5.4.00.0400.05315.54
5.3.290.0270.05314.82
5.3.280.0300.04714.56
5.3.270.0370.06014.55
5.3.260.0370.07014.63
5.3.250.0330.04714.52
5.3.240.0330.05714.53
5.3.230.0300.05314.59
5.3.220.0370.06714.66
5.3.210.0300.05014.52
5.3.200.0230.05314.54
5.3.190.0370.05714.61
5.3.180.0230.05314.54
5.3.170.0170.06014.61
5.3.160.0270.05014.54
5.3.150.0230.05314.52
5.3.140.0200.05714.54
5.3.130.0300.04714.62
5.3.120.0270.05014.62
5.3.110.0300.05014.61
5.3.100.0200.05714.08
5.3.90.0330.06714.00
5.3.80.0200.05714.17
5.3.70.0400.05313.97
5.3.60.0330.06314.00
5.3.50.0200.05713.92
5.3.40.0330.04313.86
5.3.30.0270.04713.95
5.3.20.0230.04713.68
5.3.10.0230.05013.64
5.3.00.0430.06713.60
5.2.170.0170.04711.19
5.2.160.0200.04311.13
5.2.150.0270.04711.18
5.2.140.0230.04011.17
5.2.130.0230.05711.24
5.2.120.0200.05311.14
5.2.110.0270.03711.13
5.2.100.0130.04711.24
5.2.90.0170.04311.04
5.2.80.0200.04011.15
5.2.70.0200.04011.16
5.2.60.0200.04011.11
5.2.50.0170.04711.01
5.2.40.0100.04711.14
5.2.30.0200.03711.01
5.2.20.0170.04011.00
5.2.10.0170.04310.92
5.2.00.0170.04710.77
5.1.60.0100.04010.09
5.1.50.0230.03010.09
5.1.40.0200.03010.05
5.1.30.0170.04010.45
5.1.20.0200.03310.51
5.1.10.0170.03310.12
5.1.00.0100.04010.16
5.0.50.0130.0308.61
5.0.40.0070.0278.40
5.0.30.0100.0408.24
5.0.20.0070.0278.32
5.0.10.0030.0308.18
5.0.00.0000.0478.13
4.4.90.0100.0176.45
4.4.80.0030.0236.45
4.4.70.0030.0276.45
4.4.60.0070.0206.45
4.4.50.0000.0236.45
4.4.40.0030.0406.45
4.4.30.0070.0236.45
4.4.20.0130.0206.45
4.4.10.0030.0276.45
4.4.00.0170.0276.45
4.3.110.0000.0306.45
4.3.100.0070.0276.45
4.3.90.0070.0236.45
4.3.80.0070.0376.45
4.3.70.0100.0206.45
4.3.60.0030.0276.45
4.3.50.0130.0136.45
4.3.40.0130.0306.45
4.3.30.0070.0206.45
4.3.20.0030.0236.45
4.3.10.0070.0206.45
4.3.00.0130.02014.52

preferences:
47.65 ms | 401 KiB | 5 Q