3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "one\ntwo\r\nthree\rfour\r\n\nfive"; var_export(preg_split('~\R~', $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.0110.01116.63
8.3.50.0140.00316.17
8.3.40.0140.00720.41
8.3.30.0120.00318.84
8.3.20.0080.00424.18
8.3.10.0030.00524.42
8.3.00.0040.00425.17
8.2.180.0110.01125.92
8.2.170.0170.00318.91
8.2.160.0100.00322.96
8.2.150.0040.00424.92
8.2.140.0040.00424.42
8.2.130.0050.00425.17
8.2.120.0030.00721.04
8.2.110.0040.00422.38
8.2.100.0060.00421.08
8.2.90.0050.00321.63
8.2.80.0070.00121.08
8.2.70.0060.00320.84
8.2.60.0040.00420.99
8.2.50.0020.00621.14
8.2.40.0000.00820.98
8.2.30.0020.00621.70
8.2.20.0040.00421.13
8.2.10.0030.00621.63
8.2.00.0010.00621.75
8.1.280.0110.00425.92
8.1.270.0050.00324.42
8.1.260.0040.00425.27
8.1.250.0060.00226.13
8.1.240.0090.00023.89
8.1.230.0020.00824.04
8.1.220.0020.00620.96
8.1.210.0030.00521.48
8.1.200.0030.00620.77
8.1.190.0040.00420.71
8.1.180.0010.00721.14
8.1.170.0060.00221.42
8.1.160.0060.00221.63
8.1.150.0060.00121.58
8.1.140.0020.00621.47
8.1.130.0030.00420.81
8.1.120.0070.00320.13
8.1.110.0060.00320.13
8.1.100.0070.00419.90
8.1.90.0040.00719.47
8.1.80.0080.00219.49
8.1.70.0080.00419.49
8.1.60.0060.00419.55
8.1.50.0040.00619.53
8.1.40.0030.00719.52
8.1.30.0070.00420.05
8.1.20.0060.00420.04
8.1.10.0060.00419.49
8.1.00.0060.00519.48
8.0.300.0050.00321.48
8.0.290.0020.00920.47
8.0.280.0020.00721.26
8.0.270.0040.00420.58
8.0.260.0060.00420.54
8.0.250.0070.00219.72
8.0.240.0030.00919.73
8.0.230.0070.00419.07
8.0.220.0100.00318.98
8.0.210.0070.00619.03
8.0.200.0070.00418.70
8.0.190.0070.00519.08
8.0.180.0060.00619.08
8.0.170.0080.00519.04
8.0.160.0040.00519.49
8.0.150.0100.00319.49
8.0.140.0090.00418.93
8.0.130.0070.00518.16
8.0.120.0040.00919.05
8.0.110.0070.00419.03
8.0.100.0100.00319.10
8.0.90.0090.00519.05
8.0.80.0090.00518.64
8.0.70.0080.00518.97
8.0.60.0060.00718.99
8.0.50.0120.00319.00
8.0.30.0090.00618.70
8.0.20.0120.00418.43
8.0.10.0100.00719.04
8.0.00.0100.00519.04
7.4.330.0030.00318.00
7.4.320.0050.00819.58
7.4.300.0100.00518.79
7.4.290.0110.00418.76
7.4.280.0090.00518.76
7.4.270.0090.00418.80
7.4.260.0110.00318.04
7.4.250.0100.00418.80
7.4.240.0080.00818.78
7.4.230.0120.00218.78
7.4.220.0070.00518.38
7.4.210.0080.00717.90
7.4.200.0110.00318.75
7.4.190.0080.00619.53
7.4.180.0080.00719.57
7.4.160.0100.00618.92
7.4.150.0090.00618.81
7.4.140.0110.00518.87
7.4.130.0100.00717.98
7.4.120.0110.00518.36
7.4.110.0050.01018.32
7.4.100.0120.00518.35
7.4.90.0100.00718.31
7.4.80.0070.01118.28
7.4.70.0100.00618.30
7.4.60.0120.00418.23
7.4.50.0100.00518.24
7.4.40.0080.00818.23
7.4.30.0130.00318.18
7.4.20.0100.00618.29
7.4.10.0080.00718.24
7.4.00.0080.00618.31
7.3.330.0100.00418.52
7.3.320.0100.00217.77
7.3.310.0120.00118.55
7.3.300.0070.00618.49
7.3.290.0100.00617.79
7.3.280.0120.00419.25
7.3.270.0130.00518.61
7.3.260.0150.00518.17
7.3.250.0140.00418.62
7.3.240.0120.00418.51
7.3.230.0120.00418.17
7.3.220.0130.00418.13
7.3.210.0150.00418.13
7.3.200.0110.00518.03
7.3.190.0110.00518.11
7.3.180.0120.00518.11
7.3.170.0090.00618.14
7.3.160.0090.00618.15
7.3.150.0130.00318.14
7.3.140.0080.00818.18
7.3.130.0090.00718.13
7.3.120.0110.00518.07
7.3.110.0120.00418.01
7.3.100.0110.00518.14
7.3.90.0090.00818.28
7.3.80.0120.00518.08
7.3.70.0110.00418.13
7.3.60.0110.00518.13
7.3.50.0090.00618.12
7.3.40.0090.00718.11
7.3.30.0080.00818.11
7.3.20.0120.00718.89
7.3.10.0130.00518.93
7.3.00.0120.00618.89
7.2.340.0130.00618.69
7.2.330.0130.00518.25
7.2.320.0120.00618.26
7.2.310.0120.00618.14
7.2.300.0130.00518.30
7.2.290.0150.00618.28
7.2.280.0130.00618.22
7.2.270.0110.00818.23
7.2.260.0140.00518.26
7.2.250.0120.00618.26
7.2.240.0130.00518.22
7.2.230.0120.00518.23
7.2.220.0110.00718.22
7.2.210.0110.00718.21
7.2.200.0110.00818.22
7.2.190.0140.00418.27
7.2.180.0120.00618.19
7.2.170.0090.01018.28
7.2.160.0130.00718.26
7.2.150.0180.00319.04
7.2.140.0150.00419.00
7.2.130.0140.00519.05
7.2.120.0150.00319.00
7.2.110.0160.00419.00
7.2.100.0130.00619.01
7.2.90.0140.00718.99
7.2.80.0110.00819.02
7.2.70.0130.00619.01
7.2.60.0130.00819.00
7.2.50.0120.00819.02
7.2.40.0140.00619.10
7.2.30.0240.00419.07
7.2.20.0160.00419.09
7.2.10.0150.00919.07
7.2.00.0140.00719.12

preferences:
43.34 ms | 400 KiB | 5 Q