3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " My text has so much whitespace Plenty of spaces and tabs "; var_export( preg_replace( ['/\h+/', '/\v+/'], [' ', PHP_EOL], trim($string) ) );

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.4.130.0110.00918.07
8.4.120.0110.00924.16
8.4.110.0100.00920.89
8.4.100.0090.00517.72
8.4.90.0120.00720.48
8.4.80.0110.00918.97
8.4.70.0140.00720.62
8.4.60.0020.00622.23
8.4.50.0140.00718.80
8.4.40.0160.00319.70
8.4.30.0130.00720.22
8.4.20.0140.00718.00
8.4.10.0080.00018.43
8.3.260.0090.01116.73
8.3.250.0110.00817.14
8.3.240.0060.00416.93
8.3.230.0150.00516.57
8.3.220.0110.00818.81
8.3.210.0100.00816.80
8.3.200.0060.00316.63
8.3.190.0130.00616.91
8.3.180.0100.00818.62
8.3.170.0140.00318.98
8.3.160.0040.01218.89
8.3.150.0100.01017.12
8.3.140.0040.00416.50
8.3.130.0030.00716.89
8.3.120.0050.00318.98
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0060.00316.88
8.3.70.0070.00716.75
8.3.60.0120.00616.75
8.3.50.0070.01018.38
8.3.40.0110.00322.10
8.3.30.0110.00319.25
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.39
8.2.280.0060.00418.87
8.2.270.0090.00918.60
8.2.260.0000.00819.11
8.2.250.0000.00818.37
8.2.240.0030.00517.19
8.2.230.0070.00722.58
8.2.220.0110.00437.54
8.2.210.0040.00426.77
8.2.200.0000.01118.55
8.2.190.0070.00716.75
8.2.180.0080.00625.92
8.2.170.0110.00719.00
8.2.160.0090.00922.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.70
8.2.110.0070.00320.95
8.2.100.0060.00618.03
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00818.10
8.2.30.0090.00018.08
8.2.20.0050.00220.43
8.2.10.0030.00517.95
8.2.00.0000.00719.13
8.1.330.0130.00621.98
8.1.320.0110.00916.01
8.1.310.0050.00316.89
8.1.300.0000.00818.19
8.1.290.0040.00418.88
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0080.00022.74
8.1.230.0050.00519.00
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0030.00518.79
8.1.150.0040.00418.71
8.1.140.0000.00717.48
8.1.130.0030.00318.86
8.1.120.0070.00017.49
8.1.110.0000.00817.56
8.1.100.0000.00717.49
8.1.90.0000.00817.58
8.1.80.0000.00817.57
8.1.70.0030.00317.47
8.1.60.0040.00417.66
8.1.50.0090.00017.56
8.1.40.0060.00617.55
8.1.30.0100.00717.65
8.1.20.0180.00017.67
8.1.10.0200.00317.55
8.1.00.0120.00617.46
8.0.300.0080.00018.77
8.0.290.0030.00616.88
8.0.280.0030.00318.38
8.0.270.0030.00316.89
8.0.260.0000.00718.39
8.0.250.0000.00716.99
8.0.240.0070.00017.05
8.0.230.0070.00017.01
8.0.220.0070.00016.94
8.0.210.0050.00316.94
8.0.200.0040.00417.03
8.0.190.0050.00217.01
8.0.180.0050.00317.00
8.0.170.0120.00016.93
8.0.160.0150.00416.91
8.0.150.0190.00016.89
8.0.140.0150.00016.78
8.0.130.0140.00016.84
8.0.120.0130.00016.83
8.0.110.0110.00816.95
8.0.100.0120.00616.81
8.0.90.0110.00916.80
8.0.80.0190.00016.98
8.0.70.0160.00316.75
8.0.60.0140.00516.81
8.0.50.0160.00316.82
8.0.30.0140.00516.96
8.0.20.0190.00016.97
8.0.10.0110.00716.95
7.4.330.0000.00515.55
7.4.320.0070.00016.78
7.4.300.0000.00616.74
7.4.290.0080.00016.51
7.4.280.0070.00016.73
7.4.270.0180.00316.62
7.4.260.0210.00316.67
7.4.250.0210.00416.59
7.4.240.0200.00016.58
7.4.230.0200.00316.57
7.4.220.0150.00416.66
7.4.210.0120.00816.50
7.4.200.0200.00016.59
7.4.190.0060.01116.56
7.4.180.0160.00016.60
7.4.160.0130.00716.73
7.4.150.0100.00716.63
7.4.140.0110.00716.52
7.4.130.0160.00316.45
7.4.120.0120.00816.45
7.4.110.0140.00616.65
7.4.100.0140.00616.65
7.4.90.0190.00016.61
7.4.80.0130.00716.39
7.4.70.0100.01016.52
7.4.60.0190.00016.64
7.4.50.0200.00016.38
7.4.40.0150.00416.34
7.4.30.0120.00616.51
7.4.20.0120.00616.30
7.4.10.0170.00016.48
7.4.00.0140.00316.55

preferences:
33.91 ms | 403 KiB | 5 Q