3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 160; $charset = 'UTF-8//IGNORE'; $string = "I haven't felt much of anything since my guinea pig died. I didn't ask for a completely reasonable excuse! I asked you to get busy! Daylight and everything. You guys realize you live in a sewer, right? It's a T. It goes tuh. Yeah, lots of people did. You're going back for the Countess, aren't you? Guess again. THE BIG BRAIN AM WINNING AGAIN! I AM THE GREETEST! NOW I AM LEAVING EARTH, FOR NO RAISEN! Leela, Bender, we're going grave robbing. Humans dating robots is sick. You people wonder why I'm still single? It's 'cause all the fine robot sisters are dating humans!"; $substring = iconv_substr($string, 0, $limit, $charset); $result = iconv_substr($substring, 0, iconv_strrpos($substring, ' ', $charset), $charset) . '&hellip'; var_dump($result);

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.0090.00616.63
8.3.50.0040.01116.13
8.3.40.0100.00618.35
8.3.30.0140.00418.43
8.3.20.0080.00020.19
8.3.10.0000.00923.50
8.3.00.0030.00519.56
8.2.180.0120.00318.18
8.2.170.0070.01022.96
8.2.160.0100.00619.09
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0080.00019.33
8.2.120.0040.00426.16
8.2.110.0060.00321.12
8.2.100.0060.00617.78
8.2.90.0060.00319.23
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00017.91
8.2.50.0080.00018.10
8.2.40.0040.00420.46
8.2.30.0000.00719.13
8.2.20.0080.00017.93
8.2.10.0050.00317.95
8.2.00.0070.00017.94
8.1.280.0130.00825.92
8.1.270.0000.00922.14
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00321.31
8.1.230.0040.00819.16
8.1.220.0060.00617.78
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00518.96
8.1.160.0040.00419.03
8.1.150.0000.00820.56
8.1.140.0000.01319.44
8.1.130.0090.00018.95
8.1.120.0050.00217.52
8.1.110.0040.00417.31
8.1.100.0040.00417.38
8.1.90.0040.00417.48
8.1.80.0000.00717.54
8.1.70.0080.00017.48
8.1.60.0000.01017.48
8.1.50.0040.00417.59
8.1.40.0070.00317.52
8.1.30.0000.00817.67
8.1.20.0040.00417.65
8.1.10.0000.00817.48
8.1.00.0080.00017.38
8.0.300.0050.00319.88
8.0.290.0050.00316.63
8.0.280.0000.00818.39
8.0.270.0000.00717.35
8.0.260.0030.00616.77
8.0.250.0070.00016.96
8.0.240.0050.00316.91
8.0.230.0040.00416.98
8.0.220.0000.00816.93
8.0.210.0000.00816.91
8.0.200.0070.00016.82
8.0.190.0030.00616.84
8.0.180.0050.00316.91
8.0.170.0030.00516.96
8.0.160.0000.00716.91
8.0.150.0000.00716.82
8.0.140.0000.00716.75
8.0.130.0030.00313.34
8.0.120.0100.00017.00
8.0.110.0030.00717.05
8.0.100.0000.00916.91
8.0.90.0030.00616.97
8.0.80.0130.00717.00
8.0.70.0060.00317.08
8.0.60.0030.00617.03
8.0.50.0000.00916.92
8.0.30.0110.01117.17
8.0.20.0090.01417.40
8.0.10.0030.00617.12
8.0.00.0080.01217.00
7.4.330.0030.00315.55
7.4.320.0000.00716.42
7.4.300.0000.00716.59
7.4.290.0040.00416.37
7.4.280.0000.00816.30
7.4.270.0070.00016.56
7.4.260.0020.00516.58
7.4.250.0050.00516.58
7.4.240.0000.00916.61
7.4.230.0030.00616.69
7.4.220.0190.01216.71
7.4.210.0070.01116.72
7.4.200.0030.00616.79
7.4.160.0090.01416.56
7.4.150.0110.01817.40
7.4.140.0110.01117.86
7.4.130.0080.01316.71
7.4.120.0080.01516.63
7.4.110.0100.01016.58
7.4.100.0160.00916.68
7.4.90.0190.00616.45
7.4.80.0060.01619.39
7.4.70.0040.01616.49
7.4.60.0030.01516.43
7.4.50.0070.00916.54
7.4.40.0070.02016.57
7.4.30.0080.01116.70
7.4.10.0060.01314.95
7.4.00.0100.01014.89
7.3.330.0020.00212.99
7.3.320.0050.00013.09
7.3.310.0030.00616.25
7.3.300.0060.00316.25
7.3.290.0040.01416.38
7.3.280.0090.01116.36
7.3.270.0080.01617.40
7.3.260.0120.01216.48
7.3.250.0100.01016.49
7.3.240.0120.01316.31
7.3.230.0060.01616.49
7.3.210.0100.01316.39
7.3.200.0080.01216.31
7.3.190.0120.00916.46
7.3.180.0000.01916.23
7.3.170.0140.00516.63
7.3.160.0090.00916.39
7.3.130.0130.01015.11
7.3.120.0100.01014.79
7.3.110.0030.01515.07
7.3.100.0070.01015.02
7.3.90.0100.00715.08
7.3.80.0000.01414.63
7.3.70.0030.01214.91
7.3.60.0040.01014.92
7.3.50.0060.00914.91
7.3.40.0030.00915.01
7.3.30.0050.01014.77
7.3.20.0060.00916.86
7.3.10.0030.01516.57
7.3.00.0060.00916.74
7.2.330.0160.00316.82
7.2.320.0060.01916.82
7.2.310.0070.01116.45
7.2.300.0100.01416.71
7.2.290.0060.01716.50
7.2.260.0030.01615.22
7.2.250.0100.01115.11
7.2.240.0070.01315.04
7.2.230.0080.00615.01
7.2.220.0050.00915.15
7.2.210.0080.00814.97
7.2.200.0090.00815.06
7.2.190.0060.00715.04
7.2.180.0060.00815.03
7.2.170.0050.00914.90
7.2.160.0100.00714.94
7.2.150.0000.01116.95
7.2.140.0080.00816.98
7.2.130.0110.00416.96
7.2.120.0040.01417.05
7.2.110.0030.01316.61
7.2.100.0030.01017.08
7.2.90.0030.01316.86
7.2.80.0040.01116.94
7.2.70.0000.01617.08
7.2.60.0080.00817.02
7.2.50.0070.01016.68
7.2.40.0040.00816.94
7.2.30.0090.00316.78
7.2.20.0060.01216.93
7.2.10.0040.01116.93
7.2.00.0030.01318.07
7.1.330.0080.00815.81
7.1.320.0110.00815.81
7.1.310.0030.00715.94
7.1.300.0070.00715.69
7.1.290.0110.00515.81
7.1.280.0060.00915.80
7.1.270.0020.01315.75
7.1.260.0030.01015.82
7.1.250.0030.00915.84
7.1.240.0040.01415.61
7.1.230.0060.01215.75
7.1.220.0120.00315.70
7.1.210.0030.00915.75
7.1.200.0080.00615.86
7.1.190.0040.01115.95
7.1.180.0110.00715.82
7.1.170.0070.00315.72
7.1.160.0120.00615.86
7.1.150.0040.00715.79
7.1.140.0030.00715.81
7.1.130.0060.00915.79
7.1.120.0000.01815.91
7.1.110.0070.01115.78
7.1.100.0060.00817.05
7.1.90.0030.01715.98
7.1.80.0060.01215.43
7.1.70.0110.00516.62
7.1.60.0110.01625.58
7.1.50.0160.01025.51
7.1.40.0180.00824.90
7.1.30.0070.02125.24
7.1.20.0170.01125.21
7.1.10.0050.01116.21
7.1.00.0100.00916.31
7.0.330.0070.00715.47
7.0.320.0040.00815.07
7.0.310.0000.01415.43
7.0.300.0040.01515.30
7.0.290.0070.01015.16
7.0.280.0100.00315.39
7.0.270.0040.00815.59
7.0.260.0000.01515.45
7.0.250.0110.00715.45
7.0.240.0040.01215.53
7.0.230.0090.00615.41
7.0.220.0090.01015.68
7.0.210.0070.01515.40
7.0.200.0060.01016.25
7.0.190.0020.01415.95
7.0.180.0040.01315.99
7.0.170.0070.01015.95
7.0.160.0060.01215.96
7.0.150.0050.01315.90
7.0.140.0100.00915.89
7.0.130.0080.01316.00
7.0.120.0080.00915.92
7.0.110.0030.01516.02
7.0.100.0050.01316.14
7.0.90.0060.01315.83
7.0.80.0040.01316.11
7.0.70.0050.01015.91
7.0.60.0020.01315.76
7.0.50.0060.01116.14
7.0.40.0090.00915.11
7.0.30.0040.01414.97
7.0.20.0070.01114.94
7.0.10.0030.01514.99
7.0.00.0060.01215.14
5.6.400.0040.01114.27
5.6.390.0100.00714.34
5.6.380.0000.01314.52
5.6.370.0070.00714.32
5.6.360.0000.01114.00
5.6.350.0040.01113.96
5.6.340.0060.00914.56
5.6.330.0110.00714.04
5.6.320.0070.00714.21
5.6.310.0040.01814.39
5.6.300.0090.00914.39
5.6.290.0040.01214.35
5.6.280.0030.01214.29
5.6.270.0060.01314.11
5.6.260.0080.00814.38
5.6.250.0070.00714.59
5.6.240.0090.00614.46
5.6.230.0120.00214.43
5.6.220.0030.01014.10
5.6.210.0070.00314.28
5.6.200.0070.01014.27
5.6.190.0060.01214.50
5.6.180.0100.00014.38
5.6.170.0030.00914.44
5.6.160.0060.00614.56
5.6.150.0140.00014.62
5.6.140.0000.01714.62
5.6.130.0000.01014.35
5.6.120.0070.00414.59
5.6.110.0120.00414.25
5.6.100.0060.00914.54
5.6.90.0030.00714.23
5.6.80.0070.01014.40
5.6.70.0100.00614.23
5.6.60.0030.00714.24
5.6.50.0030.00914.20
5.6.40.0060.01014.20
5.6.30.0070.01114.24
5.6.20.0030.01314.24
5.6.10.0100.00714.20
5.6.00.0090.00614.23

preferences:
58.58 ms | 401 KiB | 5 Q