3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_value = preg_replace('#<(password)(?:[^>]+)?>.*?</\1>#s', '<password>REDACTED</password>', "'password' => 'r7d?=43uOk'"); $current_value = preg_replace('#([pP])assword => ([^$]+)#s', "$1assword => REDACTED", $current_value); $current_value = preg_replace('#([pP])assword":"([^"]+)"#s', '$1assword":"REDACTED"', $current_value); var_dump($current_value);

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.0090.00918.43
8.3.50.0060.00916.66
8.3.40.0070.01118.96
8.3.30.0060.00918.88
8.3.20.0000.00920.34
8.3.10.0040.00421.70
8.3.00.0000.00820.95
8.2.180.0140.00718.54
8.2.170.0110.00422.96
8.2.160.0100.00322.18
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00522.43
8.2.120.0050.00326.35
8.2.110.0070.00320.38
8.2.100.0120.00017.91
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0030.00617.59
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0000.00922.49
8.2.30.0100.00021.18
8.2.20.0000.00818.02
8.2.10.0040.00418.16
8.2.00.0070.00018.08
8.1.280.0070.01425.92
8.1.270.0050.00322.11
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0040.00719.18
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00818.70
8.1.160.0000.00719.02
8.1.150.0040.00420.71
8.1.140.0030.00619.53
8.1.130.0030.00318.79
8.1.120.0030.00417.61
8.1.110.0040.00417.53
8.1.100.0060.00317.55
8.1.90.0040.00417.57
8.1.80.0070.00017.55
8.1.70.0000.00717.55
8.1.60.0000.00817.64
8.1.50.0000.00917.61
8.1.40.0080.00017.63
8.1.30.0030.00617.77
8.1.20.0030.00917.71
8.1.10.0050.00217.50
8.1.00.0040.00417.54
8.0.300.0000.00818.77
8.0.290.0050.00216.88
8.0.280.0000.00718.32
8.0.270.0040.00417.22
8.0.260.0000.00716.91
8.0.250.0000.00717.03
8.0.240.0050.00317.00
8.0.230.0040.00416.99
8.0.220.0030.00316.96
8.0.210.0030.00316.96
8.0.200.0030.00316.94
8.0.190.0090.00017.03
8.0.180.0060.00316.99
8.0.170.0000.00716.84
8.0.160.0000.00717.00
8.0.150.0030.00616.83
8.0.140.0000.00816.88
8.0.130.0000.00513.39
8.0.120.0040.00416.97
8.0.110.0040.00417.02
8.0.100.0000.00716.84
8.0.90.0000.00717.11
8.0.80.0060.01616.98
8.0.70.0050.00317.04
8.0.60.0060.00317.04
8.0.50.0050.00217.00
8.0.30.0050.01117.05
8.0.20.0140.00717.40
8.0.10.0040.00417.05
8.0.00.0060.01116.73
7.4.330.0000.00615.55
7.4.320.0000.00616.63
7.4.300.0030.00316.72
7.4.290.0000.00916.86
7.4.280.0060.00316.82
7.4.270.0040.00416.84
7.4.260.0000.00713.47
7.4.250.0030.00516.68
7.4.240.0060.00316.71
7.4.230.0040.00416.57
7.4.220.0040.01416.84
7.4.210.0100.00816.82
7.4.200.0000.00716.77
7.4.160.0090.00716.66
7.4.150.0050.01117.40
7.4.140.0140.00417.86
7.4.130.0170.00716.59
7.4.120.0130.00916.68
7.4.110.0030.01516.61
7.4.100.0110.00716.63
7.4.90.0110.00616.65
7.4.80.0040.01219.39
7.4.70.0070.01016.70
7.4.60.0060.01116.61
7.4.50.0070.01016.61
7.4.40.0060.01016.51
7.4.30.0100.01016.43
7.4.00.0070.01015.06
7.3.330.0060.00013.12
7.3.320.0070.00013.08
7.3.310.0030.00316.10
7.3.300.0000.00616.19
7.3.290.0030.00316.32
7.3.280.0070.00916.28
7.3.270.0110.00717.40
7.3.260.0100.00716.37
7.3.250.0130.01016.36
7.3.240.0090.00916.30
7.3.230.0130.01016.33
7.3.210.0070.01016.55
7.3.200.0160.00616.72
7.3.190.0070.01116.46
7.3.180.0100.00616.52
7.3.170.0130.00716.48
7.3.160.0070.01316.29
7.3.120.0030.01414.93
7.3.110.0110.00314.86
7.3.100.0060.00614.58
7.3.90.0030.01614.92
7.3.80.0060.01015.04
7.3.70.0070.00714.56
7.3.60.0080.00814.94
7.3.50.0030.01614.79
7.3.40.0060.00914.96
7.3.30.0060.01014.92
7.3.20.0100.00316.89
7.3.10.0100.00616.77
7.3.00.0070.00316.84
7.2.330.0070.01316.79
7.2.320.0040.01516.70
7.2.310.0120.00416.48
7.2.300.0070.01016.62
7.2.290.0180.00716.61
7.2.250.0110.00614.93
7.2.240.0070.01115.06
7.2.230.0030.01315.17
7.2.220.0000.01115.20
7.2.210.0040.01215.28
7.2.200.0000.01415.23
7.2.190.0090.00915.02
7.2.180.0000.01415.12
7.2.170.0030.00914.81
7.2.60.0100.00616.79
7.2.00.0040.01119.44
7.1.330.0070.01015.94
7.1.320.0040.00715.77
7.1.310.0090.00316.13
7.1.300.0070.00715.94
7.1.290.0040.01116.04
7.1.280.0030.00616.00
7.1.270.0060.00615.59
7.1.260.0060.00815.65
7.1.200.0070.00715.89
7.1.100.0110.00718.17
7.1.70.0130.00017.22
7.1.60.0600.01733.16
7.1.50.1070.01033.13
7.1.40.0600.02032.79
7.1.30.0900.01332.73
7.1.20.1100.01332.84
7.1.10.0730.01714.84
7.1.00.0800.02314.95
7.0.200.0670.01015.14
7.0.190.0600.01314.73
7.0.180.0570.01014.41
7.0.170.0830.01014.49
7.0.160.1170.01314.59
7.0.150.0700.01014.78
7.0.140.0100.01014.64
7.0.130.0200.00714.75
7.0.120.0130.01014.82
7.0.110.0800.00714.32
7.0.100.0670.01314.52
7.0.90.0770.01714.56
7.0.80.0900.01314.87
7.0.70.0570.01014.54
7.0.60.0300.00714.48
7.0.50.0570.01014.84
7.0.40.0670.01014.86
7.0.30.0070.01014.73
7.0.20.0700.01314.67
7.0.10.0570.01314.89
7.0.00.0630.00714.66

preferences:
40.4 ms | 400 KiB | 5 Q