3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = 'a, b, c, d'; $patterns = "/ . /"; echo preg_replace($patterns, $where, '$1'); ?>

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.40.0040.01118.98
8.3.30.0090.00918.84
8.3.20.0000.00818.76
8.3.10.0090.00018.82
8.3.00.0000.00919.38
8.2.170.0110.00422.96
8.2.160.0060.00920.87
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.26
8.2.110.0090.00020.97
8.2.100.0110.00017.97
8.2.90.0060.00319.47
8.2.80.0040.00419.21
8.2.70.0080.00017.63
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0030.00518.05
8.2.30.0040.00418.08
8.2.20.0040.00417.71
8.2.10.0040.00417.77
8.2.00.0040.00417.67
8.1.270.0030.00624.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.51
8.1.230.0040.00820.98
8.1.220.0000.00817.74
8.1.210.0080.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.54
8.1.180.0000.00918.10
8.1.170.0030.00518.91
8.1.160.0040.00418.75
8.1.150.0000.00918.75
8.1.140.0070.00017.45
8.1.130.0000.00717.93
8.1.120.0000.00817.52
8.1.110.0000.00817.41
8.1.100.0060.00317.43
8.1.90.0000.00717.58
8.1.80.0000.00717.59
8.1.70.0000.00717.51
8.1.60.0050.00317.70
8.1.50.0000.00717.52
8.1.40.0040.00417.59
8.1.30.0040.00417.75
8.1.20.0040.00417.61
8.1.10.0040.00417.55
8.1.00.0000.00717.50
8.0.300.0030.00619.86
8.0.290.0060.00316.88
8.0.280.0070.00018.35
8.0.270.0070.00017.11
8.0.260.0000.00816.82
8.0.250.0040.00417.00
8.0.240.0000.00717.13
8.0.230.0070.00017.03
8.0.220.0000.00716.87
8.0.210.0030.00616.87
8.0.200.0030.00316.89
8.0.190.0070.00016.99
8.0.180.0000.00816.93
8.0.170.0000.00716.96
8.0.160.0000.00816.97
8.0.150.0080.00016.82
8.0.140.0080.00416.92
8.0.130.0050.00013.38
8.0.120.0020.00516.88
8.0.110.0040.00416.82
8.0.100.0000.00716.84
8.0.90.0020.00516.83
8.0.80.0080.00616.90
8.0.70.0040.00416.86
8.0.60.0040.00416.95
8.0.50.0040.00416.76
8.0.30.0190.00716.91
8.0.20.0040.01417.30
8.0.10.0000.00717.04
8.0.00.0110.00717.01
7.4.330.0030.00313.22
7.4.320.0030.00316.73
7.4.300.0030.00316.74
7.4.290.0060.00316.67
7.4.280.0030.00616.75
7.4.270.0000.00716.79
7.4.260.0000.00513.52
7.4.250.0070.00316.75
7.4.240.0050.00316.74
7.4.230.0040.00416.41
7.4.220.0120.00616.64
7.4.210.0060.01016.70
7.4.200.0000.00716.73
7.4.190.0040.00316.71
7.4.160.0060.00916.79
7.4.150.0070.01016.67
7.4.140.0070.01016.59
7.4.130.0120.00816.59
7.4.120.0060.01016.68
7.4.110.0070.01416.76
7.4.100.0130.00616.70
7.4.90.0070.01416.53
7.4.80.0150.00319.39
7.4.70.0040.01116.52
7.4.60.0130.00316.75
7.4.50.0060.00616.54
7.4.40.0050.00816.77
7.4.30.0080.00816.69
7.4.00.0080.00415.09
7.3.330.0050.00413.01
7.3.320.0050.00013.16
7.3.310.0070.00016.34
7.3.300.0000.00716.27
7.3.290.0050.00816.33
7.3.280.0050.01016.26
7.3.270.0120.00916.57
7.3.260.0070.01016.38
7.3.250.0090.01016.37
7.3.240.0110.00716.42
7.3.230.0100.00716.36
7.3.210.0060.01616.63
7.3.200.0130.00316.66
7.3.190.0120.01116.53
7.3.180.0080.01216.44
7.3.170.0090.00616.75
7.3.160.0060.00916.35
7.3.120.0000.01514.74
7.3.10.0150.00316.63
7.3.00.0070.01416.61
7.2.330.0120.00916.42
7.2.320.0060.01216.67
7.2.310.0070.01716.66
7.2.300.0050.01116.68
7.2.290.0070.01016.63
7.2.130.0090.00616.60
7.2.120.0100.00716.74
7.2.110.0060.01516.98
7.2.100.0120.01216.73
7.2.90.0120.00416.99
7.2.80.0150.00916.53
7.2.70.0190.00816.94
7.2.60.0170.00016.75
7.2.50.0120.00316.74
7.2.40.0140.01016.63
7.2.30.0120.00616.66
7.2.20.0130.00316.46
7.2.10.0190.00416.76
7.2.00.0050.00918.24
7.1.250.0090.00615.55
7.1.100.0030.00818.22
7.1.70.0000.00817.24
7.1.60.0140.01019.40
7.1.50.0100.01317.11
7.1.00.0030.03322.37
7.0.200.0280.00614.67
7.0.140.0070.07321.99
7.0.120.0030.06322.18
7.0.60.0030.07019.99
7.0.50.0100.05717.89
7.0.40.0130.07320.22
7.0.30.0270.05320.15
7.0.20.0300.06720.34
7.0.10.0000.08020.03
7.0.00.0100.08720.18
5.6.280.0070.07020.81
5.6.210.0200.05020.76
5.6.200.0100.07018.13
5.6.190.0100.07720.41
5.6.180.4170.04020.48
5.6.170.0230.08020.41
5.6.160.0130.05320.54
5.6.150.0070.04318.22
5.6.140.0030.03718.18
5.6.130.0030.05318.18
5.6.120.0100.04721.12
5.6.110.0170.07321.04
5.6.100.0200.07720.95
5.6.90.0130.07721.07
5.6.80.0000.04020.53
5.6.70.4200.04720.43
5.5.350.0200.04720.46
5.5.340.0230.06317.91
5.5.330.0000.08320.15
5.5.320.0300.04720.51
5.5.310.0130.04720.23
5.5.300.0130.05318.07
5.5.290.0070.05017.96
5.5.280.0030.04020.88
5.5.270.0130.06720.83
5.5.260.0070.04020.66
5.5.250.0030.08720.57
5.5.240.0230.06020.14
5.4.450.0130.07319.41
5.4.440.0070.05019.51
5.4.430.0030.08319.41
5.4.420.0070.06019.11
5.4.410.0100.07319.20
5.4.400.0100.04019.18
5.4.390.0030.07719.14
5.4.380.0070.08319.14
5.4.370.0100.07019.10
5.4.360.0230.06319.00
5.4.350.0130.07019.14
5.4.340.0070.07019.08
5.4.320.0070.08019.12
5.4.310.0070.07718.79
5.4.300.0000.07319.00
5.4.290.0030.07318.80
5.4.280.0070.04019.17
5.4.270.0030.05019.14
5.4.260.0100.05719.07
5.4.250.0070.04719.00
5.4.240.0130.06019.17
5.4.230.0030.05018.80
5.4.220.0100.03319.17
5.4.210.0070.06019.17
5.4.200.0100.05719.07
5.4.190.0100.05319.07
5.4.180.0100.06719.13
5.4.170.0000.07318.91
5.4.160.0070.06018.75
5.4.150.0030.07318.79
5.4.140.0000.07016.33
5.4.130.0070.05316.20
5.4.120.0070.07716.37
5.4.110.0070.05016.41
5.4.100.0030.07316.32
5.4.90.0170.05316.41
5.4.80.0100.06016.36
5.4.70.0100.07716.27
5.4.60.0100.05716.32
5.4.50.0070.05316.25
5.4.40.0100.07016.27
5.4.30.0000.06316.43
5.4.20.0070.06316.35
5.4.10.0070.07316.20
5.4.00.0100.06315.66
5.3.290.0100.07714.60
5.3.280.0070.05714.48
5.3.270.0100.06314.53
5.3.260.0130.07714.48
5.3.250.0030.07714.53
5.3.240.0030.05714.62
5.3.230.0000.04714.55
5.3.220.0030.06714.58
5.3.210.0100.08014.54
5.3.200.0070.05714.38
5.3.190.0000.08714.50
5.3.180.0070.06314.48
5.3.170.0070.08014.65
5.3.160.0070.03714.35
5.3.150.0000.04714.48
5.3.140.0030.04314.64
5.3.130.0070.04314.53
5.3.120.0070.04714.47
5.3.110.0030.07714.50
5.3.100.0070.07014.05
5.3.90.0030.04713.92
5.3.80.0030.06313.95
5.3.70.0070.06013.95
5.3.60.0170.04313.94
5.3.50.0070.07713.87
5.3.40.0100.06013.78
5.3.30.0000.04013.88
5.3.20.0070.07313.62
5.3.10.0030.06013.67
5.3.00.0070.07313.65
5.2.170.0000.04310.96
5.2.160.0100.03711.11
5.2.150.0070.03711.06
5.2.140.0030.06311.08
5.2.130.0070.04011.18
5.2.120.0070.06011.05
5.2.110.0070.03011.04
5.2.100.0000.03711.03
5.2.90.0070.06311.06
5.2.80.0030.06311.04
5.2.70.0030.03311.06
5.2.60.0030.06310.96
5.2.50.0100.05310.99
5.2.40.0170.04310.96
5.2.30.0100.03010.86
5.2.20.0030.06010.98
5.2.10.0000.03010.90
5.2.00.0070.05310.71
5.1.60.0000.0339.98
5.1.50.0000.0479.94
5.1.40.0070.0279.87
5.1.30.0000.03710.28
5.1.20.0030.06010.34
5.1.10.0130.03310.04
5.1.00.0070.05310.11
5.0.50.0000.0408.54
5.0.40.0000.0508.25
5.0.30.0070.0608.17
5.0.20.0000.0438.16
5.0.10.0030.0278.13
5.0.00.0070.0638.29
4.4.90.0030.0377.78
4.4.80.0070.0307.78
4.4.70.0030.0277.78
4.4.60.0070.0207.78
4.4.50.0070.0137.78
4.4.40.0000.0507.78
4.4.30.0000.0277.78
4.4.20.0030.0307.78
4.4.10.0070.0337.78
4.4.00.0130.0277.78
4.3.110.0000.0377.78
4.3.100.0000.0237.78
4.3.90.0030.0277.78
4.3.80.0100.0377.78
4.3.70.0070.0307.78
4.3.60.0000.0277.78
4.3.50.0000.0277.78
4.3.40.0030.0537.78
4.3.30.0030.0337.78
4.3.20.0030.0377.78
4.3.10.0030.0177.78
4.3.00.0030.0377.78

preferences:
34.2 ms | 400 KiB | 5 Q