3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = json_encode(["foo"=>["password"=>"foo\\\"bar"]]); //echo $c; echo 'foo\nbar'; //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.0210.00018.18
8.3.50.0040.01116.25
8.3.40.0140.00018.54
8.3.30.0120.00318.54
8.3.20.0030.00720.10
8.3.10.0030.00621.55
8.3.00.0050.00320.77
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0070.00722.25
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.72
8.2.110.0040.00420.57
8.2.100.0090.00317.78
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0000.00722.36
8.2.30.0040.00420.95
8.2.20.0040.00417.88
8.2.10.0080.00017.98
8.2.00.0080.00017.91
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.89
8.1.230.0110.00019.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0070.00418.28
8.1.160.0070.00018.93
8.1.150.0000.00720.72
8.1.140.0000.00719.55
8.1.130.0000.00718.87
8.1.120.0000.00717.39
8.1.110.0070.00017.25
8.1.100.0050.00317.44
8.1.90.0000.00717.27
8.1.80.0070.00017.37
8.1.70.0000.00717.38
8.1.60.0060.00317.53
8.1.50.0000.00817.46
8.1.40.0040.00417.31
8.1.30.0080.00017.46
8.1.20.0060.00317.61
8.1.10.0030.00517.47
8.1.00.0050.00217.41
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0030.00317.23
8.0.260.0000.00618.47
8.0.250.0050.00216.87
8.0.240.0030.00616.63
8.0.230.0000.00816.78
8.0.220.0070.00016.65
8.0.210.0040.00416.68
8.0.200.0000.00616.88
8.0.190.0000.00816.91
8.0.180.0000.00816.86
8.0.170.0040.00416.72
8.0.160.0040.00416.89
8.0.150.0000.00816.83
8.0.140.0000.00716.78
8.0.130.0000.00713.22
8.0.120.0040.00416.68
8.0.110.0040.00416.77
8.0.100.0050.00216.68
8.0.90.0040.00416.70
8.0.80.0090.00916.87
8.0.70.0070.00016.70
8.0.60.0000.00716.84
8.0.50.0040.00416.70
8.0.30.0080.01116.92
8.0.20.0130.00817.40
8.0.10.0000.00816.94
8.0.00.0030.01316.45
7.4.330.0000.00615.55
7.4.320.0030.00316.47
7.4.300.0070.00016.51
7.4.290.0080.00216.39
7.4.280.0030.00516.56
7.4.270.0000.00716.34
7.4.260.0080.00016.50
7.4.250.0000.00716.36
7.4.240.0070.00016.55
7.4.230.0000.00716.54
7.4.220.0060.01316.46
7.4.210.0070.00716.61
7.4.200.0000.00816.55
7.4.160.0080.00816.43
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0090.01516.46
7.4.120.0110.00816.49
7.4.110.0090.00816.32
7.4.100.0050.01116.38
7.4.90.0170.00016.45
7.4.80.0040.01819.39
7.4.70.0120.00416.44
7.4.60.0090.00916.37
7.4.50.0100.00316.52
7.4.40.0090.01016.34
7.4.30.0110.00616.20
7.4.00.0060.01114.89
7.3.330.0000.00612.89
7.3.320.0030.00312.83
7.3.310.0000.00715.98
7.3.300.0040.00415.96
7.3.290.0080.00816.08
7.3.280.0070.01016.11
7.3.270.0120.00617.40
7.3.260.0100.00716.21
7.3.250.0140.00416.12
7.3.240.0100.00816.34
7.3.230.0090.01216.23
7.3.210.0070.01016.22
7.3.200.0060.01016.36
7.3.190.0080.00816.13
7.3.180.0070.00716.25
7.3.170.0090.00616.13
7.3.160.0180.00316.38
7.3.120.0070.01114.90
7.3.110.0060.00914.71
7.3.100.0040.00814.43
7.3.90.0060.00914.68
7.3.80.0040.01114.60
7.3.70.0100.00614.68
7.3.60.0000.00914.49
7.3.50.0040.00714.55
7.3.40.0070.00714.67
7.3.30.0060.00314.45
7.3.20.0060.01016.57
7.3.10.0040.01116.52
7.3.00.0080.00816.74
7.2.330.0140.00316.59
7.2.320.0100.00716.41
7.2.310.0070.01016.57
7.2.300.0030.01416.57
7.2.290.0030.01316.55
7.2.250.0140.00315.02
7.2.240.0060.01015.09
7.2.230.0070.01114.71
7.2.220.0120.00314.86
7.2.210.0050.00814.91
7.2.200.0060.00315.04
7.2.190.0030.00614.80
7.2.180.0030.01014.80
7.2.170.0000.01515.01
7.2.60.0100.00716.66
7.2.00.0000.01119.05
7.1.330.0030.01415.81
7.1.320.0040.00715.75
7.1.310.0040.00415.94
7.1.300.0000.01115.68
7.1.290.0060.00315.79
7.1.280.0000.00915.70
7.1.270.0070.00315.67
7.1.260.0000.01515.38
7.1.200.0060.00615.49
7.1.100.0040.00417.71
7.1.70.0000.00717.03
7.1.60.0400.01333.12
7.1.50.0370.01733.04
7.1.40.0470.00732.45
7.1.30.0470.01032.53
7.1.20.0470.00732.55
7.1.10.0830.00314.61
7.1.00.0230.01714.62
7.0.200.0230.01315.00
7.0.190.0300.01014.79
7.0.180.0370.00314.30
7.0.170.0270.01314.45
7.0.160.0300.01014.36
7.0.150.0400.01314.36
7.0.140.0330.00714.55
7.0.130.0300.00714.71
7.0.120.0270.01014.46
7.0.110.0300.01014.26
7.0.100.0330.00714.31
7.0.90.0330.00714.26
7.0.80.0270.01314.31
7.0.70.0330.01014.53
7.0.60.0470.00714.02
7.0.50.0330.01314.57
7.0.40.0330.01314.43
7.0.30.0370.01314.56
7.0.20.0300.01314.37
7.0.10.0370.00714.54
7.0.00.0330.00714.55

preferences:
51.68 ms | 401 KiB | 5 Q