3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg = '#<p>\s*\[spoiler\s+id=\d+\]\s*</p>#'; $text = <<<TEXT Before. <p> [spoiler id=7] </p> After. <p> [spoiler id=42] </p> TEXT; echo preg_replace($reg, '', $text);

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.70.0040.01116.63
8.3.60.0110.00718.15
8.3.50.0120.00318.20
8.3.40.0060.00918.77
8.3.30.0000.01518.97
8.3.20.0130.00318.90
8.3.10.0040.00423.48
8.3.00.0040.00422.39
8.2.190.0120.00317.00
8.2.180.0140.00718.41
8.2.170.0120.00322.96
8.2.160.0000.01421.13
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0070.00021.00
8.2.110.0090.00020.51
8.2.100.0040.00817.84
8.2.90.0040.00418.28
8.2.80.0080.00017.97
8.2.70.0040.00417.93
8.2.60.0080.00019.88
8.2.50.0060.00318.10
8.2.40.0030.00621.09
8.2.30.0000.00720.57
8.2.20.0000.00818.19
8.2.10.0000.00718.01
8.2.00.0000.00719.27
8.1.280.0000.01425.92
8.1.270.0000.00722.14
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00022.00
8.1.230.0080.00423.91
8.1.220.0060.00317.74
8.1.210.0040.00418.81
8.1.200.0000.01117.35
8.1.190.0000.00817.36
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0050.00218.85
8.1.150.0000.00718.90
8.1.140.0040.00419.04
8.1.130.0070.00019.03
8.1.120.0040.00417.45
8.1.110.0000.01017.44
8.1.100.0050.00217.46
8.1.90.0070.00317.43
8.1.80.0040.00417.50
8.1.70.0000.00717.61
8.1.60.0000.00817.59
8.1.50.0030.00617.59
8.1.40.0030.00617.56
8.1.30.0060.00317.74
8.1.20.0030.00617.73
8.1.10.0070.00017.66
8.1.00.0030.00617.65
8.0.300.0000.00719.94
8.0.290.0070.00016.63
8.0.280.0030.00318.47
8.0.270.0040.00417.03
8.0.260.0060.00018.60
8.0.250.0030.00317.16
8.0.240.0000.00817.06
8.0.230.0070.00016.97
8.0.220.0000.00717.04
8.0.210.0030.00316.94
8.0.200.0000.00617.00
8.0.190.0030.00617.02
8.0.180.0000.00716.95
8.0.170.0000.00817.06
8.0.160.0060.00617.06
8.0.150.0000.00816.88
8.0.140.0000.00717.04
8.0.130.0060.00013.47
8.0.120.0000.00716.98
8.0.110.0050.00217.01
8.0.100.0040.00416.92
8.0.90.0050.00317.00
8.0.80.0110.00517.01
8.0.70.0000.00716.99
8.0.60.0040.00416.97
8.0.50.0000.00717.02
8.0.30.0120.00717.25
8.0.20.0030.01717.40
8.0.10.0000.00717.21
8.0.00.0090.00917.02
7.4.330.0020.00215.55
7.4.320.0070.00016.70
7.4.300.0030.00316.75
7.4.290.0030.00316.64
7.4.280.0060.00516.75
7.4.270.0060.00316.72
7.4.260.0030.00316.58
7.4.250.0040.00416.72
7.4.240.0000.00716.70
7.4.230.0040.00416.73
7.4.220.0000.00816.65
7.4.210.0100.00716.77
7.4.200.0000.00716.72
7.4.160.0130.00416.68
7.4.140.0120.00817.86
7.4.130.0150.00916.49
7.4.120.0130.00716.68
7.4.110.0060.01016.42
7.4.100.0040.01416.52
7.4.90.0090.00916.63
7.4.80.0160.00319.39
7.4.70.0060.00916.64
7.4.60.0090.01216.67
7.4.50.0110.00416.50
7.4.40.0190.00416.45
7.4.10.0040.01415.38
7.4.00.0090.00615.15
7.3.330.0030.00313.33
7.3.320.0040.00413.08
7.3.310.0030.00316.45
7.3.300.0030.00316.21
7.3.290.0000.00716.33
7.3.280.0130.00816.40
7.3.260.0120.00716.48
7.3.240.0090.01016.64
7.3.230.0070.01016.37
7.3.210.0110.01116.47
7.3.200.0120.00616.55
7.3.190.0120.01216.43
7.3.180.0030.01216.36
7.3.170.0070.01316.52
7.3.160.0110.00916.62
7.3.130.0070.00714.68
7.3.120.0100.00714.98
7.3.110.0140.00414.91
7.3.100.0050.00314.81
7.3.90.0090.00314.98
7.3.80.0070.01015.13
7.3.70.0030.00714.60
7.3.60.0080.00415.00
7.3.50.0090.00314.75
7.3.40.0000.00915.07
7.3.30.0030.00614.77
7.3.20.0030.01016.81
7.3.10.0040.01116.70
7.3.00.0070.01016.64
7.2.330.0100.00716.67
7.2.320.0000.01716.77
7.2.310.0100.00716.59
7.2.300.0180.00316.79
7.2.290.0140.01216.77
7.2.260.0070.01115.06
7.2.250.0120.00615.12
7.2.240.0000.01315.25
7.2.230.0090.00315.31
7.2.220.0060.01015.01
7.2.210.0120.00015.03
7.2.200.0100.00314.88
7.2.190.0100.00714.94
7.2.180.0070.00714.79
7.2.170.0030.01015.15
7.2.160.0030.01015.25
7.2.150.0070.00716.68
7.2.140.0070.00317.04
7.2.130.0100.00616.95
7.2.120.0000.01117.10
7.2.110.0000.01216.95
7.2.100.0090.00316.70
7.2.90.0060.00916.94
7.2.80.0590.00815.89
7.2.70.0600.01315.71
7.2.60.0570.00815.85
7.2.50.0610.00916.03
7.2.40.1140.00815.97
7.2.30.0570.00615.91
7.2.20.0670.00816.02
7.2.10.0530.01016.08
7.2.00.1040.00416.06
7.1.330.0160.00016.05
7.1.320.0070.00715.98
7.1.310.0060.00615.72
7.1.300.0060.00615.74
7.1.290.0090.00615.89
7.1.280.0030.01015.91
7.1.270.0050.00315.67
7.1.260.0100.00015.86
7.1.250.0060.00615.87
7.1.240.0100.00616.00
7.1.230.0000.01615.82
7.1.220.0070.00415.96
7.1.210.0090.00616.01
7.1.200.0910.00814.85
7.1.190.0620.00614.92
7.1.180.0770.00714.88
7.1.170.0890.00214.91
7.1.160.0770.00114.84
7.1.150.0520.01014.87
7.1.140.0530.00714.90
7.1.130.1210.00814.92
7.1.120.0640.01114.67
7.1.110.0710.00814.82
7.1.100.0960.01014.79
7.1.90.0790.00814.79
7.1.80.1220.00714.69
7.1.70.0890.00514.95
7.1.60.0970.00523.94
7.1.50.1120.00923.78
7.1.40.1310.00823.89
7.1.30.1590.01223.72
7.1.20.1980.00923.79
7.1.10.1290.00814.94
7.1.00.1210.00314.88
7.0.330.0090.00015.43
7.0.320.0030.01015.39
7.0.310.0090.00015.38
7.0.300.0070.00715.26
7.0.290.0000.00915.50
7.0.280.0060.00615.56
7.0.270.0000.01415.23
7.0.260.0070.00415.68
7.0.250.0060.00615.58
7.0.240.0040.01215.63
7.0.230.0090.00315.32
7.0.220.0070.00415.30
7.0.210.0090.00315.52
7.0.200.0070.00415.38
7.0.190.0030.00615.21
7.0.180.0040.01115.09
7.0.170.0060.00615.25
7.0.160.0000.00815.42
7.0.150.0080.00415.56
7.0.140.0090.00615.37
7.0.130.0030.00915.59
7.0.120.0050.00315.43
7.0.110.0060.00615.68
7.0.100.0070.00715.53
7.0.90.0100.00315.59
7.0.80.0000.01515.46
7.0.70.0060.00915.60
7.0.60.0080.00315.58
7.0.50.0070.01015.82
7.0.40.0070.01013.60
7.0.30.0000.01213.71
7.0.20.0040.00413.66
7.0.10.0060.00613.49
7.0.00.0070.00713.36
5.6.400.0030.00614.73
5.6.390.0030.00714.39
5.6.380.0030.00514.44
5.6.370.0040.00714.54
5.6.360.0070.00714.62
5.6.350.0040.00414.44
5.6.340.0070.00714.18
5.6.330.0070.01014.15
5.6.320.0090.00614.54
5.6.310.0150.00014.24
5.6.300.0120.00314.68
5.6.290.0070.00714.02
5.6.280.0000.00814.50
5.6.270.0060.00914.16
5.6.260.0120.00614.31
5.6.250.0070.01014.30
5.6.240.0100.00014.24
5.6.230.0060.00614.23
5.6.220.0070.00714.34
5.6.210.0090.00314.04
5.6.200.0060.00614.24
5.6.190.0030.00714.53
5.6.180.0090.00614.09
5.6.170.0000.01414.21
5.6.160.0100.00314.30
5.6.150.0060.00614.37
5.6.140.0030.00914.50
5.6.130.0030.00614.26
5.6.120.0090.00014.24
5.6.110.0030.01014.11
5.6.100.0060.00614.30
5.6.90.0060.00614.15
5.6.80.0040.01114.18
5.6.70.0040.00414.18
5.6.60.0000.01114.02
5.6.50.0090.00614.08
5.6.40.0060.01213.90
5.6.30.0030.00714.54
5.6.20.0060.00914.24
5.6.10.0000.01114.18
5.6.00.0070.01114.16

preferences:
19.33 ms | 401 KiB | 5 Q