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"****"', $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.0110.00418.68
8.3.50.0070.00716.62
8.3.40.0030.01318.98
8.3.30.0150.00019.02
8.3.20.0030.00720.20
8.3.10.0050.00321.96
8.3.00.0040.00420.73
8.2.180.0080.00818.29
8.2.170.0100.00722.96
8.2.160.0100.00722.11
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00320.55
8.2.120.0000.00726.35
8.2.110.0030.00622.38
8.2.100.0130.00317.96
8.2.90.0030.00519.09
8.2.80.0060.00317.97
8.2.70.0000.00817.75
8.2.60.0080.00017.93
8.2.50.0030.00618.10
8.2.40.0040.00422.27
8.2.30.0000.00821.04
8.2.20.0040.00418.14
8.2.10.0000.00818.00
8.2.00.0050.00318.09
8.1.280.0090.01225.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.85
8.1.230.0090.00322.20
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.38
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0050.00918.49
8.1.160.0000.00718.91
8.1.150.0000.00718.70
8.1.140.0040.00419.38
8.1.130.0030.00318.82
8.1.120.0040.00417.53
8.1.110.0070.00017.57
8.1.100.0040.00417.54
8.1.90.0000.00817.53
8.1.80.0040.00417.43
8.1.70.0000.00817.45
8.1.60.0030.00617.60
8.1.50.0030.00517.63
8.1.40.0040.00417.59
8.1.30.0000.01017.74
8.1.20.0040.00417.71
8.1.10.0040.00417.56
8.1.00.0030.00617.64
8.0.300.0000.01018.77
8.0.290.0000.00716.88
8.0.280.0050.00318.46
8.0.270.0040.00217.27
8.0.260.0060.00016.96
8.0.250.0000.00716.96
8.0.240.0080.00316.84
8.0.230.0030.00617.05
8.0.220.0050.00316.87
8.0.210.0070.00016.88
8.0.200.0020.00516.97
8.0.190.0030.00516.99
8.0.180.0000.00716.93
8.0.170.0000.00716.97
8.0.160.0070.00017.00
8.0.150.0070.00016.92
8.0.140.0000.00816.94
8.0.130.0040.00313.30
8.0.120.0080.00016.94
8.0.110.0000.00716.88
8.0.100.0030.00616.86
8.0.90.0050.00216.75
8.0.80.0060.01116.95
8.0.70.0000.00816.83
8.0.60.0050.00216.87
8.0.50.0040.00416.84
8.0.30.0080.01217.30
8.0.20.0100.00917.40
8.0.10.0000.00817.16
8.0.00.0120.00616.74
7.4.330.0020.00215.55
7.4.320.0060.00016.59
7.4.300.0040.00416.73
7.4.290.0020.00516.58
7.4.280.0080.00016.73
7.4.270.0050.00216.78
7.4.260.0060.00316.71
7.4.250.0070.00016.59
7.4.240.0030.00316.61
7.4.230.0030.00316.54
7.4.220.0040.00416.45
7.4.210.0080.00516.69
7.4.200.0000.00716.49
7.4.160.0100.00616.66
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0130.01316.71
7.4.120.0110.01016.68
7.4.110.0180.00016.52
7.4.100.0030.01416.45
7.4.90.0120.00916.48
7.4.80.0110.01119.39
7.4.70.0140.00316.57
7.4.60.0100.00616.50
7.4.50.0040.01116.62
7.4.40.0140.00316.56
7.4.30.0000.01716.52
7.4.00.0080.00815.26
7.3.330.0000.00513.09
7.3.320.0060.00013.09
7.3.310.0030.00316.44
7.3.300.0000.00716.39
7.3.290.0080.00816.36
7.3.280.0090.00816.37
7.3.270.0040.01417.40
7.3.260.0080.00916.69
7.3.250.0110.00716.56
7.3.240.0110.00916.64
7.3.230.0170.00816.40
7.3.210.0100.00716.26
7.3.200.0150.00616.32
7.3.190.0060.01016.73
7.3.180.0060.01016.79
7.3.170.0070.01016.39
7.3.160.0170.00016.64
7.2.330.0100.00716.66
7.2.320.0100.01316.53
7.2.310.0080.00816.55
7.2.300.0100.00616.59
7.2.290.0120.00616.52
7.2.60.0090.00616.88
7.2.00.0120.00619.46
7.1.200.0070.00715.78
7.1.100.0000.01118.41
7.1.70.0060.00317.06
7.1.60.0430.00733.38
7.1.50.0400.01332.89
7.1.40.0370.01333.06
7.1.30.0430.00732.93
7.1.20.0370.01733.06
7.1.10.0370.00714.77
7.1.00.0230.01015.20
7.0.200.0330.00715.03
7.0.190.0300.00715.28
7.0.180.0270.00714.50
7.0.170.0230.01014.59
7.0.160.0270.01314.85
7.0.150.0230.01314.55
7.0.140.0270.01014.59
7.0.130.0400.01314.89
7.0.120.0400.01014.88
7.0.110.0300.00314.94
7.0.100.0770.01014.67
7.0.90.0270.01014.77
7.0.80.0270.01314.65
7.0.70.0430.00714.88
7.0.60.0300.00714.69
7.0.50.0230.01014.97
7.0.40.0230.01314.95
7.0.30.0270.01015.01
7.0.20.0270.00714.95
7.0.10.0300.00314.94
7.0.00.0270.01014.58

preferences:
58.65 ms | 400 KiB | 5 Q