3v4l.org

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

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.0100.01016.50
8.3.50.0000.01417.92
8.3.40.0050.00918.57
8.3.30.0120.00618.98
8.3.20.0040.00420.13
8.3.10.0050.00221.60
8.3.00.0040.00419.26
8.2.180.0100.01017.93
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.23
8.2.110.0060.00319.25
8.2.100.0120.00017.50
8.2.90.0090.00019.23
8.2.80.0000.00917.97
8.2.70.0070.00317.25
8.2.60.0080.00017.93
8.2.50.0000.01218.07
8.2.40.0030.00519.88
8.2.30.0040.00417.98
8.2.20.0040.00417.61
8.2.10.0080.00018.02
8.2.00.0070.00017.64
8.1.280.0140.00725.92
8.1.270.0060.00318.74
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.02
8.1.230.0000.01117.66
8.1.220.0080.00017.77
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0060.00320.34
8.1.160.0000.00722.03
8.1.150.0000.00718.80
8.1.140.0070.00017.44
8.1.130.0000.00717.74
8.1.120.0030.00317.36
8.1.110.0000.00817.34
8.1.100.0000.00817.36
8.1.90.0000.00717.47
8.1.80.0040.00417.46
8.1.70.0030.00317.44
8.1.60.0110.00017.59
8.1.50.0040.00417.54
8.1.40.0030.00617.52
8.1.30.0040.00417.68
8.1.20.0000.00717.52
8.1.10.0000.00717.32
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0040.00417.20
8.0.260.0030.00317.08
8.0.250.0070.00016.79
8.0.240.0030.00316.84
8.0.230.0000.00716.88
8.0.220.0000.00716.86
8.0.210.0040.00416.82
8.0.200.0030.00316.89
8.0.190.0000.00716.87
8.0.180.0030.00316.89
8.0.170.0040.00416.92
8.0.160.0030.00516.98
8.0.150.0050.00216.76
8.0.140.0000.00716.86
8.0.130.0000.00513.31
8.0.120.0030.00616.87
8.0.110.0000.00716.93
8.0.100.0000.00716.95
8.0.90.0070.00016.70
8.0.80.0150.00016.83
8.0.70.0040.00416.93
8.0.60.0070.00016.79
8.0.50.0000.00716.87
8.0.30.0070.01116.97
8.0.20.0120.00817.40
8.0.10.0000.00717.06
8.0.00.0120.00616.61
7.4.330.0020.00215.07
7.4.320.0000.00716.64
7.4.300.0000.00616.45
7.4.290.0000.00716.55
7.4.280.0070.00016.60
7.4.270.0000.00716.43
7.4.260.0040.00416.44
7.4.250.0040.00416.35
7.4.240.0020.00516.50
7.4.230.0030.00316.55
7.4.220.0030.01716.64
7.4.210.0100.01016.63
7.4.200.0030.00616.30
7.4.160.0070.00716.54
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0130.00516.52
7.4.120.0090.00916.44
7.4.110.0150.00316.49
7.4.100.0090.01016.36
7.4.90.0090.00916.48
7.4.80.0140.00419.39
7.4.70.0090.01216.64
7.4.60.0030.01316.41
7.4.50.0000.00416.41
7.4.40.0140.00416.59
7.4.30.0130.00616.48
7.4.00.0090.00714.89
7.3.330.0050.00013.27
7.3.320.0100.00513.27
7.3.310.0030.00416.32
7.3.300.0030.00316.17
7.3.290.0100.00716.28
7.3.280.0080.01016.31
7.3.270.0040.01517.40
7.3.260.0100.00716.48
7.3.250.0070.01116.21
7.3.240.0140.00616.43
7.3.230.0100.00716.62
7.3.210.0130.00616.36
7.3.200.0040.01219.39
7.3.190.0100.00616.52
7.3.180.0150.00016.23
7.3.170.0040.01416.58
7.3.160.0100.00616.25
7.3.120.0120.00414.44
7.3.110.0000.01814.66
7.3.100.0130.00314.50
7.3.90.0080.00815.04
7.3.80.0070.00714.73
7.3.70.0000.01114.60
7.3.60.0040.01114.84
7.3.50.0070.00714.48
7.3.40.0030.01314.69
7.3.30.0070.00614.84
7.3.20.0030.01016.63
7.3.10.0030.01016.50
7.3.00.0040.01116.50
7.2.330.0060.01216.73
7.2.320.0130.00416.45
7.2.310.0030.01316.64
7.2.300.0080.00816.61
7.2.290.0060.01716.31
7.2.250.0160.00315.05
7.2.240.0150.00614.60
7.2.230.0030.01314.86
7.2.220.0060.00614.80
7.2.210.0030.01414.95
7.2.200.0060.00615.16
7.2.190.0070.01014.82
7.2.180.0070.00714.95
7.2.170.0030.01015.01
7.2.00.0070.00719.23
7.1.330.0000.01515.80
7.1.320.0100.00315.47
7.1.310.0060.01015.65
7.1.300.0060.01015.54
7.1.290.0060.01015.84
7.1.280.0120.00315.73
7.1.270.0100.00315.76
7.1.260.0090.00915.67
7.1.200.0030.00515.82
7.1.100.0060.01018.34
7.1.70.0000.00717.24
7.1.60.0130.01019.50
7.1.50.0110.01416.79
7.1.00.0070.07322.33
7.0.200.0150.00216.55
7.0.140.0170.06022.09
7.0.60.0100.05720.00
7.0.50.0070.09017.88
7.0.40.0130.06320.25
7.0.30.0370.07320.20
7.0.20.0200.04720.26
7.0.10.0200.04720.39
7.0.00.0030.08320.07
5.6.280.0070.07020.93
5.6.210.0200.06720.77
5.6.200.0130.05718.19
5.6.190.0070.04320.35
5.6.180.0300.06320.51
5.6.170.0270.08020.45
5.6.160.0030.07320.71
5.6.150.0100.07018.18
5.6.140.0030.07018.15
5.6.130.0100.08018.24
5.6.120.0100.07021.09
5.6.110.0100.08020.97
5.6.100.0030.05721.02
5.6.90.0170.06021.09
5.6.80.0070.09020.40
5.6.70.0270.07720.43
5.5.350.0200.04020.32
5.5.340.0070.05717.95
5.5.330.0130.07320.35
5.5.320.0070.08320.22
5.5.310.0470.05020.38
5.5.300.0130.07717.95
5.5.290.0130.07317.98
5.5.280.0030.07020.75
5.5.270.0130.07320.84
5.5.260.0130.07720.89
5.5.250.0100.05320.66
5.5.240.0000.04020.23
5.4.450.0770.05319.48
5.4.440.0900.04719.53
5.4.430.1000.05719.44
5.4.420.0200.07019.36
5.4.410.0900.06319.29
5.4.400.0330.05318.74
5.4.390.0300.05318.51
5.4.380.0300.06718.61
5.4.370.0230.05718.59
5.4.360.0200.06318.47
5.4.350.0270.07018.56
5.4.340.0370.05018.79
5.4.320.0330.05318.69
5.4.310.0370.06018.63
5.4.300.0330.07018.63
5.4.290.0330.05018.79
5.4.280.0400.05718.49
5.4.270.0230.06018.83
5.4.260.0330.06318.52
5.4.250.0300.05318.71
5.4.240.0270.05718.74
5.4.230.0430.04018.73
5.4.220.0270.06018.49
5.4.210.0370.05318.82
5.4.200.0400.04716.59
5.4.190.0370.05018.51
5.4.180.0370.05018.54
5.4.170.0330.06018.77
5.4.160.0330.05318.82
5.4.150.0370.06018.72
5.4.140.0370.04316.31
5.4.130.0230.06016.29
5.4.120.0200.06316.25
5.4.110.0400.06716.19
5.4.100.0300.05716.27
5.4.90.0370.04716.23
5.4.80.0300.05016.17
5.4.70.0330.05716.17
5.4.60.0330.04716.32
5.4.50.0400.06316.21
5.4.40.0330.05016.18
5.4.30.0300.07316.28
5.4.20.0470.06016.16
5.4.10.0370.05316.39
5.4.00.0300.05715.87
5.3.290.0370.04714.65
5.3.280.0230.06314.82
5.3.270.0370.04714.64
5.3.260.0370.05314.66
5.3.250.0230.06014.60
5.3.240.0270.05314.65
5.3.230.0230.06014.80
5.3.220.0370.04714.79
5.3.210.0430.05014.56
5.3.200.0370.04714.61
5.3.190.0270.05714.67
5.3.180.0270.05714.70
5.3.170.0230.05714.69
5.3.160.0430.06014.56
5.3.150.0400.04014.56
5.3.140.0200.06014.68
5.3.130.0330.05014.57
5.3.120.0230.06314.52
5.3.110.0530.06014.75
5.3.100.0230.05314.20
5.3.90.0230.05014.16
5.3.80.0330.06714.05
5.3.70.0270.05314.06
5.3.60.0370.06314.02
5.3.50.0470.05314.16
5.3.40.0230.06314.16
5.3.30.0230.05713.93
5.3.20.0270.05713.76
5.3.10.0430.04713.64
5.3.00.0370.05713.66
5.2.170.0200.04711.17
5.2.160.0270.04311.20
5.2.150.0270.04711.24
5.2.140.0330.04311.28
5.2.130.0270.03711.32
5.2.120.0270.04711.20
5.2.110.0230.04311.12
5.2.100.0170.04311.22
5.2.90.0170.05011.15
5.2.80.0200.04711.22
5.2.70.0400.05011.14
5.2.60.0300.04711.16
5.2.50.0400.05311.24
5.2.40.0270.05311.05
5.2.30.0200.04311.17
5.2.20.0130.04310.95
5.2.10.0130.04310.93
5.2.00.0170.04310.75
5.1.60.0170.03310.13
5.1.50.0300.02010.12
5.1.40.0230.0309.96
5.1.30.0200.03310.39
5.1.20.0270.04710.39
5.1.10.0270.03310.09
5.1.00.0200.04710.11
5.0.50.0100.0338.73
5.0.40.0170.0238.43
5.0.30.0130.0478.41
5.0.20.0170.0278.24
5.0.10.0130.0308.36
5.0.00.0100.0578.20
4.4.90.0130.0207.11
4.4.80.0170.0277.11
4.4.70.0170.0237.11
4.4.60.0130.0307.11
4.4.50.0130.0207.11
4.4.40.0100.0407.11
4.4.30.0100.0237.11
4.4.20.0170.0177.11
4.4.10.0130.0207.11
4.4.00.0100.0377.11
4.3.110.0100.0237.11
4.3.100.0100.0237.11
4.3.90.0070.0337.11
4.3.80.0030.0437.11
4.3.70.0200.0137.11
4.3.60.0170.0177.11
4.3.50.0170.0207.11
4.3.40.0100.0377.11
4.3.30.0000.0307.11
4.3.20.0070.0207.11
4.3.10.0030.0307.11
4.3.00.0100.0236.79

preferences:
74.22 ms | 400 KiB | 5 Q