3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<p>Paragraaf</p><h1>Kop 1</h1><h2>Kop 2</h2>'; echo $html; echo PHP_EOL; echo PHP_EOL; $html = preg_replace('#<p>.*<\/p>#','',$html); echo $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.4.20.0130.00717.83
8.4.10.0030.00617.77
8.3.150.0070.01117.11
8.3.140.0050.00316.48
8.3.130.0000.00816.61
8.3.120.0040.00418.63
8.3.110.0080.00020.94
8.3.100.0120.00324.06
8.3.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0040.01518.30
8.3.60.0070.00718.07
8.3.50.0170.00922.99
8.3.40.0160.00618.79
8.3.30.0140.00018.89
8.3.20.0040.00420.43
8.3.10.0050.00320.81
8.3.00.0050.00320.58
8.2.260.0030.01316.91
8.2.250.0040.00418.84
8.2.240.0030.00617.51
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0030.00526.77
8.2.200.0030.00616.63
8.2.190.0140.00716.58
8.2.180.0120.00425.92
8.2.170.0080.00618.92
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.17
8.2.110.0190.00322.23
8.2.100.0120.00017.91
8.2.90.0090.00017.75
8.2.80.0050.00318.90
8.2.70.0000.00917.75
8.2.60.0030.00618.04
8.2.50.0000.00818.09
8.2.40.0000.00820.59
8.2.30.0040.00419.37
8.2.20.0000.00817.82
8.2.10.0040.00418.25
8.2.00.0030.00518.10
8.1.310.0100.00318.44
8.1.300.0120.00918.47
8.1.290.0030.00618.88
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0210.00023.82
8.1.230.0080.00319.15
8.1.220.0100.00017.74
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0040.00417.24
8.1.180.0040.00418.10
8.1.170.0110.00018.71
8.1.160.0070.00020.63
8.1.150.0070.00018.84
8.1.140.0040.00419.54
8.1.130.0040.00417.70
8.1.120.0000.00717.44
8.1.110.0000.00717.53
8.1.100.0000.00817.48
8.1.90.0030.00517.54
8.1.80.0040.00417.61
8.1.70.0000.00717.56
8.1.60.0000.00717.61
8.1.50.0050.00317.57
8.1.40.0040.00417.48
8.1.30.0040.00417.63
8.1.20.0000.00817.67
8.1.10.0000.00717.65
8.1.00.0040.00417.60
8.0.300.0000.00818.77
8.0.290.0070.00416.75
8.0.280.0000.00718.46
8.0.270.0040.00417.02
8.0.260.0060.00017.23
8.0.250.0000.00817.07
8.0.240.0000.00617.06
8.0.230.0040.00417.07
8.0.220.0070.00016.99
8.0.210.0080.00017.02
8.0.200.0070.00016.89
8.0.190.0070.00316.95
8.0.180.0040.00416.89
8.0.170.0060.00416.90
8.0.160.0040.00416.96
8.0.150.0000.00816.98
8.0.140.0000.00716.91
8.0.130.0030.00313.47
8.0.120.0000.00816.98
8.0.110.0000.00716.99
8.0.100.0070.00016.86
8.0.90.0000.00716.95
8.0.80.0150.00617.01
8.0.70.0070.00016.82
8.0.60.0040.00416.95
8.0.50.0000.00716.86
8.0.30.0100.01017.10
8.0.20.0130.00717.40
8.0.10.0000.00716.89
8.0.00.0130.00516.74
7.4.330.0020.00216.75
7.4.320.0030.00316.63
7.4.300.0000.00716.53
7.4.290.0040.00416.65
7.4.280.0070.00016.63
7.4.270.0030.00316.77
7.4.260.0030.00316.58
7.4.250.0080.00016.53
7.4.240.0030.00516.60
7.4.230.0000.00716.55
7.4.220.0120.00416.82
7.4.210.0070.00716.68
7.4.200.0070.00016.63
7.4.160.0000.01516.75
7.4.150.0100.01017.40
7.4.140.0080.01317.86
7.4.130.0070.02016.55
7.4.120.0050.01316.56
7.4.110.0090.00916.54
7.4.100.0100.00716.61
7.4.90.0100.00716.44
7.4.80.0080.01219.39
7.4.70.0060.01016.54
7.4.60.0100.00616.70
7.4.50.0080.00816.46
7.4.40.0060.01316.62
7.4.30.0130.00316.52
7.4.00.0030.01415.02
7.3.330.0030.00313.21
7.3.320.0000.00513.10
7.3.310.0040.00416.44
7.3.300.0030.00316.19
7.3.290.0040.01316.34
7.3.280.0090.00816.29
7.3.270.0090.00917.40
7.3.260.0110.00816.78
7.3.240.0120.00616.44
7.3.230.0030.02116.66
7.3.210.0090.00916.59
7.3.200.0000.01516.38
7.3.190.0060.01016.80
7.3.180.0060.01116.71
7.3.170.0090.01216.80
7.3.160.0060.01316.45
7.3.120.0070.01015.25
7.3.110.0030.01315.24
7.3.100.0150.00014.74
7.3.90.0120.00315.19
7.3.80.0030.00714.91
7.3.70.0070.00715.09
7.3.60.0000.01214.96
7.3.50.0030.01114.94
7.3.40.0040.01214.79
7.3.30.0120.00314.96
7.3.20.0000.01116.79
7.3.10.0030.01216.68
7.3.00.0000.01116.84
7.2.330.0110.00616.69
7.2.320.0100.01016.75
7.2.310.0150.00916.72
7.2.300.0070.01116.61
7.2.290.0040.01716.68
7.2.240.0070.01015.04
7.2.230.0080.00315.20
7.2.220.0080.00414.91
7.2.210.0090.00615.23
7.2.200.0030.00915.11
7.2.190.0000.01514.95
7.2.180.0090.00614.99
7.2.170.0070.01115.07
7.2.160.0040.01114.81
7.2.150.0040.01117.05
7.2.140.0040.01216.72
7.2.130.0000.01716.67
7.2.120.0080.00816.84
7.2.110.0000.01117.07
7.2.100.0070.00716.92
7.2.90.0050.00516.93
7.2.80.0060.00916.99
7.2.70.0100.00317.04
7.2.60.0070.00417.01
7.2.50.0090.00617.16
7.2.40.0060.00916.91
7.2.30.0100.00716.82
7.2.20.0120.00316.95
7.2.10.0070.00717.00
7.2.00.0060.00818.38
7.1.330.0070.01015.88
7.1.320.0060.00616.14
7.1.310.0030.00916.17
7.1.300.0050.00516.09
7.1.290.0030.01015.96
7.1.280.0040.01115.91
7.1.270.0060.00615.95
7.1.260.0120.00616.09
7.1.250.0030.01015.98
7.1.200.0080.00515.83
7.1.100.0090.00018.44
7.1.70.0080.00317.09
7.1.60.0070.01819.25
7.1.50.0070.00417.23
7.1.00.0070.07322.46
7.0.200.0050.00516.86
7.0.80.0030.03719.91
7.0.70.0470.07319.91
7.0.60.0400.08019.93
7.0.50.0300.09020.30
7.0.40.0230.07020.09
7.0.30.0130.08020.13
7.0.20.0030.09020.16
7.0.10.0070.08320.04
7.0.00.0100.08320.01
5.6.280.0030.07320.96
5.6.230.0030.04020.65
5.6.220.0200.03320.55
5.6.210.0130.04320.59
5.6.200.0100.08020.95
5.6.190.0000.08320.91
5.6.180.0070.06321.10
5.6.170.0200.07321.04
5.6.160.0270.06021.13
5.6.150.0030.07721.08
5.6.140.0030.04321.13
5.6.130.0070.08021.04
5.6.120.0000.08321.13
5.6.110.0030.04321.05
5.6.100.0070.07721.12
5.6.90.0100.08020.96
5.6.80.0030.04020.48
5.6.70.0170.05720.32
5.6.60.0130.06020.46
5.6.50.0070.04720.33
5.6.40.0030.06320.52
5.6.30.0200.06320.48
5.6.20.0170.07020.38
5.6.10.0070.07720.33
5.6.00.0070.07320.33
5.5.370.0030.05020.41
5.5.360.0100.07020.43
5.5.350.0130.06720.39
5.5.340.0070.07720.86
5.5.330.0100.08020.88
5.5.320.0170.07720.82
5.5.310.0170.07720.91
5.5.300.0070.04320.89
5.5.290.0130.07720.85
5.5.280.0030.07320.74
5.5.270.0070.08020.63
5.5.260.0100.07320.72
5.5.250.0200.07320.59
5.5.240.0130.07320.26
5.5.230.0000.04720.24
5.5.220.0100.07020.18
5.5.210.0030.04720.10
5.5.200.0100.07319.98
5.5.190.0070.08320.23
5.5.180.0030.05320.14
5.5.160.0030.06720.17
5.5.150.0130.07020.23
5.5.140.0070.04720.20
5.5.130.0070.07719.98
5.5.120.0070.08320.09
5.5.110.0130.06020.07
5.5.100.0100.06720.05
5.5.90.0100.04320.16
5.5.80.0030.07719.96
5.5.70.0170.06719.95
5.5.60.0100.08020.05
5.5.50.0100.06720.11
5.5.40.0070.05020.13
5.5.30.0130.07720.05
5.5.20.0130.06320.03
5.5.10.0170.06019.95
5.5.00.0000.07720.10

preferences:
23.33 ms | 403 KiB | 5 Q