3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!DOCTYPE html><html><head><title>Stuff</title><body><p>Stuff</p></body></html>'; echo preg_replace('/^.*<body>|<\/body>.*$/i', '', $html);

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.0120.00316.63
8.3.50.0160.00722.04
8.3.40.0040.01118.79
8.3.30.0070.01018.82
8.3.20.0080.00020.18
8.3.10.0050.00321.66
8.3.00.0030.00717.59
8.2.180.0160.00618.41
8.2.170.0100.01019.13
8.2.160.0130.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0080.00322.32
8.2.100.0030.00918.16
8.2.90.0030.00519.06
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0030.00619.78
8.2.30.0000.00718.00
8.2.20.0000.00817.83
8.2.10.0000.00817.93
8.2.00.0070.00017.88
8.1.280.0150.00325.92
8.1.270.0050.00320.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.89
8.1.230.0070.00417.71
8.1.220.0090.00017.80
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0030.00520.56
8.1.160.0000.00721.94
8.1.150.0000.00718.96
8.1.140.0050.00217.47
8.1.130.0000.00717.77
8.1.120.0000.00717.60
8.1.110.0040.00417.46
8.1.100.0000.00717.59
8.1.90.0000.00717.60
8.1.80.0040.00417.52
8.1.70.0070.00017.52
8.1.60.0060.00317.69
8.1.50.0050.00317.51
8.1.40.0050.00217.53
8.1.30.0060.00317.66
8.1.20.0040.00417.74
8.1.10.0040.00417.64
8.1.00.0060.00317.61
8.0.300.0070.00018.77
8.0.290.0080.00016.88
8.0.280.0030.00318.51
8.0.270.0000.00717.41
8.0.260.0000.00617.32
8.0.250.0040.00417.11
8.0.240.0070.00017.11
8.0.230.0030.00317.04
8.0.220.0030.00316.97
8.0.210.0030.00316.84
8.0.200.0000.00617.10
8.0.190.0040.00417.01
8.0.180.0040.00417.02
8.0.170.0040.00417.01
8.0.160.0030.00516.94
8.0.150.0030.00716.84
8.0.140.0070.00016.88
8.0.130.0060.00013.36
8.0.120.0030.00616.93
8.0.110.0080.00016.90
8.0.100.0030.00316.80
8.0.90.0070.00016.94
8.0.80.0190.00316.93
8.0.70.0040.00416.96
8.0.60.0050.00317.01
8.0.50.0000.00816.92
8.0.30.0090.01317.19
8.0.20.0150.00617.48
8.0.10.0070.00017.07
8.0.00.0090.00916.91
7.4.330.0030.00315.03
7.4.320.0020.00516.63
7.4.300.0030.00316.73
7.4.290.0000.00816.75
7.4.280.0040.00416.55
7.4.270.0070.00016.80
7.4.260.0000.00716.63
7.4.250.0050.00316.72
7.4.240.0040.00416.63
7.4.230.0000.00716.58
7.4.220.0100.01516.70
7.4.210.0100.00516.76
7.4.200.0030.00316.54
7.4.160.0080.00816.76
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0190.00316.80
7.4.120.0100.00716.76
7.4.110.0040.01416.61
7.4.100.0090.00916.75
7.4.90.0100.00716.63
7.4.80.0180.00319.39
7.4.70.0100.00616.61
7.4.60.0070.01116.63
7.4.50.0030.00616.75
7.4.40.0060.01616.55
7.4.30.0160.00316.54
7.4.00.0090.00815.14
7.3.330.0040.00413.13
7.3.320.0120.00313.23
7.3.310.0000.00716.23
7.3.300.0000.00716.34
7.3.290.0070.00016.29
7.3.280.0080.01016.28
7.3.270.0090.00917.40
7.3.260.0090.00816.36
7.3.250.0110.00816.48
7.3.240.0110.00616.68
7.3.230.0120.00916.39
7.3.210.0060.01216.28
7.3.200.0070.00719.39
7.3.190.0120.00416.44
7.3.180.0120.00716.36
7.3.170.0090.01216.52
7.3.160.0130.00316.54
7.3.120.0020.01514.90
7.3.110.0050.01114.96
7.3.100.0080.00314.91
7.3.90.0060.00514.69
7.3.80.0040.01014.98
7.3.70.0030.00914.80
7.3.60.0090.00514.91
7.3.50.0050.00714.61
7.3.40.0010.00914.87
7.3.30.0050.00914.82
7.3.20.0030.01016.54
7.3.10.0050.00816.77
7.3.00.0080.00516.77
7.2.330.0060.01216.55
7.2.320.0090.00916.80
7.2.310.0090.00916.41
7.2.300.0110.00716.71
7.2.290.0070.01016.70
7.2.250.0070.00915.07
7.2.240.0080.01215.10
7.2.230.0000.01514.91
7.2.220.0060.00615.06
7.2.210.0030.01015.08
7.2.200.0060.00614.99
7.2.190.0070.00814.97
7.2.180.0050.00814.88
7.2.170.0110.00514.89
7.2.00.0090.00619.13
7.1.330.0030.01115.83
7.1.320.0020.01015.70
7.1.310.0050.01016.00
7.1.300.0040.00915.93
7.1.290.0090.00315.91
7.1.280.0070.00615.98
7.1.270.0060.00915.63
7.1.260.0030.01015.84
7.1.100.0060.00918.13
7.1.70.0040.00417.20
7.1.60.0030.01019.50
7.1.50.0300.00816.78
7.1.00.0070.07322.42
7.0.200.0280.00414.98
7.0.140.0000.05722.01
7.0.60.0100.08019.91
7.0.50.0070.04717.90
7.0.40.0030.05720.14
7.0.30.0300.07720.14
7.0.20.0170.04720.20
7.0.10.0230.04020.32
7.0.00.0030.04020.34
5.6.280.0170.06021.06
5.6.210.0030.04020.52
5.6.200.0070.06018.12
5.6.190.0070.09020.39
5.6.180.0270.07320.30
5.6.170.0370.06320.48
5.6.160.0100.08020.48
5.6.150.0000.07318.16
5.6.140.0070.07718.18
5.6.130.0030.09018.16
5.6.120.0130.08021.11
5.6.110.0030.06721.00
5.6.100.0030.04021.08
5.6.90.0030.06321.00
5.6.80.0130.07720.40
5.6.70.0400.06720.30
5.5.350.0200.04320.40
5.5.340.0130.07318.02
5.5.330.0170.07720.36
5.5.320.0000.06020.25
5.5.310.0170.04320.19
5.5.300.0130.04017.91
5.5.290.0170.07017.98
5.5.280.0100.04320.86
5.5.270.0100.03720.79
5.5.260.0100.08720.78
5.5.250.0100.05720.69
5.5.240.0070.06320.18
5.4.450.0270.06319.47
5.4.440.1100.06319.21
5.4.430.0170.05319.31
5.4.420.1000.05019.47
5.4.410.0200.06018.68
5.4.400.0570.05718.59
5.4.390.0430.06718.72
5.4.380.0470.06318.70
5.4.370.0430.05018.64
5.4.360.0370.04718.51
5.4.350.0230.06018.50
5.4.340.0270.06718.52
5.4.320.0400.04718.71
5.4.310.0370.05318.56
5.4.300.0300.06718.59
5.4.290.0370.05018.49
5.4.280.0370.05018.75
5.4.270.0400.05718.46
5.4.260.0370.04318.60
5.4.250.0270.05718.73
5.4.240.0370.04718.72
5.4.230.0330.05018.48
5.4.220.0200.06718.73
5.4.210.0370.05018.45
5.4.200.0400.04316.74
5.4.190.0300.05318.47
5.4.180.0270.06018.63
5.4.170.0430.05018.48
5.4.160.0230.05318.70
5.4.150.0370.05318.43
5.4.140.0370.05316.17
5.4.130.0370.05316.08
5.4.120.0300.07016.35
5.4.110.0400.04016.24
5.4.100.0370.04716.07
5.4.90.0370.05316.25
5.4.80.0270.07016.02
5.4.70.0430.06316.16
5.4.60.0400.04316.16
5.4.50.0370.04716.23
5.4.40.0200.06716.21
5.4.30.0270.05716.22
5.4.20.0400.04316.31
5.4.10.0270.06016.27
5.4.00.0370.04715.53
5.3.290.0430.07714.64
5.3.280.0370.05014.64
5.3.270.0330.05314.52
5.3.260.0370.06314.53
5.3.250.0330.05714.54
5.3.240.0270.06714.66
5.3.230.0330.06714.54
5.3.220.0300.05014.51
5.3.210.0300.05314.63
5.3.200.0400.05314.59
5.3.190.0400.05014.71
5.3.180.0330.05714.55
5.3.170.0370.04714.53
5.3.160.0230.05314.63
5.3.150.0330.05014.54
5.3.140.0330.05314.53
5.3.130.0300.05714.49
5.3.120.0400.05014.46
5.3.110.0500.05714.70
5.3.100.0430.05714.00
5.3.90.0370.07314.05
5.3.80.0330.06014.11
5.3.70.0330.06713.93
5.3.60.0300.05013.97
5.3.50.0130.06313.91
5.3.40.0370.04714.06
5.3.30.0470.04313.91
5.3.20.0370.04013.65
5.3.10.0200.05713.65
5.3.00.0300.04713.64
5.2.170.0170.04711.06
5.2.160.0270.05011.16
5.2.150.0270.04311.36
5.2.140.0270.04711.18
5.2.130.0170.04711.12
5.2.120.0270.03711.13
5.2.110.0200.04311.13
5.2.100.0230.04011.12
5.2.90.0300.04311.13
5.2.80.0230.04311.01
5.2.70.0200.04711.16
5.2.60.0230.05011.07
5.2.50.0330.04311.05
5.2.40.0200.04011.13
5.2.30.0300.03311.00
5.2.20.0200.03710.89
5.2.10.0230.03310.97
5.2.00.0230.04010.70
5.1.60.0170.04310.04
5.1.50.0270.02710.04
5.1.40.0170.03710.00
5.1.30.0100.05010.34
5.1.20.0200.04310.39
5.1.10.0170.04310.11
5.1.00.0100.04710.09
5.0.50.0130.0338.59
5.0.40.0170.0378.47
5.0.30.0130.0438.20
5.0.20.0170.0238.23
5.0.10.0130.0278.30
5.0.00.0070.0508.19
4.4.90.0100.0276.02
4.4.80.0070.0276.02
4.4.70.0130.0236.02
4.4.60.0100.0276.02
4.4.50.0100.0276.02
4.4.40.0030.0436.02
4.4.30.0130.0206.02
4.4.20.0100.0276.02
4.4.10.0130.0306.02
4.4.00.0070.0506.02
4.3.110.0130.0306.02
4.3.100.0070.0276.02
4.3.90.0130.0276.02
4.3.80.0130.0336.02
4.3.70.0100.0206.02
4.3.60.0100.0236.02
4.3.50.0130.0276.02
4.3.40.0070.0436.02
4.3.30.0070.0236.02
4.3.20.0000.0276.02
4.3.10.0100.0206.02
4.3.00.0100.0236.82

preferences:
62.31 ms | 401 KiB | 5 Q