3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $a = "abcdefffefa"; for($i = 0; $i < 15; $i++) $a = $a . $a; $b = "afe"; print(str_replace(array_unique(str_split($b)), "", $a));

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.0130.00618.18
8.3.50.0100.01421.93
8.3.40.0160.00819.29
8.3.30.0040.01620.01
8.3.20.0060.00621.00
8.3.10.0040.00820.36
8.3.00.0040.00719.26
8.2.180.0140.01417.63
8.2.170.0120.01622.96
8.2.160.0100.01021.39
8.2.150.0000.01124.18
8.2.140.0080.00324.66
8.2.130.0050.00526.16
8.2.120.0030.00721.16
8.2.110.0040.00822.20
8.2.100.0040.01118.72
8.2.90.0000.01119.92
8.2.80.0000.01118.50
8.2.70.0000.01218.50
8.2.60.0040.00819.66
8.2.50.0040.00818.13
8.2.40.0040.00819.09
8.2.30.0060.00620.41
8.2.20.0030.00818.59
8.2.10.0030.00919.02
8.2.00.0000.01018.80
8.1.280.0070.01425.92
8.1.270.0040.01123.84
8.1.260.0030.00926.35
8.1.250.0090.00328.09
8.1.240.0080.00423.96
8.1.230.0100.01019.86
8.1.220.0030.00918.54
8.1.210.0060.00618.77
8.1.200.0090.00418.10
8.1.190.0040.00818.22
8.1.180.0030.00919.01
8.1.170.0000.01419.20
8.1.160.0030.00922.91
8.1.150.0040.00819.70
8.1.140.0000.01218.34
8.1.130.0060.00618.75
8.1.120.0040.00718.29
8.1.110.0060.00618.36
8.1.100.0000.01118.23
8.1.90.0030.00918.41
8.1.80.0060.00618.30
8.1.70.0040.00818.34
8.1.60.0000.01318.45
8.1.50.0070.00718.39
8.1.40.0030.00918.33
8.1.30.0030.00918.50
8.1.20.0030.00918.40
8.1.10.0040.00818.54
8.1.00.0030.00918.39
8.0.300.0000.01318.77
8.0.290.0040.00817.38
8.0.280.0000.01219.30
8.0.270.0040.00818.00
8.0.260.0000.01118.16
8.0.250.0040.00817.70
8.0.240.0040.00717.69
8.0.230.0030.00817.72
8.0.220.0030.00817.73
8.0.210.0060.00617.74
8.0.200.0060.00617.82
8.0.190.0080.00417.84
8.0.180.0040.00817.76
8.0.170.0030.00917.68
8.0.160.0000.01217.74
8.0.150.0030.00817.65
8.0.140.0030.00917.69
8.0.130.0050.00514.20
8.0.120.0060.00617.65
8.0.110.0040.00817.58
8.0.100.0000.01217.52
8.0.90.0000.01117.64
8.0.80.0120.01817.67
8.0.70.0030.00917.71
8.0.60.0030.01017.53
8.0.50.0030.00917.61
8.0.30.0140.01417.73
8.0.20.0140.01117.83
8.0.10.0040.00817.76
8.0.00.0120.01517.61
7.4.330.0060.00315.00
7.4.320.0080.00417.13
7.4.300.0060.00617.21
7.4.290.0030.00817.23
7.4.280.0070.00717.20
7.4.270.0040.00717.22
7.4.260.0000.01117.23
7.4.250.0030.01017.14
7.4.240.0050.00717.15
7.4.230.0030.00816.97
7.4.220.0100.01617.24
7.4.210.0060.01517.40
7.4.200.0040.00817.26
7.4.160.0110.01117.15
7.4.150.0120.01217.40
7.4.140.0110.01917.86
7.4.130.0140.01317.20
7.4.120.0090.01517.25
7.4.110.0100.01417.42
7.4.100.0090.01917.34
7.4.90.0180.01217.20
7.4.80.0080.01619.39
7.4.70.0180.00717.34
7.4.60.0060.01917.27
7.4.50.0030.01217.22
7.4.40.0150.01517.29
7.4.30.0070.01517.38
7.4.00.0070.02015.91
7.3.330.0040.00713.93
7.3.320.0080.00313.94
7.3.310.0060.00617.05
7.3.300.0070.00417.02
7.3.290.0030.01917.04
7.3.280.0120.01317.14
7.3.270.0130.01317.40
7.3.260.0130.01316.99
7.3.250.0090.01817.14
7.3.240.0040.02017.19
7.3.230.0070.01716.98
7.3.210.0160.01317.43
7.3.200.0060.01819.39
7.3.190.0150.01617.10
7.3.180.0140.00716.95
7.3.170.0120.01217.27
7.3.160.0030.02017.14
7.3.10.0070.01716.29
7.3.00.0030.02116.03
7.2.330.0090.01517.49
7.2.320.0090.01617.51
7.2.310.0090.02317.61
7.2.300.0100.01317.38
7.2.290.0100.01317.30
7.2.130.0090.02416.55
7.2.120.0100.01716.33
7.2.110.0190.02116.57
7.2.100.0100.02616.36
7.2.90.0150.02516.23
7.2.80.0130.01916.31
7.2.70.0160.01916.84
7.2.60.0140.01816.76
7.2.50.0090.02616.33
7.2.40.0140.02416.89
7.2.30.0170.02016.34
7.2.20.0060.02416.33
7.2.10.0240.01516.48
7.2.00.0080.01618.15
7.1.250.0130.01915.23
7.1.100.0000.01618.16
7.1.70.0000.01016.84
7.1.60.0070.02419.61
7.1.50.0130.01316.85
7.0.200.0090.00916.86

preferences:
35.53 ms | 401 KiB | 5 Q