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.60.0080.00816.63
8.3.50.0090.00618.35
8.3.40.0090.00618.73
8.3.30.0040.01119.00
8.3.20.0040.00420.16
8.3.10.0080.00021.72
8.3.00.0030.00619.02
8.2.180.0150.00318.63
8.2.170.0070.00722.96
8.2.160.0100.00722.24
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.76
8.2.110.0100.00021.25
8.2.100.0110.00017.91
8.2.90.0050.00317.96
8.2.80.0040.00417.97
8.2.70.0050.00317.90
8.2.60.0040.00417.80
8.2.50.0030.00718.10
8.2.40.0050.00320.62
8.2.30.0070.00017.98
8.2.20.0040.00417.76
8.2.10.0030.00518.07
8.2.00.0040.00417.87
8.1.280.0130.00625.92
8.1.270.0090.00018.74
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.83
8.1.230.0070.00420.96
8.1.220.0040.00417.74
8.1.210.0110.00018.77
8.1.200.0050.00317.35
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0040.00418.62
8.1.160.0000.00822.16
8.1.150.0000.00718.89
8.1.140.0080.00017.54
8.1.130.0000.00817.81
8.1.120.0000.00717.61
8.1.110.0000.00817.51
8.1.100.0000.00717.52
8.1.90.0000.00717.55
8.1.80.0070.00017.48
8.1.70.0030.00317.46
8.1.60.0040.00417.69
8.1.50.0000.00817.59
8.1.40.0000.00817.61
8.1.30.0030.00517.79
8.1.20.0030.00617.77
8.1.10.0000.00817.59
8.1.00.0080.00017.56
8.0.300.0040.00419.88
8.0.290.0060.00316.63
8.0.280.0050.00218.47
8.0.270.0080.00017.22
8.0.260.0080.00017.15
8.0.250.0030.00317.00
8.0.240.0000.00817.00
8.0.230.0030.00316.92
8.0.220.0000.00716.89
8.0.210.0000.00716.85
8.0.200.0000.00717.02
8.0.190.0030.00317.03
8.0.180.0000.00816.99
8.0.170.0080.00016.95
8.0.160.0000.00717.03
8.0.150.0040.00416.89
8.0.140.0000.00816.94
8.0.130.0030.00313.41
8.0.120.0050.00316.96
8.0.110.0040.00416.97
8.0.100.0000.00917.01
8.0.90.0040.00316.98
8.0.80.0140.00316.95
8.0.70.0050.00216.78
8.0.60.0000.00717.00
8.0.50.0050.00217.08
8.0.30.0080.01117.30
8.0.20.0230.01317.40
8.0.10.0040.00417.02
8.0.00.0080.01016.92
7.4.330.0000.00515.10
7.4.320.0030.00316.60
7.4.300.0040.00416.66
7.4.290.0000.00916.77
7.4.280.0080.00316.59
7.4.270.0070.00016.70
7.4.260.0070.00316.71
7.4.250.0060.00316.74
7.4.240.0000.00716.65
7.4.230.0040.00416.49
7.4.220.0040.01416.74
7.4.210.0100.00516.75
7.4.200.0030.00316.57
7.4.160.0080.00816.80
7.4.150.0220.00317.40
7.4.140.0160.00217.86
7.4.130.0050.01616.66
7.4.120.0090.00916.69
7.4.110.0150.00916.50
7.4.100.0100.00716.74
7.4.90.0100.01216.64
7.4.80.0160.00619.39
7.4.70.0090.00916.59
7.4.60.0040.01816.79
7.4.50.0040.00416.80
7.4.40.0130.00716.61
7.4.30.0080.00916.70
7.4.00.0070.01114.88
7.3.330.0000.00512.98
7.3.320.0050.00013.13
7.3.310.0000.00716.36
7.3.300.0000.00616.21
7.3.290.0000.00616.36
7.3.280.0100.00716.30
7.3.270.0140.00317.40
7.3.260.0130.00316.80
7.3.250.0120.00816.64
7.3.240.0090.00916.60
7.3.230.0100.01416.41
7.3.210.0080.00816.58
7.3.200.0070.01119.39
7.3.190.0050.01016.49
7.3.180.0150.00616.55
7.3.170.0150.00316.39
7.3.160.0150.00616.32
7.2.330.0150.00316.52
7.2.320.0120.00416.66
7.2.310.0130.00316.48
7.2.300.0110.00616.54
7.2.290.0130.01016.70
7.2.00.0030.01019.49
7.1.100.0060.00618.42
7.1.70.0030.00517.30
7.1.60.0040.01119.46
7.1.50.0070.01416.86
7.1.00.0000.08022.59
7.0.200.0360.00315.00
7.0.140.0030.06022.00
7.0.60.0070.08019.98
7.0.50.0030.08317.68
7.0.40.0100.04020.22
7.0.30.0430.08020.36
7.0.20.0170.04720.11
7.0.10.0070.09020.18
7.0.00.0030.04320.20
5.6.280.0030.07321.05
5.6.210.0100.07320.50
5.6.200.0130.03718.19
5.6.190.0130.08020.41
5.6.180.0400.05320.43
5.6.170.0230.05720.49
5.6.160.0000.09020.61
5.6.150.0000.04318.11
5.6.140.0130.06018.20
5.6.130.0070.08718.18
5.6.120.0070.04021.05
5.6.110.0030.09020.88
5.6.100.0000.06720.96
5.6.90.0070.07020.95
5.6.80.0070.08720.36
5.5.350.0170.03320.41
5.5.340.0030.04017.91
5.5.330.0130.08020.40
5.5.320.0030.06720.32
5.5.310.0370.07320.17
5.5.300.0100.07717.91
5.5.290.0070.07717.98
5.5.280.0100.08020.76
5.5.270.0030.09020.83
5.5.260.0170.07020.79
5.5.250.0230.06720.67
5.5.240.0070.03320.15
5.4.450.0030.07019.50
5.4.440.0970.05719.10
5.4.430.0900.05719.48
5.4.420.1000.04719.57
5.4.410.1030.07019.46
5.4.400.0200.05718.69
5.4.390.0230.05318.69
5.4.380.0200.05718.50
5.4.370.0270.05018.66
5.4.360.0300.04718.59
5.4.350.0200.06018.63
5.4.340.0270.05018.50
5.4.320.0300.05018.71
5.4.310.0300.05018.69
5.4.300.0400.07018.63
5.4.290.0230.05718.64
5.4.280.0170.06318.77
5.4.270.0370.04718.73
5.4.260.0330.04718.69
5.4.250.0330.04718.77
5.4.240.0270.05718.66
5.4.230.0230.05718.48
5.4.220.0270.05318.48
5.4.210.0170.05718.70
5.4.200.0100.06716.74
5.4.190.0270.04318.72
5.4.180.0230.06018.45
5.4.170.0230.05718.45
5.4.160.0170.05718.61
5.4.150.0200.06318.71
5.4.140.0230.04716.23
5.4.130.0130.06016.13
5.4.120.0330.04016.26
5.4.110.0300.04316.22
5.4.100.0300.04716.25
5.4.90.0270.05016.29
5.4.80.0230.05016.17
5.4.70.0300.04716.21
5.4.60.0130.05716.22
5.4.50.0230.04716.19
5.4.40.0230.05015.99
5.4.30.0270.04716.19
5.4.20.0370.04316.18
5.4.10.0330.04016.28
5.4.00.0200.05315.50
5.3.290.0300.04714.71
5.3.280.0230.05714.59
5.3.270.0300.04714.63
5.3.260.0300.05014.59
5.3.250.0330.04014.55
5.3.240.0130.06314.52
5.3.230.0200.05314.67
5.3.220.0230.05014.52
5.3.210.0300.05314.50
5.3.200.0230.05014.52
5.3.190.0230.05014.66
5.3.180.0130.06014.59
5.3.170.0200.05314.61
5.3.160.0230.05014.47
5.3.150.0230.05314.71
5.3.140.0130.06014.59
5.3.130.0130.06314.58
5.3.120.0130.06014.59
5.3.110.0300.05714.50
5.3.100.0200.05014.11
5.3.90.0270.05713.93
5.3.80.0270.05714.17
5.3.70.0230.05013.99
5.3.60.0200.06314.10
5.3.50.0230.05013.94
5.3.40.0270.05013.93
5.3.30.0370.05713.90
5.3.20.0230.04313.77
5.3.10.0170.05313.81
5.3.00.0200.05013.63
5.2.170.0170.04011.36
5.2.160.0200.04311.09
5.2.150.0230.04711.21
5.2.140.0200.04011.20
5.2.130.0170.04011.09
5.2.120.0200.03711.01
5.2.110.0230.03711.31
5.2.100.0130.05011.14
5.2.90.0230.03711.08
5.2.80.0130.04711.02
5.2.70.0200.04011.23
5.2.60.0170.04311.00
5.2.50.0200.03711.05
5.2.40.0170.03711.07
5.2.30.0200.04711.03
5.2.20.0230.04710.93
5.2.10.0230.03310.91
5.2.00.0170.03710.75
5.1.60.0130.03310.05
5.1.50.0070.04310.06
5.1.40.0170.03310.07
5.1.30.0070.04710.39
5.1.20.0200.04710.39
5.1.10.0170.05010.25
5.1.00.0270.04710.10
5.0.50.0100.0338.65
5.0.40.0130.0238.46
5.0.30.0100.0438.26
5.0.20.0070.0308.27
5.0.10.0030.0338.20
5.0.00.0070.0438.21
4.4.90.0070.0236.45
4.4.80.0100.0236.45
4.4.70.0130.0176.45
4.4.60.0130.0176.45
4.4.50.0070.0236.45
4.4.40.0100.0336.45
4.4.30.0100.0206.45
4.4.20.0200.0206.45
4.4.10.0130.0176.45
4.4.00.0070.0406.45
4.3.110.0070.0276.45
4.3.100.0070.0236.45
4.3.90.0100.0206.45
4.3.80.0170.0336.45
4.3.70.0070.0306.45
4.3.60.0100.0276.45
4.3.50.0070.0236.45
4.3.40.0030.0376.45
4.3.30.0030.0236.45
4.3.20.0030.0306.45
4.3.10.0070.0206.45
4.3.00.0330.03014.52

preferences:
46.18 ms | 400 KiB | 5 Q