3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "[spoiler]Test\ntesting\n\nss\n[/spoiler]."; $text = preg_replace_callback("(\[spoiler\](.*?)\[\/spoiler\])is", function($match){ $lines = explode("\n", str_rot13($match[1])); foreach ($lines as &$line) { if ($line != "") $line = "[spoiler]".$line."[/spoiler]"; } unset($line); $output = implode($lines); return $output; }, $text ); echo $text; ?>

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.0120.00316.88
8.3.50.0120.00722.05
8.3.40.0150.00018.82
8.3.30.0060.01218.96
8.3.20.0000.00820.16
8.3.10.0050.00323.39
8.3.00.0050.00320.97
8.2.180.0120.00318.66
8.2.170.0150.00322.96
8.2.160.0100.00320.42
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.57
8.2.110.0120.00621.07
8.2.100.0120.00018.03
8.2.90.0040.00418.09
8.2.80.0060.00317.97
8.2.70.0000.00817.75
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0050.00320.19
8.2.30.0040.00418.44
8.2.20.0060.00318.04
8.2.10.0040.00418.17
8.2.00.0060.00319.49
8.1.280.0090.00625.92
8.1.270.0030.00623.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.59
8.1.230.0070.00420.95
8.1.220.0000.00817.76
8.1.210.0000.00918.88
8.1.200.0090.00017.38
8.1.190.0080.00017.38
8.1.180.0050.00318.10
8.1.170.0000.00718.77
8.1.160.0000.00721.93
8.1.150.0080.00018.80
8.1.140.0040.00417.54
8.1.130.0030.00317.87
8.1.120.0060.00317.63
8.1.110.0000.00817.66
8.1.100.0040.00417.64
8.1.90.0070.00017.60
8.1.80.0000.00817.64
8.1.70.0000.00717.52
8.1.60.0060.00317.70
8.1.50.0080.00017.58
8.1.40.0000.00817.72
8.1.30.0030.00717.66
8.1.20.0040.00417.80
8.1.10.0070.00017.65
8.1.00.0040.00417.57
8.0.300.0000.00920.06
8.0.290.0040.00416.75
8.0.280.0070.00018.54
8.0.270.0040.00417.33
8.0.260.0000.00817.29
8.0.250.0030.00317.18
8.0.240.0000.00717.11
8.0.230.0030.00317.14
8.0.220.0030.00317.07
8.0.210.0030.00316.95
8.0.200.0000.00717.15
8.0.190.0030.00517.02
8.0.180.0050.00517.13
8.0.170.0050.00316.96
8.0.160.0040.00417.07
8.0.150.0050.00317.03
8.0.140.0070.00017.01
8.0.130.0000.00613.45
8.0.120.0040.00417.03
8.0.110.0000.00716.95
8.0.100.0040.00416.92
8.0.90.0040.00417.03
8.0.80.0080.00816.99
8.0.70.0040.00417.11
8.0.60.0070.00016.99
8.0.50.0000.00817.04
8.0.30.0170.00917.18
8.0.20.0070.01417.40
8.0.10.0040.00417.09
8.0.00.0090.01016.92
7.4.330.0050.00015.13
7.4.320.0000.00616.73
7.4.300.0030.00316.88
7.4.290.0000.00716.71
7.4.280.0040.00416.61
7.4.270.0030.00316.71
7.4.260.0030.00316.70
7.4.250.0040.00416.79
7.4.240.0020.00616.82
7.4.230.0070.00016.91
7.4.220.0210.00816.86
7.4.210.0130.00716.77
7.4.200.0030.00316.93
7.4.160.0060.01116.77
7.4.150.0100.01417.40
7.4.140.0100.00917.86
7.4.130.0110.00616.77
7.4.120.0080.01016.74
7.4.110.0060.01016.64
7.4.100.0030.01416.95
7.4.90.0150.00816.70
7.4.80.0100.01019.39
7.4.70.0100.00716.84
7.4.60.0060.01016.53
7.4.50.0000.00516.61
7.4.40.0080.00816.72
7.4.30.0120.00416.72
7.4.00.0030.01415.16
7.3.330.0030.00313.30
7.3.320.0030.00313.39
7.3.310.0030.00316.54
7.3.300.0000.00716.44
7.3.290.0070.00716.44
7.3.280.0060.01216.45
7.3.270.0100.00717.40
7.3.260.0220.01216.52
7.3.250.0100.00716.70
7.3.240.0070.01016.65
7.3.230.0070.01016.61
7.3.210.0100.01316.72
7.3.200.0130.00316.55
7.3.190.0060.01616.52
7.3.180.0060.01016.70
7.3.170.0150.00616.55
7.3.160.0090.00616.70
7.3.120.0070.01115.23
7.3.110.0090.00914.99
7.3.100.0120.00315.05
7.3.90.0070.00414.66
7.3.80.0090.00614.79
7.3.70.0090.00315.11
7.3.60.0040.00414.93
7.3.50.0080.00415.12
7.3.40.0030.01014.75
7.3.30.0070.00314.89
7.3.20.0070.00316.71
7.3.10.0100.00616.61
7.3.00.0070.01116.86
7.2.330.0120.00816.93
7.2.320.0080.00816.95
7.2.310.0070.01016.75
7.2.300.0140.00416.84
7.2.290.0040.01217.03
7.2.250.0090.00915.12
7.2.240.0100.01015.48
7.2.230.0060.00815.05
7.2.220.0040.00715.05
7.2.210.0030.00914.98
7.2.200.0060.00615.16
7.2.190.0000.01415.54
7.2.180.0000.01215.34
7.2.170.0110.00315.05
7.2.00.0030.01219.73
7.1.330.0070.00716.21
7.1.320.0110.00416.01
7.1.310.0120.00015.91
7.1.300.0040.01115.93
7.1.290.0070.00715.72
7.1.280.0060.00616.05
7.1.270.0060.00615.68
7.1.260.0060.00316.21
7.1.100.0110.00018.41
7.1.70.0000.00917.35
7.1.60.0110.01519.70
7.1.50.0000.02016.98
7.1.00.0030.07722.47
7.0.200.0000.00816.66
7.0.140.0130.06322.07
7.0.60.0030.04720.07
7.0.50.0000.08717.94
7.0.40.0070.06720.06
7.0.30.0230.05320.32
7.0.20.0230.04320.25
7.0.10.0300.07320.25
7.0.00.0100.07320.14
5.6.280.0070.07021.07
5.6.210.0100.07720.75
5.6.200.0000.04318.29
5.6.190.0100.08320.68
5.6.180.0030.04320.48
5.6.170.0270.04720.48
5.6.160.0100.08320.52
5.6.150.0100.04718.22
5.6.140.0000.06018.13
5.6.130.0070.06018.15
5.6.120.0070.03720.90
5.6.110.0070.06721.05
5.6.100.0100.03321.08
5.6.90.0030.08320.98
5.6.80.0000.04320.41
5.6.70.0330.07720.38
5.5.350.0000.08320.53
5.5.340.0030.07717.97
5.5.330.0070.08720.13
5.5.320.0070.03720.28
5.5.310.0300.02720.36
5.5.300.0130.07017.97
5.5.290.0100.07717.99
5.5.280.0100.05320.80
5.5.270.0170.06320.76
5.5.260.0070.06720.84
5.5.250.0030.08320.59
5.5.240.0100.03720.29
5.4.450.4130.04719.55
5.4.440.0030.04019.31
5.4.430.1230.03719.47
5.4.420.3630.03319.49
5.4.410.3970.03319.14
5.4.400.3900.03319.11
5.4.390.4200.04018.93
5.4.380.4300.04719.21
5.4.370.3730.03319.04
5.4.360.3800.03719.12
5.4.350.3470.03019.04
5.4.340.3530.04319.07
5.4.320.3670.03019.21
5.4.310.2870.03319.18
5.4.300.3070.03719.17
5.4.290.3400.03719.12
5.4.280.3500.03719.21
5.4.270.4270.02719.14
5.4.260.3630.04019.12
5.4.250.4630.04019.13
5.4.240.4600.03318.93
5.4.230.4600.03719.17
5.4.220.4470.05018.98
5.4.210.4470.03319.20
5.4.200.4400.03018.93
5.4.190.4700.04319.11
5.4.180.4000.03319.23
5.4.170.3600.04319.20
5.4.160.4070.03719.10
5.4.150.3730.03719.13
5.4.140.4230.03716.56
5.4.130.4100.04316.44
5.4.120.4230.03316.43
5.4.110.3830.03716.44
5.4.100.3700.03716.37
5.4.90.3700.04016.35
5.4.80.1600.03316.29
5.4.70.0030.07316.46
5.4.60.0770.04016.54
5.4.50.4230.03716.21
5.4.40.4530.04016.32
5.4.30.4330.03016.34
5.4.20.4170.03316.45
5.4.10.3700.03716.48
5.4.00.3970.03715.94
5.3.290.3600.03714.67
5.3.280.4500.04314.66
5.3.270.4070.04314.49
5.3.260.4330.03714.61
5.3.250.3530.04014.63
5.3.240.4000.04014.64
5.3.230.4630.03014.74
5.3.220.4630.03014.58
5.3.210.4100.03714.62
5.3.200.3800.03714.61
5.3.190.3900.04314.56
5.3.180.3530.03714.45
5.3.170.0170.04714.55
5.3.160.4300.03714.56
5.3.150.4570.03314.71
5.3.140.5200.04314.44
5.3.130.4400.04014.57
5.3.120.4870.04714.55
5.3.110.4630.04314.60
5.3.100.4100.04314.18
5.3.90.4370.03714.05
5.3.80.4030.03714.01
5.3.70.4470.03713.94
5.3.60.4530.03313.95
5.3.50.2530.03314.10
5.3.40.0070.07013.95
5.3.30.4600.03013.90
5.3.20.4430.04013.68
5.3.10.3730.03313.66
5.3.00.3930.02713.69
5.2.170.0030.06311.03
5.2.160.0030.06011.03
5.2.150.1700.05011.00
5.2.140.3800.03011.23
5.2.130.3900.02711.03
5.2.120.3500.02311.04
5.2.110.3000.03311.00
5.2.100.3500.03011.07
5.2.90.3400.03011.03
5.2.80.3730.03010.99
5.2.70.3770.02711.07
5.2.60.3930.02011.02
5.2.50.3500.03010.98
5.2.40.3200.03310.98
5.2.30.3130.02710.91
5.2.20.2970.02710.86
5.2.10.2870.02710.72
5.2.00.2530.03010.72
5.1.60.2770.02310.05
5.1.50.2430.0179.98
5.1.40.3000.01710.02
5.1.30.2770.03010.19
5.1.20.2000.03010.35
5.1.10.3230.02310.11
5.1.00.2730.02710.05
5.0.50.1530.0278.39
5.0.40.1430.0178.31
5.0.30.1430.0308.20
5.0.20.1600.0238.26
5.0.10.1530.0178.31
5.0.00.1770.0338.30
4.4.90.1270.0176.46
4.4.80.1770.0176.46
4.4.70.1730.0176.46
4.4.60.1770.0176.46
4.4.50.1870.0136.46
4.4.40.1500.0306.46
4.4.30.1370.0176.46
4.4.20.1530.0136.46
4.4.10.1470.0206.46
4.4.00.1470.0236.46
4.3.110.1370.0176.46
4.3.100.1730.0206.46
4.3.90.1530.0176.46
4.3.80.1070.0206.46
4.3.70.1500.0206.46
4.3.60.1700.0176.46
4.3.50.1570.0176.46
4.3.40.1730.0276.46
4.3.30.0830.0176.46
4.3.20.0770.0176.46
4.3.10.0700.0176.46
4.3.00.0730.0176.46

preferences:
43.56 ms | 401 KiB | 5 Q