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; } } if (count($printfCodes) == count($assert['Message Parameter'])) { $new_str = preg_replace($pattern, $replacement, $input_str); echo "swapped printfCodes: " . $new_str . "\n"; // Try and resolve the pfrintf statement using message parameters $resolvedAssert = vsprintf($new_str, $messageParameters); if (!empty($resolvedAssert) && $resolvedAssert != $new_str) { $final_str = $resolvedAssert; echo "finalStr " . $final_str . "\n"; } } } 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.0070.00716.63
8.3.50.0100.00821.29
8.3.40.0070.00718.76
8.3.30.0090.00918.93
8.3.20.0070.00020.16
8.3.10.0000.00723.46
8.3.00.0100.00020.77
8.2.180.0130.00316.75
8.2.170.0120.00322.96
8.2.160.0080.00622.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00517.98
8.2.110.0070.00321.16
8.2.100.0000.01217.75
8.2.90.0040.00419.40
8.2.80.0040.00417.97
8.2.70.0070.00317.75
8.2.60.0030.00518.04
8.2.50.0030.00518.07
8.2.40.0030.00621.17
8.2.30.0090.00019.99
8.2.20.0050.00318.05
8.2.10.0020.00518.09
8.2.00.0050.00318.20
8.1.280.0070.01425.92
8.1.270.0030.00620.27
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00020.84
8.1.230.0040.00717.60
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0000.00818.52
8.1.160.0050.00322.06
8.1.150.0070.00018.91
8.1.140.0040.00417.65
8.1.130.0000.00717.78
8.1.120.0080.00017.61
8.1.110.0000.00717.55
8.1.100.0030.00617.61
8.1.90.0040.00417.56
8.1.80.0000.00717.52
8.1.70.0030.00317.63
8.1.60.0030.00517.78
8.1.50.0080.00017.68
8.1.40.0030.00517.64
8.1.30.0000.00817.70
8.1.20.0000.00917.88
8.1.10.0030.00917.73
8.1.00.0000.00917.54
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.52
8.0.270.0050.00217.20
8.0.260.0060.00017.25
8.0.250.0060.00317.18
8.0.240.0000.00717.09
8.0.230.0000.00717.18
8.0.220.0030.00317.03
8.0.210.0040.00416.93
8.0.200.0040.00417.08
8.0.190.0050.00317.12
8.0.180.0000.00717.04
8.0.170.0030.00617.11
8.0.160.0000.00717.07
8.0.150.0050.00317.01
8.0.140.0000.00716.95
8.0.130.0060.00013.54
8.0.120.0040.00416.97
8.0.110.0000.00817.01
8.0.100.0000.00816.98
8.0.90.0040.00417.08
8.0.80.0030.01317.09
8.0.70.0070.00016.89
8.0.60.0040.00417.12
8.0.50.0000.00717.03
8.0.30.0040.01317.30
8.0.20.0140.00517.47
8.0.10.0000.00717.25
8.0.00.0060.01117.16
7.4.330.0050.00015.11
7.4.320.0030.00316.79
7.4.300.0030.00316.66
7.4.290.0030.00316.71
7.4.280.0040.00416.73
7.4.270.0040.00416.70
7.4.260.0030.00316.65
7.4.250.0040.00416.74
7.4.240.0040.00316.71
7.4.230.0000.00816.92
7.4.220.0120.01116.75
7.4.210.0090.00616.83
7.4.200.0020.00516.81
7.4.160.0040.01216.50
7.4.150.0110.00617.40
7.4.140.0070.01217.86
7.4.130.0130.00416.68
7.4.120.0040.01416.78
7.4.110.0070.01116.78
7.4.100.0070.01316.80
7.4.90.0090.00916.58
7.4.80.0120.00919.39
7.4.70.0060.01216.89
7.4.60.0100.00716.77
7.4.50.0040.00416.77
7.4.40.0070.01016.77
7.4.30.0150.00616.76
7.4.10.0000.01514.82
7.4.00.0080.00515.29
7.3.330.0060.00313.41
7.3.320.0040.00413.30
7.3.310.0000.00716.68
7.3.300.0030.00316.45
7.3.290.0080.00816.54
7.3.280.0110.00816.54
7.3.270.0140.00417.40
7.3.260.0060.01216.70
7.3.250.0120.00716.63
7.3.240.0070.02016.68
7.3.230.0080.01216.41
7.3.210.0140.00316.63
7.3.200.0080.01216.54
7.3.190.0080.01116.65
7.3.180.0070.01016.55
7.3.170.0120.00916.82
7.3.160.0120.00916.65
7.3.130.0040.01515.14
7.3.120.0030.01414.94
7.3.110.0040.01414.98
7.3.100.0090.00615.16
7.3.90.0060.01314.88
7.3.80.0070.00415.19
7.3.70.0030.01114.92
7.3.60.0030.00714.79
7.3.50.0030.01314.91
7.3.40.0100.00314.96
7.3.30.0060.00615.01
7.3.20.0100.00316.77
7.3.10.0040.01116.88
7.3.00.0060.00316.82
7.2.330.0110.00716.79
7.2.320.0070.01016.81
7.2.310.0130.01016.91
7.2.300.0040.01316.81
7.2.290.0030.01416.99
7.2.260.0120.00615.28
7.2.250.0130.00715.32
7.2.240.0060.00915.14
7.2.230.0060.00915.20
7.2.220.0030.01615.50
7.2.210.0040.01114.99
7.2.200.0000.01215.30
7.2.190.0070.01015.21
7.2.180.0100.00315.30
7.2.170.0030.01215.35
7.2.160.0060.00915.39
7.2.150.0080.00817.10
7.2.140.0070.00716.97
7.2.130.0070.00716.99
7.2.120.0140.00017.18
7.2.110.0100.00317.15
7.2.100.0110.00717.11
7.2.90.0060.00916.86
7.2.80.0120.00316.75
7.2.70.0130.00317.13
7.2.60.0090.00416.91
7.2.50.0090.00017.28
7.2.40.0030.01017.25
7.2.30.0030.00617.23
7.2.20.0100.00317.31
7.2.10.0030.01017.04
7.2.00.0060.00918.37
7.1.330.0120.00315.99
7.1.320.0060.00916.22
7.1.310.0030.01016.08
7.1.300.0040.00715.78
7.1.290.0070.00715.84
7.1.280.0150.00016.05
7.1.270.0070.00716.16
7.1.260.0060.00915.96
7.1.250.0040.01116.16
7.1.240.0060.00615.82
7.1.230.0100.00716.17
7.1.220.0070.00716.02
7.1.210.0030.00915.96
7.1.200.0020.01215.81
7.1.190.0060.00615.90
7.1.180.0040.01115.92
7.1.170.0040.00816.20
7.1.160.0040.00415.98
7.1.150.0040.00816.10
7.1.140.0040.01115.88
7.1.130.0030.00915.63
7.1.120.0080.00816.01
7.1.110.0040.00416.04
7.1.100.0030.01117.23
7.1.90.0070.00416.12
7.1.80.0000.01416.13
7.1.70.0050.00516.59
7.1.60.0050.01117.58
7.1.50.0090.01116.58
7.1.40.0000.01315.83
7.1.30.0030.01016.16
7.1.20.0000.01316.03
7.1.10.0030.01316.06
7.1.00.0050.04019.15
7.0.330.0070.00715.60
7.0.320.0070.00415.54
7.0.310.0040.00815.67
7.0.300.0080.00615.66
7.0.290.0060.00615.31
7.0.280.0040.00715.43
7.0.270.0110.00315.65
7.0.260.0000.01415.69
7.0.250.0040.00915.75
7.0.240.0070.00315.77
7.0.230.0040.00815.55
7.0.220.0090.00015.67
7.0.210.0030.01015.45
7.0.200.0120.00516.23
7.0.190.0130.00015.61
7.0.180.0060.00615.67
7.0.170.0060.00615.55
7.0.160.0030.00915.45
7.0.150.0070.01015.39
7.0.140.0030.01215.65
7.0.130.0060.00615.46
7.0.120.0070.00715.64
7.0.110.0000.01115.23
7.0.100.0030.00815.55
7.0.90.0030.00615.80
7.0.80.0060.00715.76
7.0.70.0100.00715.70
7.0.60.0050.04817.70
7.0.50.0070.03416.86
7.0.40.0080.04516.80
7.0.30.0200.04317.06
7.0.20.0050.03216.91
7.0.10.0030.02516.91
7.0.00.0080.04516.84
5.6.400.0040.01114.65
5.6.390.0030.01414.78
5.6.380.0140.00014.84
5.6.370.0090.00614.38
5.6.360.0040.01114.70
5.6.350.0040.00414.27
5.6.340.0040.01114.44
5.6.330.0030.01014.60
5.6.320.0000.01514.11
5.6.310.0030.00914.53
5.6.300.0030.01014.04
5.6.290.0080.00414.50
5.6.280.0080.03717.70
5.6.270.0050.00314.73
5.6.260.0000.01414.68
5.6.250.0070.00714.65
5.6.240.0080.00314.58
5.6.230.0060.00314.66
5.6.220.0090.00614.53
5.6.210.0090.03317.58
5.6.200.0070.02216.33
5.6.190.0080.04217.46
5.6.180.0280.04417.55
5.6.170.0190.03817.62
5.6.160.0140.03817.52
5.6.150.0050.04516.45
5.6.140.0050.02216.35
5.6.130.0040.04216.31
5.6.120.0040.03717.68
5.6.110.0020.02717.81
5.6.100.0070.04317.80
5.6.90.0080.03117.67
5.6.80.0030.04317.62
5.6.70.0130.00014.38
5.6.60.0000.01014.33
5.6.50.0030.00614.23
5.6.40.0040.00714.32
5.6.30.0110.00414.48
5.6.20.0030.00614.27
5.6.10.0110.00314.27
5.6.00.0140.00414.53
5.5.380.0080.00414.77
5.5.370.0050.00314.07
5.5.360.0080.00614.19
5.5.350.0140.03917.59
5.5.340.0070.04316.18
5.5.330.0070.02517.39
5.5.320.0150.02617.28
5.5.310.0200.03517.40
5.5.300.0050.04116.16
5.5.290.0050.02416.27
5.5.280.0070.02417.78
5.5.270.0100.02717.49
5.5.260.0070.02517.78
5.5.250.0060.02417.50
5.5.240.0080.02817.34
5.5.230.0070.00714.23
5.5.220.0030.01014.21
5.5.210.0040.00714.16
5.5.200.0000.01214.04
5.5.190.0070.01114.46
5.5.180.0000.00914.43
5.5.170.0090.00914.46
5.5.160.0090.00614.63
5.5.150.0000.01214.25
5.5.140.0070.00314.39
5.5.130.0120.00614.44
5.5.120.0000.01414.73
5.5.110.0040.00814.34
5.5.100.0030.00614.39
5.5.90.0040.00814.61
5.5.80.0120.00314.44
5.5.70.0070.00714.46
5.5.60.0070.00714.37
5.5.50.0060.01014.43
5.5.40.0040.00814.13
5.5.30.0110.00714.56
5.5.20.0030.01114.58
5.5.10.0090.00614.46
5.5.00.0080.00814.18
5.4.450.0370.03715.41
5.4.440.0080.03215.38
5.4.430.0080.03215.44
5.4.420.0080.03515.43
5.4.410.0490.03515.29
5.4.400.0320.03515.24
5.4.390.0400.04015.16
5.4.380.0320.04215.12
5.4.370.0280.03715.03
5.4.360.0400.04015.10
5.4.350.0250.03515.10
5.4.340.0380.02715.27
5.4.330.0090.00310.96
5.4.320.0320.03515.09
5.4.310.0340.02715.17
5.4.300.0360.02615.19
5.4.290.0030.03614.98
5.4.280.0130.03515.16
5.4.270.0050.03215.19
5.4.260.0090.02615.08
5.4.250.0160.02515.32
5.4.240.0140.02815.06
5.4.230.0130.03215.19
5.4.220.0060.03915.14
5.4.210.0100.03215.01
5.4.200.0080.03214.07
5.4.190.0100.03915.11
5.4.180.0100.03015.11
5.4.170.0020.03715.04
5.4.160.0110.03115.14
5.4.150.0150.02915.15
5.4.140.0110.02813.93
5.4.130.0090.02913.94
5.4.120.0110.02713.81
5.4.110.0150.02314.01
5.4.100.0110.03813.88
5.4.90.0080.03013.94
5.4.80.0130.03313.80
5.4.70.0150.02313.64
5.4.60.0070.02813.76
5.4.50.0110.02413.93
5.4.40.0110.03013.83
5.4.30.0130.02813.87
5.4.20.0080.02813.80
5.4.10.0120.02513.92
5.4.00.0110.02313.53
5.3.290.0100.06014.46
5.3.280.0100.05314.55
5.3.270.0230.04314.45
5.3.260.0200.04714.56
5.3.250.0130.05314.56
5.3.240.0070.06014.49
5.3.230.0200.06014.69
5.3.220.0130.06314.41
5.3.210.0130.05014.47
5.3.200.0130.05014.41
5.3.190.0070.05714.55
5.3.180.0170.05014.55
5.3.170.0170.05014.40
5.3.160.0170.04714.58
5.3.150.0170.05014.59
5.3.140.0100.07014.44
5.3.130.0100.06714.41
5.3.120.0170.05314.48
5.3.110.0030.06714.42
5.3.100.0100.05713.88
5.3.90.0170.06714.04
5.3.80.0200.05013.82
5.3.70.0170.05013.90
5.3.60.0030.06014.02
5.3.50.0230.05713.95
5.3.40.0170.04713.89
5.3.30.0100.05313.75
5.3.20.0230.06013.53
5.3.10.0300.04313.68
5.3.00.0170.04713.43
5.2.170.0100.05310.99
5.2.160.0270.04311.00
5.2.150.0070.05010.94
5.2.140.0170.03710.99
5.2.130.0100.04010.90
5.2.120.0100.04010.96
5.2.110.0170.03310.95
5.2.100.0130.05310.94
5.2.90.0130.04011.04
5.2.80.0130.04710.98
5.2.70.0230.03710.89
5.2.60.0270.04710.98
5.2.50.0130.05710.95
5.2.40.0200.05010.83
5.2.30.0170.03710.95
5.2.20.0130.04310.80
5.2.10.0070.04310.91
5.2.00.0070.04310.63
5.1.60.0070.0479.88
5.1.50.0130.0339.85
5.1.40.0130.0339.89
5.1.30.0170.04010.25
5.1.20.0100.03710.21
5.1.10.0070.04310.16
5.1.00.0170.0409.96
5.0.50.0130.0308.48
5.0.40.0100.0278.33
5.0.30.0030.0478.10
5.0.20.0100.0238.08
5.0.10.0030.0308.23
5.0.00.0100.0378.05
4.4.90.0030.0235.86
4.4.80.0030.0205.80
4.4.70.0030.0235.80
4.4.60.0000.0275.82
4.4.50.0030.0235.83
4.4.40.0070.0335.83
4.4.30.0030.0235.75
4.4.20.0100.0175.88
4.4.10.0070.0205.83
4.4.00.0000.0405.78
4.3.110.0000.0275.78
4.3.100.0100.0205.72
4.3.90.0100.0175.70
4.3.80.0070.0335.71
4.3.70.0030.0235.83
4.3.60.0070.0275.69
4.3.50.0070.0235.78
4.3.40.0030.0375.66
4.3.30.0000.0274.63
4.3.20.0100.0174.63
4.3.10.0030.0234.63
4.3.00.0170.0207.09

preferences:
62 ms | 401 KiB | 5 Q