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>'; $pattern = "#(<body>.*</body>)#i"; 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.01116.75
8.3.50.0120.00622.08
8.3.40.0120.00318.96
8.3.30.0070.00718.95
8.3.20.0040.00420.09
8.3.10.0080.00021.87
8.3.00.0120.00019.07
8.2.180.0150.00718.43
8.2.170.0100.01022.96
8.2.160.0130.00022.25
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.95
8.2.110.0060.00322.20
8.2.100.0070.00417.63
8.2.90.0080.00019.17
8.2.80.0000.00917.97
8.2.70.0090.00317.63
8.2.60.0040.00417.92
8.2.50.0050.00518.07
8.2.40.0060.00318.05
8.2.30.0040.00417.95
8.2.20.0000.00717.81
8.2.10.0050.00317.94
8.2.00.0050.00317.75
8.1.280.0140.01125.92
8.1.270.0000.00918.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0070.00417.61
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.38
8.1.190.0030.00617.36
8.1.180.0080.00018.10
8.1.170.0000.00818.71
8.1.160.0030.00321.88
8.1.150.0040.00418.81
8.1.140.0050.00217.45
8.1.130.0030.00317.86
8.1.120.0030.00417.57
8.1.110.0060.00317.57
8.1.100.0040.00417.54
8.1.90.0040.00417.40
8.1.80.0040.00417.42
8.1.70.0040.00417.50
8.1.60.0000.00817.64
8.1.50.0050.00317.64
8.1.40.0000.00817.60
8.1.30.0060.00317.78
8.1.20.0040.00417.79
8.1.10.0080.00017.60
8.1.00.0000.00817.66
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0000.00717.19
8.0.260.0000.00617.27
8.0.250.0000.00717.02
8.0.240.0040.00416.99
8.0.230.0030.00517.07
8.0.220.0070.00017.01
8.0.210.0080.00016.88
8.0.200.0050.00316.92
8.0.190.0000.00717.04
8.0.180.0000.00717.02
8.0.170.0030.00716.98
8.0.160.0030.00617.00
8.0.150.0020.00516.89
8.0.140.0040.00316.93
8.0.130.0030.00313.46
8.0.120.0000.00816.94
8.0.110.0000.00716.93
8.0.100.0000.00716.96
8.0.90.0050.00217.01
8.0.80.0100.01316.99
8.0.70.0040.00416.93
8.0.60.0040.00416.86
8.0.50.0070.00017.06
8.0.30.0140.00917.04
8.0.20.0090.01217.40
8.0.10.0080.00017.06
8.0.00.0080.00916.83
7.4.330.0000.00515.03
7.4.320.0020.00516.68
7.4.300.0060.00316.69
7.4.290.0070.00016.79
7.4.280.0030.00716.55
7.4.270.0050.00316.65
7.4.260.0100.00016.62
7.4.250.0040.00416.48
7.4.240.0040.00316.75
7.4.230.0030.00316.81
7.4.220.0120.00616.80
7.4.210.0030.01316.71
7.4.200.0030.00316.82
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0070.01016.75
7.4.120.0080.00816.64
7.4.110.0120.01216.70
7.4.100.0070.01016.68
7.4.90.0120.00616.63
7.4.80.0100.02116.39
7.4.70.0070.01016.58
7.4.60.0090.00616.32
7.4.50.0040.00016.37
7.4.40.0080.00816.50
7.4.30.0060.01616.68
7.4.00.0060.00914.71
7.3.330.0060.00013.17
7.3.320.0050.00013.04
7.3.310.0030.00316.25
7.3.300.0040.00416.31
7.3.290.0090.00716.29
7.3.280.0090.00916.25
7.3.270.0180.00717.40
7.3.260.0080.00816.73
7.3.250.0100.01016.47
7.3.240.0080.00816.53
7.3.230.0090.00916.55
7.3.210.0090.00916.23
7.3.200.0060.01219.39
7.3.190.0080.00816.51
7.3.180.0030.01616.20
7.3.170.0090.01216.38
7.3.160.0070.01016.25
7.2.330.0120.00416.55
7.2.320.0080.00916.57
7.2.310.0170.00416.63
7.2.300.0060.01316.30
7.2.290.0140.00416.58
7.2.80.0000.01216.49
7.2.60.0030.01316.98
7.2.00.0030.01019.27
7.1.200.0020.00515.87
7.1.100.0190.00416.22
7.1.70.0070.00417.29
7.1.60.0170.00719.46
7.1.50.0060.01616.86
7.1.00.0100.07022.50
7.0.200.0540.01114.59
7.0.140.0030.03322.07
7.0.60.0100.03319.91
7.0.50.0030.04717.93
7.0.40.0030.05020.28
7.0.30.0300.05020.36
7.0.20.0300.06720.19
7.0.10.0000.04720.21
7.0.00.0070.03720.17
5.6.280.0000.07720.92
5.6.210.0100.03320.70
5.6.200.0100.08018.12
5.6.190.0100.08020.61
5.6.180.0300.04320.35
5.6.170.0230.05320.41
5.6.160.0100.08020.38
5.6.150.0030.04018.07
5.6.140.0030.05018.18
5.6.130.0100.04018.15
5.6.120.0170.05320.89
5.6.110.0100.08720.96
5.6.100.0070.08320.95
5.6.90.0230.06720.99
5.6.80.0100.07720.46
5.5.350.0330.07020.48
5.5.340.0030.04018.01
5.5.330.0070.05020.20
5.5.320.0000.04320.46
5.5.310.0330.04720.27
5.5.300.0000.07318.02
5.5.290.0030.06717.98
5.5.280.0100.04320.84
5.5.270.0070.06020.74
5.5.260.0170.07320.79
5.5.250.0030.06020.64
5.5.240.0030.04320.03
5.4.450.0900.06019.45
5.4.440.0730.06719.46
5.4.430.0170.05019.52
5.4.420.0800.05319.25
5.4.410.1100.05319.14
5.4.400.0200.05018.77
5.4.390.0170.05018.74
5.4.380.0130.05718.74
5.4.370.0230.06318.56
5.4.360.0100.06318.57
5.4.350.0200.05018.61
5.4.340.0200.05318.77
5.4.320.0270.04318.77
5.4.310.0170.05018.49
5.4.300.0170.06018.50
5.4.290.0100.06718.65
5.4.280.0230.04718.70
5.4.270.0170.05018.64
5.4.260.0170.05318.67
5.4.250.0230.04718.50
5.4.240.0130.05318.73
5.4.230.0170.05718.49
5.4.220.0270.05018.68
5.4.210.0200.06318.67
5.4.200.0170.06716.63
5.4.190.0270.05718.72
5.4.180.0200.07018.68
5.4.170.0230.06018.57
5.4.160.0100.06318.50
5.4.150.0170.05018.56
5.4.140.0130.07016.14
5.4.130.0170.06716.08
5.4.120.0230.04016.08
5.4.110.0170.04716.25
5.4.100.0070.06016.26
5.4.90.0130.05016.24
5.4.80.0200.06016.38
5.4.70.0130.07316.01
5.4.60.0300.05716.13
5.4.50.0130.05316.28
5.4.40.0100.06316.22
5.4.30.0200.04316.13
5.4.20.0170.05016.13
5.4.10.0270.05316.13
5.4.00.0170.06315.73
5.3.290.0200.05014.61
5.3.280.0100.05714.69
5.3.270.0100.06014.70
5.3.260.0100.06314.57
5.3.250.0170.05314.68
5.3.240.0100.05714.52
5.3.230.0130.05314.67
5.3.220.0070.06314.52
5.3.210.0230.04314.55
5.3.200.0170.05014.59
5.3.190.0230.04314.49
5.3.180.0100.06014.52
5.3.170.0130.05314.63
5.3.160.0100.05714.54
5.3.150.0170.05314.54
5.3.140.0230.05014.50
5.3.130.0230.06314.52
5.3.120.0130.06014.62
5.3.110.0130.06314.45
5.3.100.0170.05014.13
5.3.90.0100.05314.00
5.3.80.0170.06313.99
5.3.70.0130.05313.93
5.3.60.0100.05314.01
5.3.50.0200.04714.09
5.3.40.0100.05313.86
5.3.30.0130.05014.00
5.3.20.0200.05013.79
5.3.10.0100.05013.69
5.3.00.0170.04713.63
5.2.170.0130.05711.18
5.2.160.0170.04711.21
5.2.150.0170.05311.06
5.2.140.0170.05311.11
5.2.130.0200.05011.15
5.2.120.0000.05011.14
5.2.110.0200.04711.07
5.2.100.0170.03711.09
5.2.90.0170.04311.06
5.2.80.0100.05011.15
5.2.70.0030.05311.07
5.2.60.0100.04310.96
5.2.50.0200.03010.95
5.2.40.0130.03710.97
5.2.30.0000.05711.11
5.2.20.0100.04310.91
5.2.10.0130.04010.95
5.2.00.0100.04010.75
5.1.60.0100.03310.13
5.1.50.0070.03710.06
5.1.40.0030.0409.95
5.1.30.0100.04010.39
5.1.20.0170.03310.32
5.1.10.0100.04710.13
5.1.00.0170.03010.05
5.0.50.0100.0308.53
5.0.40.0070.0278.50
5.0.30.0070.0438.27
5.0.20.0030.0338.32
5.0.10.0100.0278.20
5.0.00.0170.0438.28
4.4.90.0070.0236.28
4.4.80.0130.0136.28
4.4.70.0070.0206.28
4.4.60.0170.0176.28
4.4.50.0170.0106.28
4.4.40.0070.0376.28
4.4.30.0130.0236.28
4.4.20.0030.0336.28
4.4.10.0100.0276.28
4.4.00.0030.0376.28
4.3.110.0070.0236.28
4.3.100.0070.0206.28
4.3.90.0070.0206.28
4.3.80.0130.0276.28
4.3.70.0100.0176.28
4.3.60.0030.0276.28
4.3.50.0070.0306.28
4.3.40.0030.0476.28
4.3.30.0030.0236.28
4.3.20.0000.0276.28
4.3.10.0130.0136.28
4.3.00.0330.01314.52

preferences:
54.85 ms | 401 KiB | 5 Q