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.0100.01318.38
8.3.50.0100.00522.08
8.3.40.0040.01118.84
8.3.30.0030.01018.96
8.3.20.0040.00420.22
8.3.10.0040.00421.73
8.3.00.0090.00020.80
8.2.180.0090.00618.50
8.2.170.0110.00422.96
8.2.160.0080.00622.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0050.00319.89
8.2.110.0070.00319.10
8.2.100.0090.00317.84
8.2.90.0000.00817.97
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0040.00418.02
8.2.20.0040.00417.65
8.2.10.0040.00417.89
8.2.00.0050.00317.64
8.1.280.0090.00925.92
8.1.270.0060.00318.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.00
8.1.230.0040.00822.82
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0040.00420.39
8.1.160.0000.00821.98
8.1.150.0040.00418.85
8.1.140.0000.00717.54
8.1.130.0030.00317.84
8.1.120.0000.00717.46
8.1.110.0000.00717.45
8.1.100.0070.00017.61
8.1.90.0000.00817.54
8.1.80.0040.00417.52
8.1.70.0000.00817.47
8.1.60.0030.00617.58
8.1.50.0000.00817.59
8.1.40.0000.00817.50
8.1.30.0030.00517.70
8.1.20.0040.00417.66
8.1.10.0040.00417.50
8.1.00.0080.00017.45
8.0.300.0000.00819.73
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0040.00417.25
8.0.260.0070.00017.21
8.0.250.0040.00417.04
8.0.240.0070.00017.02
8.0.230.0000.00716.99
8.0.220.0000.00716.86
8.0.210.0080.00017.04
8.0.200.0030.00316.89
8.0.190.0070.00017.04
8.0.180.0070.00016.89
8.0.170.0000.00717.06
8.0.160.0040.00416.95
8.0.150.0050.00316.98
8.0.140.0080.00016.84
8.0.130.0030.00313.36
8.0.120.0040.00416.90
8.0.110.0050.00216.88
8.0.100.0040.00416.86
8.0.90.0030.00517.01
8.0.80.0070.01316.95
8.0.70.0050.00216.91
8.0.60.0070.00016.99
8.0.50.0040.00416.82
8.0.30.0120.01117.07
8.0.20.0120.00617.40
8.0.10.0030.00516.90
8.0.00.0050.01216.89
7.4.330.0050.00015.03
7.4.320.0040.00416.67
7.4.300.0060.00016.66
7.4.290.0060.00316.54
7.4.280.0090.00316.69
7.4.270.0000.00716.71
7.4.260.0110.00016.65
7.4.250.0080.00016.72
7.4.240.0030.00516.75
7.4.230.0000.00716.76
7.4.220.0090.00916.77
7.4.210.0040.01116.67
7.4.200.0040.00416.81
7.4.160.0060.00916.86
7.4.150.0040.02117.40
7.4.140.0080.01117.86
7.4.130.0070.01016.58
7.4.120.0080.00916.61
7.4.110.0120.00616.65
7.4.100.0040.01716.68
7.4.90.0140.00716.63
7.4.80.0070.01019.39
7.4.70.0030.01316.43
7.4.60.0090.00616.59
7.4.50.0000.00516.57
7.4.40.0140.00416.69
7.4.30.0100.01316.55
7.4.00.0030.00914.98
7.3.330.0000.00613.13
7.3.320.0030.00313.12
7.3.310.0000.00816.38
7.3.300.0000.00716.32
7.3.290.0060.00016.19
7.3.280.0060.01116.30
7.3.270.0060.01017.40
7.3.260.0110.00616.54
7.3.250.0110.01116.46
7.3.240.0120.00616.81
7.3.230.0150.00616.39
7.3.210.0090.00816.41
7.3.200.0070.01419.39
7.3.190.0090.00916.29
7.3.180.0060.00916.55
7.3.170.0080.01216.36
7.3.160.0090.00916.50
7.2.330.0090.00916.64
7.2.320.0090.00916.59
7.2.310.0120.00616.61
7.2.300.0100.00716.54
7.2.290.0110.00716.79
7.2.80.0090.00916.62
7.2.60.0030.01316.89
7.2.00.0090.00619.52
7.1.200.0030.01015.92
7.1.100.0060.00618.23
7.1.70.0000.00816.96
7.1.60.0120.01219.46
7.1.50.0040.00716.69
7.1.00.0030.07722.53
7.0.200.0270.00815.03
7.0.140.0100.06721.97
7.0.60.0100.08020.10
7.0.50.0030.07717.69
7.0.40.0000.08319.92
7.0.30.0270.07320.37
7.0.20.0330.07720.18
7.0.10.0100.08020.20
7.0.00.0000.04320.15
5.6.280.0030.07321.01
5.6.210.0130.05020.76
5.6.200.0100.07718.11
5.6.190.0070.09020.34
5.6.180.0470.07020.61
5.6.170.0230.04320.50
5.6.160.0070.05020.37
5.6.150.0070.03718.16
5.6.140.0000.08318.21
5.6.130.0100.03718.20
5.6.120.0030.04020.98
5.6.110.0130.07020.96
5.6.100.0100.07721.08
5.6.90.0000.05020.94
5.6.80.0170.06020.54
5.5.350.0200.03320.28
5.5.340.0100.04717.91
5.5.330.0130.06720.28
5.5.320.0100.07720.31
5.5.310.0200.06720.18
5.5.300.0170.07017.97
5.5.290.0070.08718.03
5.5.280.0130.08020.65
5.5.270.0100.03720.75
5.5.260.0270.06020.84
5.5.250.0030.04720.57
5.5.240.0100.03020.36
5.4.450.0570.06319.54
5.4.440.1030.05319.32
5.4.430.0870.06319.09
5.4.420.0900.05019.14
5.4.410.1000.06019.31
5.4.400.0200.06718.83
5.4.390.0270.04718.72
5.4.380.0100.06318.70
5.4.370.0270.05318.65
5.4.360.0170.06718.75
5.4.350.0100.06018.74
5.4.340.0230.04318.68
5.4.320.0200.07018.56
5.4.310.0270.05318.73
5.4.300.0130.06018.46
5.4.290.0100.07718.68
5.4.280.0170.07018.61
5.4.270.0270.06018.52
5.4.260.0200.05018.62
5.4.250.0230.04718.62
5.4.240.0130.05318.71
5.4.230.0200.04318.57
5.4.220.0200.05318.71
5.4.210.0600.05718.45
5.4.200.0130.05316.50
5.4.190.0130.05318.59
5.4.180.0130.07018.57
5.4.170.0330.06018.45
5.4.160.0230.04318.44
5.4.150.0170.05318.61
5.4.140.0100.05316.29
5.4.130.0170.06316.04
5.4.120.0200.06316.25
5.4.110.0230.04016.29
5.4.100.0700.05716.21
5.4.90.0130.05016.08
5.4.80.0100.05316.04
5.4.70.0070.05716.16
5.4.60.0130.05316.12
5.4.50.0630.04716.28
5.4.40.0170.05316.13
5.4.30.0100.05016.22
5.4.20.0170.06316.27
5.4.10.0070.06016.16
5.4.00.0200.04715.52
5.3.290.0170.05714.75
5.3.280.0770.06014.66
5.3.270.0130.05714.70
5.3.260.0270.06314.60
5.3.250.0200.04714.58
5.3.240.0270.04014.51
5.3.230.0200.05014.66
5.3.220.0230.05014.52
5.3.210.0230.04714.55
5.3.200.0130.05714.47
5.3.190.0200.04714.63
5.3.180.0070.06014.52
5.3.170.0100.05714.62
5.3.160.0070.06014.54
5.3.150.0100.05714.48
5.3.140.0100.05314.55
5.3.130.0230.05314.50
5.3.120.0130.06014.46
5.3.110.0070.06014.52
5.3.100.0130.05314.00
5.3.90.0070.06314.00
5.3.80.0130.05013.93
5.3.70.0170.04713.96
5.3.60.0100.05313.98
5.3.50.0130.05313.95
5.3.40.0130.05714.04
5.3.30.0070.06013.89
5.3.20.0100.05313.64
5.3.10.0170.04713.60
5.3.00.0130.06013.57
5.2.170.0200.04311.16
5.2.160.0200.04711.13
5.2.150.0070.05311.21
5.2.140.0070.04311.18
5.2.130.0170.04011.05
5.2.120.0100.04311.12
5.2.110.0070.04711.13
5.2.100.0100.05311.08
5.2.90.0100.04011.09
5.2.80.0230.03711.16
5.2.70.0100.04711.08
5.2.60.0070.04310.98
5.2.50.0070.04711.15
5.2.40.0070.05010.93
5.2.30.0170.05310.95
5.2.20.0170.03310.89
5.2.10.0030.04710.88
5.2.00.0130.04310.75
5.1.60.0170.02710.02
5.1.50.0100.0339.97
5.1.40.0100.03710.01
5.1.30.0000.04310.48
5.1.20.0200.02710.37
5.1.10.0100.04710.16
5.1.00.0200.02710.18
5.0.50.0070.0308.61
5.0.40.0030.0308.43
5.0.30.0070.0438.20
5.0.20.0270.0338.25
5.0.10.0100.0338.16
5.0.00.0130.0478.15
4.4.90.0070.0206.98
4.4.80.0130.0206.98
4.4.70.0130.0206.98
4.4.60.0030.0236.98
4.4.50.0000.0276.98
4.4.40.0070.0336.98
4.4.30.0000.0236.98
4.4.20.0130.0236.98
4.4.10.0070.0206.98
4.4.00.0070.0336.98
4.3.110.0030.0236.98
4.3.100.0000.0276.98
4.3.90.0170.0176.98
4.3.80.0000.0406.98
4.3.70.0000.0276.98
4.3.60.0100.0236.98
4.3.50.0000.0276.98
4.3.40.0030.0376.98
4.3.30.0030.0236.98
4.3.20.0070.0236.98
4.3.10.0030.0276.98
4.3.00.0170.02714.52

preferences:
48.91 ms | 401 KiB | 5 Q