3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Text = "There is a pleasure in the pathless woods, There is a rapture on the lonely shore, There is society, where none intrudes."; $Text=trim($Text); $Text=preg_replace("/[\r\n]+/", "\n", $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.0090.00616.75
8.3.50.0150.00722.16
8.3.40.0070.00719.10
8.3.30.0000.01418.96
8.3.20.0080.00018.99
8.3.10.0040.00421.73
8.3.00.0050.00218.00
8.2.180.0080.00825.92
8.2.170.0110.00719.04
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00622.08
8.2.120.0070.01126.35
8.2.110.0060.00320.43
8.2.100.0060.00618.04
8.2.90.0030.00618.09
8.2.80.0080.00017.97
8.2.70.0030.00517.75
8.2.60.0030.00618.03
8.2.50.0000.00818.10
8.2.40.0000.00822.32
8.2.30.0040.00420.98
8.2.20.0040.00417.92
8.2.10.0040.00418.18
8.2.00.0060.00318.23
8.1.280.0110.00725.92
8.1.270.0080.00023.54
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00621.02
8.1.230.0040.00722.75
8.1.220.0060.00317.78
8.1.210.0070.00418.77
8.1.200.0040.00417.48
8.1.190.0040.00417.47
8.1.180.0080.00018.10
8.1.170.0080.00018.64
8.1.160.0050.00322.17
8.1.150.0040.00418.96
8.1.140.0040.00419.64
8.1.130.0030.00320.01
8.1.120.0020.00517.48
8.1.110.0020.00517.49
8.1.100.0080.00017.56
8.1.90.0070.00317.40
8.1.80.0040.00417.61
8.1.70.0030.00317.56
8.1.60.0050.00217.55
8.1.50.0060.00317.58
8.1.40.0030.00617.53
8.1.30.0030.00617.75
8.1.20.0040.00417.76
8.1.10.0050.00217.70
8.1.00.0030.00517.46
8.0.300.0050.00221.96
8.0.290.0040.00416.88
8.0.280.0030.00318.33
8.0.270.0000.00717.38
8.0.260.0030.00318.58
8.0.250.0000.00716.99
8.0.240.0070.00017.07
8.0.230.0040.00416.91
8.0.220.0080.00016.93
8.0.210.0080.00016.88
8.0.200.0030.00317.04
8.0.190.0080.00016.89
8.0.180.0050.00217.00
8.0.170.0000.00817.00
8.0.160.0060.00316.99
8.0.150.0060.00316.86
8.0.140.0080.00016.96
8.0.130.0050.00013.45
8.0.120.0050.00517.00
8.0.110.0000.00717.03
8.0.100.0000.00716.87
8.0.90.0070.00017.06
8.0.80.0060.01016.98
8.0.70.0050.00517.12
8.0.60.0050.00316.81
8.0.50.0040.00416.88
8.0.30.0140.00517.25
8.0.20.0110.00717.45
8.0.10.0040.00417.14
8.0.00.0060.01316.84
7.4.330.0050.00015.21
7.4.320.0030.00316.79
7.4.300.0030.00316.70
7.4.290.0070.00316.75
7.4.280.0080.00016.77
7.4.270.0000.00716.73
7.4.260.0000.00716.77
7.4.250.0060.00316.71
7.4.240.0080.00016.64
7.4.230.0030.00616.88
7.4.220.0170.00016.79
7.4.210.0060.00916.80
7.4.200.0000.00716.78
7.4.160.0060.01016.50
7.4.150.0100.01317.40
7.4.140.0090.00917.86
7.4.130.0120.00816.73
7.4.120.0100.00816.84
7.4.110.0100.00716.63
7.4.100.0090.00916.49
7.4.90.0100.01116.59
7.4.80.0100.00719.39
7.4.70.0100.00616.59
7.4.60.0070.01116.66
7.4.50.0070.00716.50
7.4.40.0130.00316.71
7.4.30.0130.00316.48
7.4.00.0070.01114.92
7.3.330.0000.00613.20
7.3.320.0030.00313.06
7.3.310.0000.00716.42
7.3.300.0000.00616.34
7.3.290.0070.01116.38
7.3.280.0060.00916.31
7.3.270.0060.01217.40
7.3.260.0100.01216.42
7.3.250.0110.00816.44
7.3.240.0080.01016.56
7.3.230.0070.01416.39
7.3.210.0140.00416.68
7.3.200.0090.00616.55
7.3.190.0140.00716.73
7.3.180.0140.00316.48
7.3.170.0160.00316.53
7.3.160.0130.00316.24
7.2.330.0190.00016.65
7.2.320.0160.00616.52
7.2.310.0140.01016.79
7.2.300.0060.01516.81
7.2.290.0150.00416.56
7.2.60.0260.00317.00
7.2.00.0110.00719.34
7.1.200.0040.00815.91
7.1.70.0040.00717.05
7.1.60.0130.00019.75
7.1.00.0000.08022.34
7.0.200.0270.00714.89
7.0.90.0300.08319.96
7.0.80.0400.06719.95
7.0.70.0330.06320.04
7.0.60.0200.06320.01
7.0.50.0200.06320.33
7.0.40.0230.05720.35
7.0.30.0370.06020.24
7.0.20.0370.05020.38
7.0.10.0230.06020.30
7.0.00.0370.06020.43
5.6.240.0200.04720.63
5.6.230.0130.06320.72
5.6.220.0170.04720.66
5.6.210.0030.07320.64
5.6.200.0100.06021.09
5.6.190.0130.06321.07
5.6.180.0000.07021.08
5.6.170.0230.04321.17
5.6.160.0100.05721.19
5.6.150.0100.06721.09
5.6.140.0100.06021.11
5.6.130.0030.06321.13
5.6.120.0070.06021.01
5.6.110.0030.06721.04
5.6.100.0070.05720.97
5.6.90.0100.05721.07
5.6.80.0070.05320.39
5.6.70.0130.04720.45
5.6.60.0100.05320.47
5.6.50.0100.05720.39
5.6.40.0030.06320.37
5.6.30.0100.05320.48
5.6.20.0200.05020.43
5.6.10.0130.05320.42
5.6.00.0130.05020.44

preferences:
64.5 ms | 401 KiB | 5 Q