3v4l.org

run code in 300+ PHP versions simultaneously
<?php function readLogs($rows = 5) { $contents = "Hey how are you\nI'm good how are you\nGood nice to meet you\nWhat are you doing?\nNothing much, you?"; $rows = explode('\n', $contents); $rows_len = count($rows); echo $rows; }

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.0120.00318.18
8.3.50.0100.00821.99
8.3.40.0000.01418.71
8.3.30.0080.00618.83
8.3.20.0040.00420.10
8.3.10.0030.00521.78
8.3.00.0060.00319.25
8.2.180.0100.00718.29
8.2.170.0030.01022.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.11
8.2.110.0060.00319.31
8.2.100.0080.00417.38
8.2.90.0000.00819.10
8.2.80.0050.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00417.77
8.2.50.0000.00818.07
8.2.40.0060.00319.82
8.2.30.0000.00717.79
8.2.20.0040.00417.53
8.2.10.0000.00717.80
8.2.00.0000.00717.55
8.1.280.0000.01525.92
8.1.270.0060.00318.74
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.24
8.1.230.0060.00617.42
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0080.00021.94
8.1.150.0080.00018.70
8.1.140.0040.00417.31
8.1.130.0070.00017.67
8.1.120.0070.00017.34
8.1.110.0000.00917.21
8.1.100.0030.00317.36
8.1.90.0040.00417.30
8.1.80.0040.00417.22
8.1.70.0000.00717.29
8.1.60.0030.00917.36
8.1.50.0040.00417.36
8.1.40.0030.00517.26
8.1.30.0040.00417.54
8.1.20.0000.00717.46
8.1.10.0000.00817.33
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0000.00718.24
8.0.270.0030.00317.23
8.0.260.0000.00717.04
8.0.250.0030.00316.77
8.0.240.0000.00716.69
8.0.230.0000.00716.81
8.0.220.0000.00716.77
8.0.210.0000.00716.81
8.0.200.0000.00716.80
8.0.190.0050.00316.72
8.0.180.0070.00016.78
8.0.170.0060.00316.71
8.0.160.0000.00816.80
8.0.150.0000.00716.59
8.0.140.0000.00816.60
8.0.130.0050.00013.18
8.0.120.0050.00316.62
8.0.110.0040.00416.65
8.0.100.0000.00716.55
8.0.90.0070.00016.82
8.0.80.0160.00316.71
8.0.70.0000.00816.64
8.0.60.0050.00216.64
8.0.50.0070.00016.86
8.0.30.0110.01017.04
8.0.20.0100.01017.40
8.0.10.0050.00216.92
8.0.00.0080.01016.77
7.4.330.0050.00015.03
7.4.320.0000.00716.38
7.4.300.0000.00616.36
7.4.290.0030.00316.36
7.4.280.0040.00316.36
7.4.270.0070.00016.47
7.4.260.0070.00016.35
7.4.250.0030.00516.51
7.4.240.0040.00416.45
7.4.230.0030.00316.20
7.4.220.0130.01316.43
7.4.210.0070.01416.44
7.4.200.0050.00316.39
7.4.160.0120.00316.36
7.4.150.0150.00317.40
7.4.140.0120.00917.86
7.4.130.0060.01116.39
7.4.120.0070.01016.30
7.4.110.0060.01216.48
7.4.100.0070.01016.22
7.4.90.0160.00416.16
7.4.80.0100.00719.39
7.4.70.0070.01016.43
7.4.60.0090.00616.43
7.4.50.0070.00016.40
7.4.40.0130.00316.27
7.4.30.0030.01416.15
7.4.00.0110.00414.93
7.3.330.0000.00513.00
7.3.320.0040.00813.25
7.3.310.0030.00316.17
7.3.300.0030.00316.09
7.3.290.0070.00716.18
7.3.280.0070.00916.15
7.3.270.0070.01417.40
7.3.260.0060.01016.15
7.3.250.0090.01216.29
7.3.240.0070.01416.53
7.3.230.0180.00016.39
7.3.210.0090.00916.39
7.3.200.0130.00319.39
7.3.190.0060.01016.09
7.3.180.0090.00616.54
7.3.170.0130.01016.27
7.3.160.0080.00816.31
7.2.330.0140.00416.57
7.2.320.0030.01316.30
7.2.310.0090.00916.28
7.2.300.0090.00916.40
7.2.290.0160.00616.49
7.2.00.0060.01018.84
7.1.100.0080.00817.94
7.1.70.0000.00716.84
7.1.60.0100.01319.50
7.1.50.0090.00916.80
7.1.00.0100.07022.46
7.0.200.0160.00316.37
7.0.140.0070.07322.18
7.0.60.0070.06019.78
7.0.50.0200.05317.96
7.0.40.0070.04020.23
7.0.30.0300.05720.20
7.0.20.0370.07320.02
7.0.10.0270.08320.30
7.0.00.0070.06720.05
5.6.280.0030.07021.15
5.6.210.0100.07320.69
5.6.200.0170.07018.17
5.6.190.0070.04320.49
5.6.180.0230.06720.53
5.6.170.0300.07720.56
5.6.160.0030.08720.46
5.6.150.0070.08318.28
5.6.140.0130.07718.28
5.6.130.0030.06718.23
5.6.120.0030.04321.04
5.6.110.0030.08721.00
5.6.100.0030.08720.96
5.6.90.0170.07021.11
5.6.80.0000.04320.49
5.6.70.0230.07320.54
5.5.350.0300.02320.48
5.5.340.0070.04318.03
5.5.330.0130.07720.40
5.5.320.0070.07320.38
5.5.310.0200.07720.30
5.5.300.0030.04017.94
5.5.290.0100.06317.93
5.5.280.0070.08720.85
5.5.270.0070.07020.77
5.5.260.0100.05320.77
5.5.250.0070.09020.53
5.5.240.0030.07020.28
5.4.450.0230.03719.55
5.4.440.0200.04319.55
5.4.430.0100.04719.64
5.4.420.0170.05019.56
5.4.410.0200.04019.19
5.4.400.0270.04318.99
5.4.390.0270.07019.05
5.4.380.0330.05018.98
5.4.370.0400.06018.99
5.4.360.0330.06719.15
5.4.350.0300.04019.24
5.4.340.0230.04319.15
5.4.320.0330.04319.23
5.4.310.0300.07019.31
5.4.300.0330.07019.12
5.4.290.0270.07318.98
5.4.280.0230.06319.08
5.4.270.0300.06318.98
5.4.260.0300.07318.89
5.4.250.0230.06319.21
5.4.240.0300.08019.21
5.4.230.0430.05719.23
5.4.220.0270.06319.14
5.4.210.0300.07019.04
5.4.200.0300.06719.34
5.4.190.0270.07719.18
5.4.180.0270.07019.07
5.4.170.0330.04719.23
5.4.160.0330.06719.20
5.4.150.0270.07319.07
5.4.140.0300.06016.45
5.4.130.0300.06016.51
5.4.120.0270.04016.55
5.4.110.0200.05316.56
5.4.100.0370.06716.54
5.4.90.0230.06716.19
5.4.80.0300.06716.54
5.4.70.0400.03316.52
5.4.60.0270.04016.39
5.4.50.0230.05316.51
5.4.40.0300.07016.44
5.4.30.0300.04316.34
5.4.20.0230.05716.42
5.4.10.0370.06316.38
5.4.00.0300.06315.79
5.3.290.0370.06314.67
5.3.280.0270.04014.64
5.3.270.0270.04014.68
5.3.260.0200.04314.50
5.3.250.0370.06314.61
5.3.240.0370.06314.53
5.3.230.0230.05014.59
5.3.220.0270.06714.54
5.3.210.0300.07014.66
5.3.200.0230.04014.65
5.3.190.0300.07314.72
5.3.180.0270.07314.68
5.3.170.0330.06714.54
5.3.160.0300.06314.58
5.3.150.0330.03314.57
5.3.140.0230.04314.66
5.3.130.0330.04014.46
5.3.120.0230.05014.66
5.3.110.0270.06714.46
5.3.100.0230.05314.01
5.3.90.0200.04014.14
5.3.80.0300.03714.06
5.3.70.0300.06713.92
5.3.60.0300.05314.16
5.3.50.0330.05014.02
5.3.40.0300.05714.10
5.3.30.0300.04313.99
5.3.20.0500.05013.61
5.3.10.0300.04713.58
5.3.00.0270.07313.53
5.2.170.0270.05712.26
5.2.160.0300.03712.26
5.2.150.0270.05712.26
5.2.140.0270.06012.26
5.2.130.0200.04012.26
5.2.120.0200.05712.26
5.2.110.0230.06012.26
5.2.100.0300.04712.26
5.2.90.0200.06312.26
5.2.80.0270.04712.26
5.2.70.0230.03712.26
5.2.60.0200.05012.26
5.2.50.0230.05712.26
5.2.40.0270.05712.26
5.2.30.0170.04712.26
5.2.20.0200.04012.26
5.2.10.0270.04312.26
5.2.00.0230.03012.26
5.1.60.0270.04712.26
5.1.50.0200.05012.26
5.1.40.0270.04312.26
5.1.30.0230.05012.26
5.1.20.0270.03312.26
5.1.10.0200.03712.26
5.1.00.0270.04312.26
5.0.50.0130.04312.26
5.0.40.0070.02712.26
5.0.30.0170.05712.26
5.0.20.0100.04312.26
5.0.10.0100.02712.26
5.0.00.0070.06712.26
4.4.90.0130.03012.26
4.4.80.0170.03012.26
4.4.70.0130.03312.26
4.4.60.0100.03312.26
4.4.50.0130.03312.26
4.4.40.0130.05012.26
4.4.30.0130.02712.26
4.4.20.0200.01012.26
4.4.10.0070.02012.26
4.4.00.0100.05312.26
4.3.110.0130.03312.26
4.3.100.0100.03312.26
4.3.90.0100.02012.26
4.3.80.0070.05012.26
4.3.70.0100.03012.26
4.3.60.0130.03012.26
4.3.50.0070.02712.26
4.3.40.0100.05312.26
4.3.30.0030.02312.26
4.3.20.0070.01712.26
4.3.10.0030.02012.26
4.3.00.0100.03012.26

preferences:
37.03 ms | 401 KiB | 5 Q