3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t'); foreach ($strings as $name => $testcase) { if (ctype_space($testcase)) { echo "The string '$name' consists of all whitespace characters.\n"; } else { echo "The string '$name' does not consist of all whitespace characters.\n"; } }

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.0040.01118.55
8.3.50.0140.00016.36
8.3.40.0120.00618.67
8.3.30.0040.01118.75
8.3.20.0030.00520.86
8.3.10.0030.00621.66
8.3.00.0000.00819.79
8.2.180.0140.00418.29
8.2.170.0110.00422.96
8.2.160.0130.00620.57
8.2.150.0070.00724.18
8.2.140.0070.00024.66
8.2.130.0040.00421.18
8.2.120.0050.00226.35
8.2.110.0000.00922.11
8.2.100.0120.00317.83
8.2.90.0040.00417.75
8.2.80.0080.00018.57
8.2.70.0080.00017.63
8.2.60.0000.00817.63
8.2.50.0050.00317.63
8.2.40.0040.00419.23
8.2.30.0030.00519.32
8.2.20.0040.00418.18
8.2.10.0040.00418.13
8.2.00.0000.00817.63
8.1.280.0090.01225.92
8.1.270.0040.00424.01
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00020.88
8.1.230.0060.00617.70
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00817.25
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0040.00418.96
8.1.150.0050.00320.33
8.1.140.0050.00219.54
8.1.130.0000.00919.02
8.1.120.0000.00717.52
8.1.110.0020.00517.50
8.1.100.0040.00317.48
8.1.90.0030.00517.46
8.1.80.0000.00717.46
8.1.70.0030.00317.49
8.1.60.0040.00417.55
8.1.50.0060.00317.59
8.1.40.0040.00417.42
8.1.30.0040.00417.70
8.1.20.0000.00917.60
8.1.10.0000.00817.54
8.1.00.0000.00717.42
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.44
8.0.270.0040.00417.19
8.0.260.0000.00617.44
8.0.250.0050.00316.87
8.0.240.0050.00316.99
8.0.230.0040.00416.85
8.0.220.0040.00416.87
8.0.210.0070.00016.78
8.0.200.0040.00416.98
8.0.190.0040.00416.95
8.0.180.0030.00516.93
8.0.170.0030.00616.82
8.0.160.0000.00816.95
8.0.150.0040.00416.86
8.0.140.0050.00216.75
8.0.130.0050.00313.33
8.0.120.0050.00316.90
8.0.110.0040.00416.89
8.0.100.0000.00716.73
8.0.90.0050.00316.90
8.0.80.0090.00616.92
8.0.70.0050.00316.89
8.0.60.0030.00516.82
8.0.50.0000.00816.92
8.0.30.0080.01017.15
8.0.20.0100.00917.40
8.0.10.0080.00016.90
8.0.00.0100.00716.75
7.4.330.0050.00015.55
7.4.320.0000.00716.57
7.4.300.0060.00016.49
7.4.290.0000.00716.62
7.4.280.0040.00416.55
7.4.270.0030.00616.38
7.4.260.0000.00716.44
7.4.250.0050.00216.41
7.4.240.0080.00016.47
7.4.230.0030.00316.33
7.4.220.0080.01916.61
7.4.210.0050.00916.57
7.4.200.0030.00416.65
7.4.160.0080.00816.60
7.4.150.0110.00717.40
7.4.140.0140.00817.86
7.4.130.0110.01216.59
7.4.120.0120.01016.44
7.4.110.0100.01016.58
7.4.100.0130.00316.43
7.4.90.0090.01216.60
7.4.80.0120.01219.39
7.4.70.0130.00316.76
7.4.60.0090.00916.45
7.4.50.0090.00916.24
7.4.40.0060.01116.49
7.4.30.0070.01016.65
7.4.00.0050.00914.87
7.3.330.0030.00313.35
7.3.320.0060.00013.07
7.3.310.0040.00416.18
7.3.300.0070.00016.33
7.3.290.0040.00416.29
7.3.280.0080.00816.30
7.3.270.0100.00717.40
7.3.260.0120.00516.39
7.3.250.0080.00916.27
7.3.240.0060.01016.30
7.3.230.0130.01016.39
7.3.210.0040.01416.44
7.3.200.0100.00616.36
7.3.190.0080.00916.46
7.3.180.0100.00616.32
7.3.170.0060.00916.56
7.3.160.0030.01416.32
7.3.120.0040.01414.46
7.3.110.0070.00714.80
7.3.100.0060.00914.63
7.3.90.0030.00714.56
7.3.80.0000.01414.93
7.3.70.0110.00714.77
7.3.60.0070.00714.79
7.3.50.0070.00715.03
7.3.40.0040.01114.88
7.3.30.0060.00314.77
7.3.20.0030.01016.66
7.3.10.0030.01016.51
7.3.00.0090.00416.63
7.2.330.0080.00816.50
7.2.320.0120.00616.42
7.2.310.0060.01216.56
7.2.300.0170.00716.33
7.2.290.0160.00316.64
7.2.250.0070.01115.05
7.2.240.0030.01315.10
7.2.230.0060.00915.15
7.2.220.0080.00414.99
7.2.210.0070.00414.63
7.2.200.0070.00714.81
7.2.190.0040.00714.92
7.2.180.0070.00714.96
7.2.170.0090.00614.64
7.2.60.0060.00916.82
7.2.50.0040.01116.78
7.1.330.0070.00715.94
7.1.320.0060.00615.54
7.1.310.0100.00715.95
7.1.300.0050.00515.54
7.1.290.0000.01315.64
7.1.280.0060.00615.47
7.1.270.0070.00716.03
7.1.260.0110.00415.80
7.1.200.0060.00315.66
7.1.70.0030.01017.35
7.1.60.0070.00317.33
7.1.00.0570.05720.84
7.0.200.0000.00816.70
7.0.140.0500.05320.15
7.0.130.0600.04320.21
7.0.120.0470.06020.30
7.0.110.0500.06320.14
7.0.100.0500.05720.39
7.0.90.0470.05720.36
7.0.80.0430.06020.20
7.0.70.0830.06320.15
7.0.60.0500.05720.17
7.0.50.0470.05720.19
7.0.40.0800.05320.29
7.0.30.0470.06020.19
7.0.20.0700.05320.17
7.0.10.0800.07320.32
7.0.00.0600.06320.23
5.6.290.0130.05020.69
5.6.280.0000.06720.93
5.6.270.0030.06020.78
5.6.260.0100.05720.91
5.6.250.0030.06021.05
5.6.240.0100.05720.85
5.6.230.0070.06021.11
5.6.220.0130.07021.13
5.6.210.0130.05720.91
5.6.200.0200.06320.99
5.6.190.0130.05721.04
5.6.180.0070.06720.81
5.6.170.0200.05321.04
5.6.160.0170.05721.04
5.6.150.0230.04720.88
5.6.140.0130.05720.88
5.6.130.0230.04720.91
5.6.120.0130.06020.81
5.6.110.0170.05320.90
5.6.100.0100.06020.86
5.6.90.0100.06021.05
5.6.80.0070.06020.41
5.6.70.0130.05720.25
5.6.60.0100.05320.11
5.6.50.0070.06320.26
5.6.40.0070.06020.36
5.6.30.0070.06320.39
5.6.20.0070.06320.39
5.6.10.0100.06020.40
5.6.00.0030.06020.44

preferences:
60.37 ms | 401 KiB | 5 Q