3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR Featuring six amazing National Parks: Glacier, Waterton Lakes, Yellowstone, Grand Teton, Arches, and Canyonlands. Your tour begins in Chicago where you will board the Empire Builder bound for the first National Park on your trip, Glacier, where you will explore the famed Going-to-the-Sun Road and enjoy a full-day excursion to Waterton Lakes National Park in Canada (passport required). Featuring six amazing National Parks: Glacier, Waterton Lakes, Yellowstone, Grand Teton, Arches, and Canyonlands. STR; echo preg_replace('/(^|[^\n])\R(?!\R)/u', '', $str);

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.00716.88
8.3.50.0190.00721.98
8.3.40.0040.01119.10
8.3.30.0070.00719.02
8.3.20.0000.00720.34
8.3.10.0040.00423.54
8.3.00.0040.00420.64
8.2.180.0120.00316.50
8.2.170.0000.01522.96
8.2.160.0100.00322.38
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00022.25
8.2.110.0070.00322.28
8.2.100.0120.00018.03
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0030.00717.88
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00719.52
8.2.30.0060.00518.10
8.2.20.0020.00517.81
8.2.10.0050.00319.50
8.2.00.0040.00417.86
8.1.280.0130.00325.92
8.1.270.0080.00023.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0050.00521.04
8.1.220.0000.00817.78
8.1.210.0060.00318.80
8.1.200.0060.00317.22
8.1.190.0030.00517.53
8.1.180.0040.00418.10
8.1.170.0000.00918.64
8.1.160.0040.00421.86
8.1.150.0030.00518.66
8.1.140.0000.00917.46
8.1.130.0040.00417.87
8.1.120.0040.00317.57
8.1.110.0000.00717.54
8.1.100.0000.00817.46
8.1.90.0050.00217.48
8.1.80.0070.00017.51
8.1.70.0000.00717.51
8.1.60.0000.00917.71
8.1.50.0030.00517.52
8.1.40.0070.00017.52
8.1.30.0030.00517.64
8.1.20.0000.00817.75
8.1.10.0040.00417.65
8.1.00.0000.00817.52
8.0.300.0040.00419.98
8.0.290.0040.00417.16
8.0.280.0030.00318.48
8.0.270.0030.00317.32
8.0.260.0040.00416.98
8.0.250.0030.00317.25
8.0.240.0060.00417.25
8.0.230.0050.00317.11
8.0.220.0000.00717.00
8.0.210.0030.00317.10
8.0.200.0080.00017.06
8.0.190.0070.00017.21
8.0.180.0040.00417.06
8.0.170.0050.00317.07
8.0.160.0000.00817.16
8.0.150.0070.00317.16
8.0.140.0080.00017.11
8.0.130.0030.00313.63
8.0.120.0030.00617.08
8.0.110.0000.00717.08
8.0.100.0080.00017.09
8.0.90.0000.00716.96
8.0.80.0090.01217.12
8.0.70.0000.00717.09
8.0.60.0070.00017.00
8.0.50.0040.00416.91
8.0.30.0120.00617.25
8.0.20.0080.01117.40
8.0.10.0070.00016.99
8.0.00.0090.01117.02
7.4.330.0050.00015.09
7.4.320.0030.00316.73
7.4.300.0020.00516.76
7.4.290.0030.00316.64
7.4.280.0030.00316.70
7.4.270.0030.00316.69
7.4.260.0000.00716.51
7.4.250.0070.00016.77
7.4.240.0040.00316.67
7.4.230.0040.00416.48
7.4.220.0070.01716.61
7.4.210.0080.00716.74
7.4.200.0080.00016.81
7.4.190.0040.00316.71
7.4.160.0060.00916.65
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00816.69
7.4.120.0100.00716.83
7.4.110.0100.01316.72
7.4.100.0160.00916.54
7.4.90.0060.01216.64
7.4.80.0110.00616.51
7.4.70.0070.01016.67
7.4.60.0110.00616.82
7.4.50.0030.00616.40
7.4.40.0090.00522.77
7.4.30.0130.00316.60
7.4.00.0100.00615.04
7.3.330.0000.00513.18
7.3.320.0050.00013.34
7.3.310.0030.00316.49
7.3.300.0060.00016.38
7.3.290.0240.00416.50
7.3.280.0080.01116.48
7.3.270.0090.00917.40
7.3.260.0040.01316.45
7.3.250.0130.00516.40
7.3.240.0160.00616.41
7.3.230.0030.01316.43
7.3.210.0110.01016.26
7.3.200.0100.01019.39
7.3.190.0060.01316.69
7.3.180.0070.01116.41
7.3.170.0140.00316.42
7.3.160.0090.00616.49
7.3.120.0060.00915.16
7.3.10.0170.00616.26
7.3.00.0060.01016.43
7.2.330.0070.01016.52
7.2.320.0080.00916.58
7.2.310.0070.01416.59
7.2.300.0110.00616.51
7.2.290.0130.00316.65
7.2.130.0090.00816.54
7.2.120.0090.00916.68
7.2.110.0140.00416.61
7.2.100.0110.00916.77
7.2.90.0150.00516.45
7.2.80.0170.00616.64
7.2.70.0130.00816.52
7.2.60.0140.00616.45
7.2.50.0120.00916.67
7.2.40.0130.00916.66
7.2.30.0170.00516.40
7.2.20.0190.00216.57
7.2.10.0130.00616.43
7.2.00.0160.00516.56
7.1.250.0110.01015.47
7.1.70.0090.00417.17
7.1.60.0100.01319.27
7.1.50.0110.01417.13
7.1.00.0000.08022.38
7.0.200.0000.00716.89
7.0.140.0000.07722.15
7.0.60.0070.06019.94
7.0.50.0030.04317.83
7.0.40.0070.07020.12
7.0.30.0170.06320.18
7.0.20.0270.07720.03
7.0.10.0030.04320.18
7.0.00.0130.05020.01
5.6.280.0130.06021.10
5.6.210.0030.08320.52
5.6.200.0070.06018.21
5.6.190.0170.07720.43
5.6.180.0170.04720.65
5.6.170.0270.05020.41
5.6.160.0000.07020.61
5.6.150.0070.08318.18
5.6.140.0100.08018.17
5.6.130.0100.07318.11
5.6.120.0130.07321.14
5.6.110.0200.07021.16
5.6.100.0070.08321.13
5.6.90.0070.08020.88
5.6.80.0170.07020.39
5.5.350.0100.07720.42
5.5.340.0070.07717.98
5.5.330.0130.08020.40
5.5.320.0000.04720.24
5.5.310.0330.07320.21
5.5.300.0030.04017.98
5.5.290.0000.04717.96
5.5.280.0030.08320.79
5.5.270.0030.04720.86
5.5.260.0170.07320.76
5.5.250.0030.05320.68
5.5.240.0330.05720.34
5.4.450.0430.05719.48
5.4.440.1030.05719.61
5.4.430.1130.07019.45
5.4.420.0730.04719.48
5.4.410.0430.05019.47
5.4.400.0900.07019.30
5.4.390.0970.06319.16
5.4.380.0070.06018.65
5.4.370.0130.05318.65
5.4.360.0170.04718.65
5.4.350.0130.05318.56
5.4.340.0200.04718.50
5.4.320.0090.03412.45
5.4.310.0050.03912.45
5.4.300.0040.03712.45
5.4.290.0040.03812.45
5.4.280.0070.03912.34
5.4.270.0070.03812.35
5.4.260.0120.04212.34
5.4.250.0060.04012.35
5.4.240.0080.04212.35
5.4.230.0030.04412.34
5.4.220.0070.03912.34
5.4.210.0070.04112.34
5.4.200.0030.04112.34
5.4.190.0200.04512.32
5.4.180.0170.04412.32
5.4.170.0160.04412.34
5.4.160.0130.04912.32
5.4.150.0280.06312.32
5.4.140.0200.05312.01
5.4.130.0160.04511.99
5.4.120.0140.04311.95
5.4.110.0170.04311.95
5.4.100.0160.04411.95
5.4.90.0140.04511.95
5.4.80.0170.04211.95
5.4.70.0270.06311.95
5.4.60.0120.04411.94
5.4.50.0150.04211.95
5.4.40.0180.03811.93
5.4.30.0140.04411.93
5.4.20.0120.04411.93
5.4.10.0160.04011.93
5.4.00.0160.03911.42
5.3.290.0060.04012.80
5.3.280.0060.03712.71
5.3.270.0290.06312.73
5.3.260.0160.04412.72
5.3.250.0160.04312.72
5.3.240.0180.04112.71
5.3.230.0110.05012.71
5.3.220.0170.04212.68
5.3.210.0150.04612.68
5.3.200.0140.04412.68
5.3.190.0090.05212.67
5.3.180.0280.06212.67
5.3.170.0150.04612.67
5.3.160.0120.05112.68
5.3.150.0200.03912.67
5.3.140.0150.04512.66
5.3.130.0090.05112.66
5.3.120.0190.04712.66
5.3.110.0150.04912.66
5.3.100.0160.04712.12
5.3.90.0110.04912.08
5.3.80.0240.06612.07
5.3.70.0150.04412.07
5.3.60.0160.04412.07
5.3.50.0100.04812.00
5.3.40.0160.04312.00
5.3.30.0100.04711.95
5.3.20.0180.04011.72
5.3.10.0200.03611.68
5.3.00.0170.03911.66
5.2.170.0150.0339.18
5.2.160.0120.0389.17
5.2.150.0120.0369.18
5.2.140.0380.0749.17
5.2.130.0120.0399.13
5.2.120.0170.0399.13
5.2.110.0110.0389.13
5.2.100.0090.0409.13
5.2.90.0270.0829.13
5.2.80.0150.0359.13
5.2.70.0140.0359.12
5.2.60.0120.0359.08
5.2.50.0110.0369.05
5.2.40.0140.0329.03
5.2.30.0150.0359.01
5.2.20.0150.0319.02
5.2.10.0170.0318.93
5.2.00.0140.0408.78
5.1.60.0090.0308.07
5.1.50.0110.0298.06
5.1.40.0120.0298.05
5.1.30.0210.0548.39
5.1.20.0120.0318.43
5.1.10.0120.0308.14
5.1.00.0150.0298.14
5.0.50.0290.0666.63
5.0.40.0120.0206.48
5.0.30.0090.0366.30
5.0.20.0070.0256.27
5.0.10.0080.0236.24
5.0.00.0130.0336.23
4.4.90.0050.0214.78
4.4.80.0060.0194.75
4.4.70.0070.0194.75
4.4.60.0080.0174.75
4.4.50.0110.0134.77
4.4.40.0050.0314.71
4.4.30.0050.0204.75
4.4.20.0090.0164.84
4.4.10.0070.0184.85
4.4.00.0260.0704.76
4.3.110.0100.0144.67
4.3.100.0030.0214.67
4.3.90.0070.0174.63
4.3.80.0060.0294.59
4.3.70.0060.0184.63
4.3.60.0070.0184.63
4.3.50.0080.0164.62
4.3.40.0100.0234.54
4.3.30.0030.0203.30
4.3.20.0070.0463.29
4.3.10.0070.0163.22
4.3.00.0100.0206.94

preferences:
46.78 ms | 401 KiB | 5 Q