3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/(%\S*)/"; $replacement = "%s"; $input_str = "Controller '%d is potentially leaking. All controllers are supposed to have an empty reference count. If this is a non synch sound controller, then script will need to make sure to clean it up."; $messageParameters = ["CVSNyz368g="]; if (preg_match_all($pattern, $input_str, $matches_out)) { $printfCodes = $matches_out[1]; foreach ($printfCodes as $index => $printfCode) { if ($printfCode != "%s" && $printfCode != "%c") { $decodedIntAsString = $messageParameters[$index] . " translated!"; $messageParameters[$index] = $decodedIntAsString; } } } print_r( $messageParameters);

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.00416.63
8.3.50.0090.00921.29
8.3.40.0070.00718.91
8.3.30.0120.00318.79
8.3.20.0080.00020.13
8.3.10.0080.00023.48
8.3.00.0030.00720.61
8.2.180.0120.00316.88
8.2.170.0140.00722.96
8.2.160.0070.00722.15
8.2.150.0050.00324.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0130.00017.88
8.2.110.0030.00620.93
8.2.100.0060.00617.75
8.2.90.0050.00319.21
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0090.00021.13
8.2.30.0040.00420.00
8.2.20.0050.00317.89
8.2.10.0040.00418.14
8.2.00.0020.00518.09
8.1.280.0100.01025.92
8.1.270.0040.00420.26
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00420.96
8.1.230.0090.00317.48
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0060.00317.38
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0050.00318.68
8.1.160.0000.00722.04
8.1.150.0000.00718.95
8.1.140.0000.00817.61
8.1.130.0000.00717.59
8.1.120.0000.00817.59
8.1.110.0040.00417.61
8.1.100.0040.00417.68
8.1.90.0000.00817.55
8.1.80.0080.00017.61
8.1.70.0000.00717.61
8.1.60.0000.00917.74
8.1.50.0050.00517.59
8.1.40.0030.00517.72
8.1.30.0040.00417.83
8.1.20.0000.00817.71
8.1.10.0000.01117.81
8.1.00.0080.00017.72
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00718.48
8.0.270.0070.00017.19
8.0.260.0030.00317.34
8.0.250.0070.00317.11
8.0.240.0070.00017.08
8.0.230.0040.00417.03
8.0.220.0070.00016.97
8.0.210.0020.00516.96
8.0.200.0000.00917.11
8.0.190.0040.00417.13
8.0.180.0040.00416.96
8.0.170.0060.00317.02
8.0.160.0040.00316.91
8.0.150.0070.00017.05
8.0.140.0000.00717.05
8.0.130.0000.00713.46
8.0.120.0050.00417.00
8.0.110.0050.00316.94
8.0.100.0050.00216.85
8.0.90.0000.00717.16
8.0.80.0030.01317.01
8.0.70.0000.00816.91
8.0.60.0000.01017.16
8.0.50.0000.00816.86
8.0.30.0130.00617.21
8.0.20.0120.00817.40
8.0.10.0080.00017.17
8.0.00.0120.00516.85
7.4.330.0000.00615.09
7.4.320.0000.00616.80
7.4.300.0000.00616.73
7.4.290.0030.00316.81
7.4.280.0080.00016.86
7.4.270.0040.00416.83
7.4.260.0070.00016.66
7.4.250.0040.00416.71
7.4.240.0020.00516.76
7.4.230.0000.00716.92
7.4.220.0090.01216.91
7.4.210.0120.00316.59
7.4.200.0030.00316.61
7.4.160.0150.00016.76
7.4.150.0070.01417.40
7.4.140.0070.01317.86
7.4.130.0080.00916.64
7.4.120.0110.00716.84
7.4.110.0110.00616.62
7.4.100.0130.00916.65
7.4.90.0060.01116.79
7.4.80.0100.01319.39
7.4.70.0160.00016.59
7.4.60.0100.00716.67
7.4.50.0030.00616.87
7.4.40.0100.01016.62
7.4.30.0030.01916.73
7.4.00.0080.00915.09
7.3.330.0060.00213.34
7.3.320.0060.00013.36
7.3.310.0000.00716.33
7.3.300.0030.00316.37
7.3.290.0040.01216.49
7.3.280.0030.01316.50
7.3.270.0070.01017.40
7.3.260.0150.00416.43
7.3.250.0120.00516.61
7.3.240.0110.01116.67
7.3.230.0070.01016.53
7.3.210.0070.01716.68
7.3.200.0110.00516.46
7.3.190.0120.00616.37
7.3.180.0120.00316.75
7.3.170.0080.01116.68
7.3.160.0170.00916.50
7.3.120.0160.00015.04
7.3.110.0060.01315.16
7.3.100.0060.00915.34
7.3.90.0090.00315.07
7.3.80.0070.01014.97
7.3.70.0040.00915.07
7.3.60.0040.01114.69
7.3.50.0120.00614.92
7.3.40.0000.01814.73
7.3.30.0070.00714.96
7.3.20.0100.00316.99
7.3.10.0080.00416.72
7.3.00.0040.01217.05
7.2.330.0130.01016.61
7.2.320.0030.01316.71
7.2.310.0120.01216.76
7.2.300.0070.01016.84
7.2.290.0090.01516.64
7.2.250.0070.01015.14
7.2.240.0060.01315.23
7.2.230.0100.00715.48
7.2.220.0040.00715.40
7.2.210.0000.01715.40
7.2.200.0080.00815.42
7.2.190.0060.00915.00
7.2.180.0130.00315.25
7.2.170.0040.01115.07
7.2.00.0060.01219.84
7.1.330.0070.00715.80
7.1.320.0030.00915.78
7.1.310.0060.01316.09
7.1.300.0070.01015.70
7.1.290.0090.00616.18
7.1.280.0070.00716.11
7.1.270.0040.00716.14
7.1.260.0060.01016.11
7.1.100.0030.00817.98
7.1.70.0040.00417.19
7.1.60.0070.01119.18
7.1.50.0060.01617.13
7.1.00.0000.08022.35
7.0.200.0140.00516.60
7.0.60.0100.06720.07
7.0.50.0100.07717.88
7.0.40.0070.06020.16
7.0.30.0300.03720.19
7.0.20.0370.07320.29
7.0.10.0100.06720.08
7.0.00.0130.07720.10
5.6.280.0000.07721.04
5.6.210.0070.08320.52
5.6.200.0000.05018.15
5.6.190.0070.09020.69
5.6.180.0430.07320.63
5.6.170.0170.05020.54
5.6.160.0100.08020.43
5.6.150.0030.04718.20
5.6.140.0070.08318.15
5.6.130.0030.05318.18
5.6.120.0200.05720.98
5.6.110.0030.09021.13
5.6.100.0000.07020.97
5.6.90.0100.07320.97
5.6.80.0030.04320.34
5.5.350.0270.07720.40
5.5.340.0100.08018.01
5.5.330.0170.07020.59
5.5.320.0400.04020.24
5.5.310.0200.06720.26
5.5.300.0130.06017.95
5.5.290.0100.08017.96
5.5.280.0070.04320.76
5.5.270.0070.08320.73
5.5.260.0030.08320.87
5.5.250.0100.07020.49
5.5.240.0100.06720.19
5.4.450.0770.05719.52
5.4.440.0700.05319.59
5.4.430.0870.05719.63
5.4.420.0770.06319.60
5.4.410.0130.06719.34
5.4.400.0100.05719.29
5.4.390.0230.05019.15
5.4.380.0600.06019.14
5.4.370.0770.06319.14
5.4.360.0930.06319.36
5.4.350.1070.05718.86
5.4.340.0930.07319.01
5.4.320.0930.07319.14
5.4.310.1070.07719.26
5.4.300.1070.07019.14
5.4.290.1100.06719.05
5.4.280.0730.05318.84
5.4.270.0630.05019.26
5.4.260.0570.06019.25
5.4.250.0600.07019.24
5.4.240.0730.07319.28
5.4.230.0630.06019.21
5.4.220.0630.05719.14
5.4.210.0670.05319.08
5.4.200.0670.05016.89
5.4.190.0570.05719.27
5.4.180.0670.07019.02
5.4.170.0670.05319.02
5.4.160.0900.05718.98
5.4.150.0700.07318.91
5.4.140.0730.06316.28
5.4.130.0670.05316.55
5.4.120.0800.04016.44
5.4.110.0570.05716.40
5.4.100.0870.05016.31
5.4.90.0600.05016.38
5.4.80.0670.05316.29
5.4.70.0700.07016.30
5.4.60.0730.07016.52
5.4.50.0800.06016.39
5.4.40.0700.05316.29
5.4.30.0670.05716.34
5.4.20.0770.06316.37
5.4.10.0630.04716.52
5.4.00.0630.04315.80
5.3.290.0730.05014.53
5.3.280.0600.07314.55
5.3.270.0630.07314.59
5.3.260.0670.06314.70
5.3.250.0700.05314.51
5.3.240.0530.05314.61
5.3.230.0670.06714.47
5.3.220.0670.06714.52
5.3.210.0800.05014.55
5.3.200.0770.07314.40
5.3.190.0800.06714.66
5.3.180.0770.05314.41
5.3.170.0600.05314.52
5.3.160.0530.06314.52
5.3.150.0630.05314.41
5.3.140.0600.06314.51
5.3.130.0570.05014.39
5.3.120.0600.05714.53
5.3.110.0700.06314.42
5.3.100.0670.06313.90
5.3.90.0600.05313.90
5.3.80.0630.06013.82
5.3.70.0630.04714.11
5.3.60.0570.05013.84
5.3.50.0530.05313.74
5.3.40.0770.06313.83
5.3.30.0700.07013.71
5.3.20.0770.05313.54
5.3.10.0670.04313.54
5.3.00.0670.04313.52
5.2.170.0430.05011.16
5.2.160.0500.04711.03
5.2.150.0700.04011.00
5.2.140.0600.05311.08
5.2.130.0570.05011.15
5.2.120.0530.05310.90
5.2.110.0770.03711.16
5.2.100.0570.04711.04
5.2.90.0500.03710.93
5.2.80.0670.03710.94
5.2.70.0500.04010.95
5.2.60.0570.03310.98
5.2.50.0430.04310.81
5.2.40.0470.03710.82
5.2.30.0500.04010.81
5.2.20.0470.02710.91
5.2.10.0470.05010.78
5.2.00.0500.03310.87
5.1.60.0330.0379.89
5.1.50.0430.0279.86
5.1.40.0400.03010.00
5.1.30.0400.03010.49
5.1.20.0370.03310.37
5.1.10.0330.03310.08
5.1.00.0400.03310.09
5.0.50.0200.0308.70
5.0.40.0200.0278.25
5.0.30.0200.0438.09
5.0.20.0300.0178.22
5.0.10.0230.0308.22
5.0.00.0300.0378.01
4.4.90.0170.0276.89
4.4.80.0300.0306.89
4.4.70.0200.0236.89
4.4.60.0200.0236.89
4.4.50.0200.0276.89
4.4.40.0270.0436.89
4.4.30.0230.0306.89
4.4.20.0300.0276.89
4.4.10.0300.0276.89
4.4.00.0230.0476.89
4.3.110.0270.0276.89
4.3.100.0270.0276.89
4.3.90.0270.0276.89
4.3.80.0270.0406.89
4.3.70.0270.0276.89
4.3.60.0270.0306.89
4.3.50.0270.0236.89
4.3.40.0200.0476.89
4.3.30.0170.0236.89
4.3.20.0200.0336.89
4.3.10.0100.0236.89
4.3.00.0100.0237.09

preferences:
56.89 ms | 401 KiB | 5 Q