3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = json_encode(["foo"=>["password"=>"foo\\\"bar"]]); echo preg_replace('{("password"\s*:\s*)"([^"\\\\]|(\\"))*"}', '$1"****"', $c);

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.0150.00018.43
8.3.50.0150.00016.64
8.3.40.0080.00818.97
8.3.30.0090.00618.80
8.3.20.0030.00720.04
8.3.10.0040.00421.95
8.3.00.0030.00520.73
8.2.180.0110.00418.54
8.2.170.0100.00322.96
8.2.160.0030.01019.27
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00020.53
8.2.120.0120.00326.35
8.2.110.0110.01120.32
8.2.100.0040.00717.97
8.2.90.0000.00819.28
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0080.00017.93
8.2.50.0090.00318.10
8.2.40.0040.00422.39
8.2.30.0080.00021.14
8.2.20.0070.00018.04
8.2.10.0030.00618.02
8.2.00.0040.00417.90
8.1.280.0140.00025.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.49
8.1.230.0040.00819.09
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0000.01118.77
8.1.160.0040.00418.98
8.1.150.0030.00520.70
8.1.140.0000.00719.53
8.1.130.0070.00018.70
8.1.120.0000.00717.43
8.1.110.0000.01017.53
8.1.100.0050.00217.47
8.1.90.0000.00817.53
8.1.80.0040.00417.52
8.1.70.0030.00317.52
8.1.60.0040.00417.66
8.1.50.0050.00317.58
8.1.40.0070.00017.46
8.1.30.0060.00517.79
8.1.20.0060.00317.79
8.1.10.0040.00417.71
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0070.00018.46
8.0.270.0040.00417.19
8.0.260.0000.00616.92
8.0.250.0070.00017.11
8.0.240.0080.00316.88
8.0.230.0080.00016.95
8.0.220.0070.00017.02
8.0.210.0040.00417.00
8.0.200.0000.00617.03
8.0.190.0000.00817.03
8.0.180.0050.00316.98
8.0.170.0040.00416.90
8.0.160.0070.00016.98
8.0.150.0040.00416.98
8.0.140.0000.00716.96
8.0.130.0000.00713.42
8.0.120.0000.00717.01
8.0.110.0020.00517.00
8.0.100.0040.00316.78
8.0.90.0000.00716.88
8.0.80.0130.00316.88
8.0.70.0030.00516.77
8.0.60.0050.00316.93
8.0.50.0000.00816.83
8.0.30.0100.00917.22
8.0.20.0110.01017.44
8.0.10.0000.00716.91
8.0.00.0100.00716.70
7.4.330.0050.00015.55
7.4.320.0000.00616.55
7.4.300.0030.00316.71
7.4.290.0080.00016.72
7.4.280.0000.00716.59
7.4.270.0050.00316.55
7.4.260.0030.00316.50
7.4.250.0000.00816.61
7.4.240.0040.00416.78
7.4.230.0000.00716.46
7.4.220.0170.00416.56
7.4.210.0030.01016.74
7.4.200.0070.00016.64
7.4.160.0120.00516.70
7.4.150.0110.00717.40
7.4.140.0060.01117.86
7.4.130.0130.01316.69
7.4.120.0120.01016.65
7.4.110.0090.00916.55
7.4.100.0090.00916.79
7.4.90.0100.00716.52
7.4.80.0170.00019.39
7.4.70.0070.01016.56
7.4.60.0100.00616.68
7.4.50.0090.00616.66
7.4.40.0100.00716.59
7.4.30.0070.01116.73
7.4.00.0110.00415.18
7.3.330.0020.00213.19
7.3.320.0000.00613.09
7.3.310.0050.00216.35
7.3.300.0000.00716.13
7.3.290.0070.01116.33
7.3.280.0070.00916.30
7.3.270.0080.00817.40
7.3.260.0110.00616.53
7.3.250.0100.00916.58
7.3.240.0100.00916.55
7.3.230.0140.00616.25
7.3.210.0150.00416.62
7.3.200.0070.01016.41
7.3.190.0100.00616.38
7.3.180.0090.00616.59
7.3.170.0130.00316.46
7.3.160.0070.01016.32
7.2.330.0030.01416.74
7.2.320.0160.00616.66
7.2.310.0130.00416.70
7.2.300.0130.00316.65
7.2.290.0080.00816.88
7.2.110.0120.01316.80
7.2.100.0130.00716.65
7.2.90.0240.00616.76
7.2.80.0190.01016.55
7.2.70.0090.02016.96
7.2.60.0140.00716.96
7.2.50.0270.00517.10
7.2.40.0170.01016.67
7.2.30.0240.00616.74
7.2.20.0170.01217.07
7.2.10.0150.01516.86
7.2.00.0040.00918.17
7.1.230.0160.00815.65
7.1.220.0170.00915.96
7.1.210.0130.01315.93
7.1.200.0150.00715.70
7.1.190.0210.00516.04
7.1.180.0070.01515.65
7.1.170.0240.00416.04
7.1.160.0140.00915.72
7.1.150.0140.01215.74
7.1.140.0220.00415.79
7.1.130.0100.01515.66
7.1.120.0110.01115.61
7.1.110.0160.00815.71
7.1.100.0120.00516.94
7.1.90.0170.00715.89
7.1.80.0150.01215.95
7.1.70.0120.00816.58
7.1.60.0350.01424.70
7.1.50.0490.01224.61
7.1.40.0290.01024.48
7.1.30.0370.01224.43
7.1.20.0300.01924.45
7.1.10.0270.01015.42
7.1.00.0270.00915.55
7.0.310.0160.00615.63
7.0.300.0140.01115.61
7.0.290.0160.01015.50
7.0.280.0220.00315.15
7.0.270.0160.00615.60
7.0.260.0160.00415.59
7.0.250.0210.00015.66
7.0.240.0190.00615.43
7.0.230.0140.00715.65
7.0.220.0190.00415.41
7.0.210.0130.00915.24
7.0.200.0290.01115.18
7.0.190.0260.01815.32
7.0.180.0290.00714.84
7.0.170.0260.00915.08
7.0.160.0300.00914.97
7.0.150.0230.01215.08
7.0.140.0310.00815.13
7.0.130.0300.00615.17
7.0.120.0330.00715.25
7.0.110.0320.00915.08
7.0.100.0350.01215.01
7.0.90.0320.00815.05
7.0.80.0350.00815.06
7.0.70.0310.01115.09
7.0.60.0390.01114.88
7.0.50.0270.00915.06
7.0.40.0270.01114.06
7.0.30.0260.01114.13
7.0.20.0240.01114.20
7.0.10.0380.00814.06
7.0.00.0320.01014.03
5.6.380.0160.00514.32

preferences:
71.51 ms | 400 KiB | 5 Q