3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' My text1 My text2 My text3 '; var_export( preg_split('/\R+/', $string, 0, PREG_SPLIT_NO_EMPTY) );

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.130.0100.01016.59
8.3.120.0110.00018.84
8.3.110.0080.00020.94
8.3.100.0130.00724.06
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0170.00318.56
8.3.60.0030.01516.63
8.3.50.0110.00924.49
8.3.40.0090.00621.89
8.3.30.0190.00418.79
8.3.20.0030.00324.18
8.3.10.0030.00524.66
8.3.00.0030.00526.16
8.2.250.0030.00518.38
8.2.240.0040.01217.29
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0140.00426.77
8.2.200.0030.00618.88
8.2.190.0070.01116.90
8.2.180.0100.01025.92
8.2.170.0110.00418.98
8.2.160.0130.00022.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00819.41
8.2.110.0040.00720.42
8.2.100.0000.01117.83
8.2.90.0080.00017.75
8.2.80.0080.00018.73
8.2.70.0080.00017.79
8.2.60.0000.00718.03
8.2.50.0040.00418.10
8.2.40.0000.00820.93
8.2.30.0000.00719.20
8.2.20.0040.00417.78
8.2.10.0030.00518.44
8.2.00.0040.00318.43
8.1.300.0060.00317.92
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0030.00728.09
8.1.240.0090.00021.03
8.1.230.0090.00322.63
8.1.220.0070.00017.74
8.1.210.0030.00518.84
8.1.200.0080.00417.36
8.1.190.0090.00017.35
8.1.180.0080.00018.10
8.1.170.0030.00618.71
8.1.160.0050.00318.93
8.1.150.0060.00418.07
8.1.140.0050.00318.13
8.1.130.0040.00418.80
8.1.120.0020.00617.52
8.1.110.0070.00117.56
8.1.100.0020.00617.54
8.1.90.0030.00517.52
8.1.80.0010.00617.57
8.1.70.0030.00417.51
8.1.60.0030.00517.62
8.1.50.0020.00717.59
8.1.40.0030.00517.67
8.1.30.0040.00417.67
8.1.20.0030.00517.69
8.1.10.0040.00417.61
8.1.00.0020.00617.57
8.0.300.0000.00720.10
8.0.290.0050.00316.88
8.0.280.0000.00718.46
8.0.270.0040.00416.80
8.0.260.0000.00717.63
8.0.250.0010.00616.94
8.0.240.0000.00816.99
8.0.230.0020.00516.89
8.0.220.0020.00516.84
8.0.210.0050.00216.95
8.0.200.0000.00716.98
8.0.190.0030.00416.94
8.0.180.0000.00816.96
8.0.170.0070.00216.94
8.0.160.0040.00416.91
8.0.150.0000.00716.86
8.0.140.0040.00316.85
8.0.130.0060.00115.18
8.0.120.0020.00616.86
8.0.110.0020.00516.79
8.0.100.0030.00616.88
8.0.90.0020.00516.88
8.0.80.0040.01016.96
8.0.70.0040.00416.96
8.0.60.0060.00116.86
8.0.50.0000.00716.81
8.0.30.0030.00917.01
8.0.20.0080.00517.13
8.0.10.0050.00217.03
8.0.00.0130.00116.81
7.4.330.0000.00515.99
7.4.320.0060.00816.62
7.4.300.0110.00516.57
7.4.290.0080.00416.65
7.4.280.0080.00516.65
7.4.270.0080.00316.71
7.4.260.0070.00414.99
7.4.250.0060.00616.67
7.4.240.0080.00616.64
7.4.230.0090.00316.52
7.4.220.0040.00716.61
7.4.210.0100.00616.65
7.4.200.0070.00516.51
7.4.190.0090.00616.73
7.4.180.0120.00316.66
7.4.160.0130.00316.66
7.4.150.0120.00316.67
7.4.140.0140.00016.66
7.4.130.0130.00316.52
7.4.120.0130.00516.38
7.4.110.0100.00716.46
7.4.100.0100.00516.71
7.4.90.0140.00316.57
7.4.80.0160.00316.54
7.4.70.0100.00616.42
7.4.60.0100.00716.62
7.4.50.0140.00516.60
7.4.40.0070.01316.59
7.4.30.0080.00816.60
7.4.20.0110.00616.51
7.4.10.0070.00916.52
7.4.00.0120.00316.45
7.3.330.0060.00716.34
7.3.320.0110.00014.80
7.3.310.0060.00516.39
7.3.300.0030.00816.38
7.3.290.0090.00816.32
7.3.280.0060.00916.43
7.3.270.0090.00616.43
7.3.260.0110.00516.42
7.3.250.0120.00516.51
7.3.240.0130.00516.49
7.3.230.0160.00216.50
7.3.220.0170.00316.37
7.3.210.0060.01516.49
7.3.200.0100.00716.38
7.3.190.0110.00716.33
7.3.180.0140.00316.42
7.3.170.0130.00616.45
7.3.160.0060.01116.38
7.3.150.0070.01016.40
7.3.140.0140.00416.48
7.3.130.0150.00416.45
7.3.120.0110.00716.30
7.3.110.0120.00816.34
7.3.100.0120.00516.32
7.3.90.0060.01116.41
7.3.80.0100.00616.49
7.3.70.0110.00516.44
7.3.60.0090.01016.41
7.3.50.0080.00916.36
7.3.40.0090.00616.43
7.3.30.0120.00716.39
7.3.20.0140.01116.43
7.3.10.0110.00616.49
7.3.00.0140.00616.36

preferences:
27.03 ms | 403 KiB | 5 Q