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>).*?$#im"; 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.0200.00716.50
8.3.50.0080.01122.13
8.3.40.0070.00718.67
8.3.30.0080.00618.92
8.3.20.0050.00220.16
8.3.10.0000.00821.73
8.3.00.0000.00720.77
8.2.180.0090.01218.79
8.2.170.0080.00822.96
8.2.160.0110.00722.44
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00326.16
8.2.120.0040.00419.96
8.2.110.0080.00322.28
8.2.100.0090.00317.63
8.2.90.0070.00019.23
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0080.00019.95
8.2.30.0000.00818.08
8.2.20.0000.00817.77
8.2.10.0040.00417.89
8.2.00.0000.00717.66
8.1.280.0120.00325.92
8.1.270.0030.00618.88
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00624.02
8.1.230.0030.00719.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0060.00317.35
8.1.180.0030.00618.10
8.1.170.0060.00320.38
8.1.160.0000.00821.93
8.1.150.0050.00318.83
8.1.140.0000.00717.59
8.1.130.0000.00717.77
8.1.120.0030.00317.44
8.1.110.0030.00617.48
8.1.100.0000.00717.54
8.1.90.0040.00417.37
8.1.80.0000.00717.43
8.1.70.0040.00817.42
8.1.60.0000.00917.63
8.1.50.0040.00417.67
8.1.40.0080.00017.60
8.1.30.0060.00317.76
8.1.20.0000.00817.58
8.1.10.0060.00317.52
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0050.00218.38
8.0.270.0000.00717.22
8.0.260.0000.00617.13
8.0.250.0030.00316.93
8.0.240.0000.00716.90
8.0.230.0030.00317.05
8.0.220.0000.00716.93
8.0.210.0030.00316.86
8.0.200.0060.00016.96
8.0.190.0050.00217.02
8.0.180.0030.00517.03
8.0.170.0040.00417.05
8.0.160.0000.00716.94
8.0.150.0040.00416.94
8.0.140.0040.00416.80
8.0.130.0000.00613.36
8.0.120.0080.00016.92
8.0.110.0000.00816.88
8.0.100.0030.00516.94
8.0.90.0050.00217.04
8.0.80.0100.01016.93
8.0.70.0050.00316.86
8.0.60.0050.00316.82
8.0.50.0040.00417.03
8.0.30.0110.01417.18
8.0.20.0060.01317.40
8.0.10.0000.00817.14
8.0.00.0080.00916.93
7.4.330.0050.00015.03
7.4.320.0000.00716.66
7.4.300.0000.00716.70
7.4.290.0000.01116.79
7.4.280.0110.00016.69
7.4.270.0000.00616.63
7.4.260.0120.00016.61
7.4.250.0030.00516.64
7.4.240.0040.00316.64
7.4.230.0060.00016.54
7.4.220.0070.01116.71
7.4.210.0090.00716.67
7.4.200.0000.00716.77
7.4.160.0090.00616.47
7.4.150.0110.01117.40
7.4.140.0140.00517.86
7.4.130.0080.00916.63
7.4.120.0130.00616.76
7.4.110.0120.01216.72
7.4.100.0070.01016.68
7.4.90.0100.00716.75
7.4.80.0120.00619.39
7.4.70.0060.01616.76
7.4.60.0060.01016.51
7.4.50.0000.00816.42
7.4.40.0030.01316.62
7.4.30.0070.01716.73
7.4.00.0100.00314.84
7.3.330.0030.00313.13
7.3.320.0000.00513.07
7.3.310.0070.00016.36
7.3.300.0030.00316.15
7.3.290.0060.00016.17
7.3.280.0090.00816.25
7.3.270.0110.00617.40
7.3.260.0070.01116.37
7.3.250.0130.00616.49
7.3.240.0120.00916.14
7.3.230.0090.00916.39
7.3.210.0170.00016.32
7.3.200.0040.01319.39
7.3.190.0100.01016.25
7.3.180.0100.01016.49
7.3.170.0030.01316.60
7.3.160.0030.01816.32
7.2.330.0080.00816.53
7.2.320.0100.00716.74
7.2.310.0120.00616.56
7.2.300.0120.00616.55
7.2.290.0160.00816.60
7.2.00.0080.00819.67
7.1.100.0090.00318.41
7.1.70.0060.00317.03
7.1.60.0140.01019.46
7.1.50.0070.01416.97
7.1.00.0030.07022.38
7.0.200.0100.00715.16
7.0.140.0030.04722.04
7.0.60.0030.07319.95
7.0.50.0170.07317.84
7.0.40.0170.07720.00
7.0.30.1570.06720.23
7.0.20.0270.07020.01
7.0.10.0370.06020.18
7.0.00.0100.05320.18
5.6.280.0030.07720.81
5.6.210.0030.04020.52
5.6.200.0070.08718.21
5.6.190.0100.05320.57
5.6.180.0030.06020.67
5.6.170.0300.04720.39
5.6.160.0070.06720.50
5.6.150.0070.04018.13
5.6.140.0000.05318.11
5.6.130.0100.07318.18
5.6.120.0100.08321.01
5.6.110.0000.09020.97
5.6.100.0100.08321.00
5.6.90.0070.07021.02
5.6.80.0070.05320.36
5.6.70.0300.06320.37
5.5.350.0030.08020.32
5.5.340.0070.05018.02
5.5.330.0070.06020.56
5.5.320.0070.08020.29
5.5.310.0270.07320.32
5.5.300.0070.03718.02
5.5.290.0070.06017.96
5.5.280.0070.04720.84
5.5.270.0130.07720.75
5.5.260.0070.05720.89
5.5.250.0030.08320.61
5.5.240.0070.08320.16
5.4.450.0700.07719.11
5.4.440.0400.05719.44
5.4.430.0900.05019.57
5.4.420.1500.07019.47
5.4.410.1070.06719.00
5.4.400.0170.05718.78
5.4.390.0200.05318.53
5.4.380.0130.05718.78
5.4.370.0130.05318.52
5.4.360.0130.05318.72
5.4.350.0130.05318.63
5.4.340.0100.06018.74
5.4.320.0200.05018.62
5.4.310.0300.03718.65
5.4.300.0200.07018.72
5.4.290.0070.06318.74
5.4.280.0130.05318.61
5.4.270.0200.05318.50
5.4.260.0100.05718.74
5.4.250.0170.05018.67
5.4.240.0270.04318.55
5.4.230.0070.05718.76
5.4.220.0070.06018.76
5.4.210.0170.06018.64
5.4.200.0100.06316.41
5.4.190.0170.05318.70
5.4.180.0130.05318.55
5.4.170.0070.06318.50
5.4.160.0200.04318.72
5.4.150.0170.05318.70
5.4.140.0070.06016.20
5.4.130.0170.05316.07
5.4.120.0130.05016.30
5.4.110.0200.04316.25
5.4.100.0130.05316.16
5.4.90.0100.05716.19
5.4.80.0270.03716.20
5.4.70.0170.05316.12
5.4.60.0130.04716.37
5.4.50.0200.04016.07
5.4.40.0200.04316.20
5.4.30.0270.03316.09
5.4.20.0130.05016.23
5.4.10.0170.04716.18
5.4.00.0170.04715.62
5.3.290.0170.05014.65
5.3.280.0170.04714.62
5.3.270.0130.06014.76
5.3.260.0100.05714.58
5.3.250.0170.05014.52
5.3.240.0170.04714.67
5.3.230.0130.05314.51
5.3.220.0070.05714.51
5.3.210.0130.05314.63
5.3.200.0130.05014.51
5.3.190.0130.05014.63
5.3.180.0100.06014.54
5.3.170.0070.06314.47
5.3.160.0200.04714.49
5.3.150.0230.06314.51
5.3.140.0100.06014.52
5.3.130.0300.06014.54
5.3.120.0130.05714.45
5.3.110.0130.05314.56
5.3.100.0430.04314.02
5.3.90.0170.06014.17
5.3.80.0100.05314.05
5.3.70.0100.05014.00
5.3.60.0130.05014.00
5.3.50.0030.06014.04
5.3.40.0130.05013.88
5.3.30.0130.04713.90
5.3.20.0130.05713.84
5.3.10.0230.03713.61
5.3.00.0030.05713.63
5.2.170.0030.04711.30
5.2.160.0070.04311.07
5.2.150.0170.03311.21
5.2.140.0070.04711.20
5.2.130.0170.04010.97
5.2.120.0170.03311.14
5.2.110.0100.04011.17
5.2.100.0100.03711.09
5.2.90.0070.05011.09
5.2.80.0100.04011.31
5.2.70.0170.03711.25
5.2.60.0100.04311.08
5.2.50.0070.04311.02
5.2.40.0100.04310.92
5.2.30.0100.04011.00
5.2.20.0070.05010.98
5.2.10.0030.04310.87
5.2.00.0130.03710.76
5.1.60.0100.03010.03
5.1.50.0100.03310.07
5.1.40.0100.03310.05
5.1.30.0030.04010.38
5.1.20.0070.04010.39
5.1.10.0100.03310.16
5.1.00.0130.03010.14
5.0.50.0030.0338.61
5.0.40.0030.0278.43
5.0.30.0100.0378.33
5.0.20.0130.0208.26
5.0.10.0000.0378.21
5.0.00.0030.0438.27
4.4.90.0070.0207.00
4.4.80.0070.0207.00
4.4.70.0100.0177.00
4.4.60.0000.0277.00
4.4.50.0070.0207.00
4.4.40.0000.0407.00
4.4.30.0000.0277.00
4.4.20.0030.0237.00
4.4.10.0030.0237.00
4.4.00.0100.0307.00
4.3.110.0100.0177.00
4.3.100.0070.0177.00
4.3.90.0070.0207.00
4.3.80.0030.0337.00
4.3.70.0030.0207.00
4.3.60.0030.0237.00
4.3.50.0070.0207.00
4.3.40.0070.0307.00
4.3.30.0030.0237.00
4.3.20.0000.0237.00
4.3.10.0000.0237.00
4.3.00.0070.0207.09

preferences:
50.1 ms | 401 KiB | 5 Q