3v4l.org

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

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.00618.56
8.3.50.0070.00716.35
8.3.40.0060.00918.63
8.3.30.0070.00718.84
8.3.20.0070.00320.13
8.3.10.0040.00423.61
8.3.00.0040.00420.89
8.2.180.0130.00618.66
8.2.170.0140.00322.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00020.53
8.2.120.0050.00326.35
8.2.110.0000.00920.47
8.2.100.0120.00017.78
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0030.00517.50
8.2.60.0030.00517.80
8.2.50.0080.00418.10
8.2.40.0090.00022.19
8.2.30.0000.00821.09
8.2.20.0000.00818.02
8.2.10.0020.00517.94
8.2.00.0000.00718.10
8.1.280.0140.00725.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.57
8.1.230.0110.00019.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00516.98
8.1.180.0040.00418.10
8.1.170.0080.00417.95
8.1.160.0040.00419.01
8.1.150.0000.00718.83
8.1.140.0000.00719.42
8.1.130.0040.00417.32
8.1.120.0040.00417.40
8.1.110.0040.00417.34
8.1.100.0030.00617.27
8.1.90.0000.00817.38
8.1.80.0000.00717.28
8.1.70.0070.00017.30
8.1.60.0040.00417.48
8.1.50.0040.00417.51
8.1.40.0000.00817.43
8.1.30.0130.00017.66
8.1.20.0050.00317.48
8.1.10.0000.00817.47
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0030.00318.31
8.0.270.0070.00017.30
8.0.260.0000.00716.78
8.0.250.0000.00616.91
8.0.240.0000.00916.84
8.0.230.0040.00416.91
8.0.220.0080.00016.89
8.0.210.0000.00816.91
8.0.200.0030.00316.84
8.0.190.0000.00816.88
8.0.180.0050.00316.90
8.0.170.0030.00416.97
8.0.160.0040.00416.80
8.0.150.0000.00716.90
8.0.140.0000.00816.83
8.0.130.0050.00313.35
8.0.120.0070.00016.88
8.0.110.0000.00716.80
8.0.100.0040.00416.68
8.0.90.0000.00716.73
8.0.80.0060.00916.93
8.0.70.0000.00716.82
8.0.60.0030.00316.80
8.0.50.0000.00716.70
8.0.30.0090.00917.02
8.0.20.0110.00817.40
8.0.10.0080.00016.89
8.0.00.0100.00716.72
7.4.330.0000.00615.55
7.4.320.0000.00616.53
7.4.300.0030.00316.52
7.4.290.0040.00416.30
7.4.280.0030.00516.57
7.4.270.0030.00616.35
7.4.260.0000.00716.41
7.4.250.0000.00816.32
7.4.240.0000.00716.54
7.4.230.0070.00016.48
7.4.220.0130.00616.48
7.4.210.0100.00316.45
7.4.200.0020.00516.44
7.4.160.0080.01116.46
7.4.150.0140.00317.40
7.4.140.0150.00717.86
7.4.130.0110.00816.50
7.4.120.0110.00916.42
7.4.110.0060.01116.55
7.4.100.0140.00416.48
7.4.90.0150.00316.44
7.4.80.0140.00319.39
7.4.70.0100.00616.57
7.4.60.0100.00616.34
7.4.50.0030.00616.48
7.4.40.0090.00816.52
7.4.30.0110.00616.50
7.4.00.0070.01114.83
7.3.330.0050.00013.14
7.3.320.0060.00013.08
7.3.310.0030.00316.09
7.3.300.0030.00316.20
7.3.290.0090.00916.22
7.3.280.0050.01116.24
7.3.270.0120.00917.40
7.3.260.0080.00816.33
7.3.250.0130.00716.31
7.3.240.0080.00816.27
7.3.230.0040.01916.63
7.3.210.0160.00416.45
7.3.200.0070.01116.39
7.3.190.0100.00616.34
7.3.180.0110.00416.37
7.3.170.0110.00616.60
7.3.160.0030.01416.49
7.3.10.0050.00916.41
7.3.00.0050.01016.32
7.2.330.0170.00016.67
7.2.320.0110.01116.41
7.2.310.0040.01216.46
7.2.300.0070.01016.23
7.2.290.0080.00816.62
7.2.130.0090.00516.55
7.2.120.0110.00716.29
7.2.110.0120.00816.58
7.2.100.0130.00616.38
7.2.90.0070.00816.74
7.2.80.0060.00916.37
7.2.70.0120.00716.45
7.2.60.0060.01016.65
7.2.50.0120.00716.44
7.2.40.0090.00316.55
7.2.30.0110.00716.56
7.2.20.0080.01116.57
7.2.10.0070.00916.72
7.2.00.0110.00817.58
7.1.250.0120.00515.54
7.1.200.0130.00415.59
7.1.100.0040.01117.83
7.1.70.0040.00417.20
7.1.60.0370.01733.15
7.1.50.0370.01332.86
7.1.40.0630.01732.58
7.1.30.0370.01332.79
7.1.20.0400.01732.66
7.1.10.0230.01014.86
7.1.00.0270.00714.69
7.0.200.0300.01315.11
7.0.190.0270.01014.95
7.0.180.0300.01314.26
7.0.170.0270.01014.13
7.0.160.0330.00714.41
7.0.150.0200.01314.13
7.0.140.0200.01014.55
7.0.130.0330.01014.84
7.0.120.0270.00714.59
7.0.110.0230.01314.49
7.0.100.0200.01014.45
7.0.90.0230.01014.47
7.0.80.1300.01314.51
7.0.70.0430.01314.31
7.0.60.0300.00314.11
7.0.50.0300.00714.39
7.0.40.0300.01014.66
7.0.30.0300.00714.51
7.0.20.0230.01014.63
7.0.10.0270.01014.32
7.0.00.0300.00714.45

preferences:
43.38 ms | 400 KiB | 5 Q