3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"displayName":"Production","costs":[{"amount":"aa"}]}'; echo preg_replace('/"displayName":".*"/e', "xx", $str);

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.0070.01416.61
8.3.50.0170.00221.92
8.3.40.0120.00318.73
8.3.30.0000.01418.45
8.3.20.0040.00420.34
8.3.10.0040.00423.59
8.3.00.0090.00019.23
8.2.180.0160.00616.47
8.2.170.0030.01022.96
8.2.160.0130.00620.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0160.00620.56
8.2.100.0080.00417.80
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00417.79
8.2.50.0050.00318.07
8.2.40.0000.00919.25
8.2.30.0000.00720.73
8.2.20.0000.00817.64
8.2.10.0000.00717.89
8.2.00.0000.00817.99
8.1.280.0170.00025.92
8.1.270.0090.00623.84
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0050.00523.82
8.1.230.0090.00317.64
8.1.220.0040.00517.79
8.1.210.0110.00018.77
8.1.200.0060.00317.22
8.1.190.0060.00316.98
8.1.180.0060.00318.10
8.1.170.0000.00718.70
8.1.160.0040.00421.95
8.1.150.0020.00518.93
8.1.140.0040.00419.54
8.1.130.0030.00317.67
8.1.120.0040.00417.43
8.1.110.0040.00417.40
8.1.100.0040.00417.41
8.1.90.0040.00417.38
8.1.80.0070.00017.41
8.1.70.0020.00517.30
8.1.60.0040.00417.42
8.1.50.0040.00417.38
8.1.40.0050.00517.38
8.1.30.0000.00817.53
8.1.20.0040.00417.41
8.1.10.0040.00417.54
8.1.00.0040.00417.33
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.44
8.0.270.0040.00417.16
8.0.260.0030.00317.18
8.0.250.0030.00316.93
8.0.240.0040.00416.95
8.0.230.0070.00016.92
8.0.220.0000.00716.86
8.0.210.0000.00816.80
8.0.200.0050.00216.96
8.0.190.0030.00516.89
8.0.180.0070.00016.80
8.0.170.0050.00216.81
8.0.160.0000.00816.96
8.0.150.0070.00016.75
8.0.140.0050.00316.72
8.0.130.0000.00513.36
8.0.120.0000.00716.74
8.0.110.0070.00016.79
8.0.100.0020.00516.91
8.0.90.0000.00716.75
8.0.80.0110.00616.86
8.0.70.0000.00716.80
8.0.60.0040.00416.77
8.0.50.0000.00716.78
8.0.30.0130.00617.05
8.0.20.0090.00917.40
8.0.10.0050.00216.86
8.0.00.0110.01016.65
7.4.330.0030.00316.74
7.4.320.0040.00416.55
7.4.300.0060.00016.30
7.4.290.0030.00516.52
7.4.280.0030.00616.38
7.4.270.0000.00816.30
7.4.260.0000.00716.45
7.4.250.0040.00416.43
7.4.240.0050.00316.32
7.4.230.0030.00316.64
7.4.220.0090.01316.48
7.4.210.0120.00316.48
7.4.200.0030.00316.52
7.4.160.0120.00316.60
7.4.150.0180.00017.40
7.4.140.0100.01217.86
7.4.130.0070.01016.50
7.4.120.0090.00916.39
7.4.110.0100.00716.55
7.4.100.0040.02116.55
7.4.90.0070.01116.34
7.4.80.0120.00819.39
7.4.70.0030.01316.51
7.4.60.0130.00316.68
7.4.50.0060.00916.59
7.4.40.0060.00916.22
7.4.30.0090.00916.23
7.4.00.0100.00415.00
7.3.330.0050.00013.11
7.3.320.0000.00513.11
7.3.310.0070.00016.17
7.3.300.0000.00616.11
7.3.290.0100.00616.18
7.3.280.0100.00616.17
7.3.270.0120.00617.40
7.3.260.0090.00916.30
7.3.250.0070.01016.31
7.3.240.0080.01016.24
7.3.230.0030.01616.43
7.3.210.0090.00916.39
7.3.200.0060.01016.39
7.3.190.0090.00916.29
7.3.180.0060.01016.20
7.3.170.0100.00716.27
7.3.160.0040.01716.33
7.2.330.0090.01516.74
7.2.320.0060.01216.54
7.2.310.0000.01816.59
7.2.300.0160.00416.60
7.2.290.0030.01516.60
7.2.60.0030.00716.87
7.2.00.0060.00919.43
7.1.200.0110.00315.92
7.1.100.0070.01018.43
7.1.70.0030.01017.01
7.1.60.0100.01619.36
7.1.50.0030.01817.22
7.1.00.0000.08022.52
7.0.200.0000.00816.90
7.0.60.0170.03719.77
7.0.50.0100.06317.90
7.0.40.0270.04020.22
7.0.30.0370.07320.11
7.0.20.0400.07320.18
7.0.10.0100.07020.19
7.0.00.0100.08720.17
5.6.280.0070.06721.06
5.6.210.0070.07020.74
5.6.200.0030.05318.12
5.6.190.0100.08720.45
5.6.180.0330.03720.37
5.6.170.0230.08020.45
5.6.160.0100.05320.47
5.6.150.0030.04718.23
5.6.140.0070.07718.12
5.6.130.0070.04718.10
5.6.120.0030.06021.00
5.6.110.0130.08720.86
5.6.100.0170.07721.10
5.6.90.0130.07020.96
5.6.80.0030.08720.47
5.5.350.0070.08020.46
5.5.340.0100.04018.02
5.5.330.0100.08020.21
5.5.320.0000.04320.30
5.5.310.0270.05020.28
5.5.300.0000.08717.88
5.5.290.0270.03717.93
5.5.280.0070.04720.76
5.5.270.0100.07720.86
5.5.260.0030.04320.88
5.5.250.0030.04320.67
5.5.240.0070.08020.14

preferences:
79.94 ms | 401 KiB | 5 Q