3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('mbstring.internal_encoding', 'UTF-8'); mb_regex_encoding('UTF-8'); var_dump(preg_split('|\B|', "abc")); var_dump(mb_split('\B', "abc"));

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.1.130.0070.00017.84
8.1.120.0000.00717.60
8.1.110.0040.00417.64
8.1.100.0040.00417.56
8.1.90.0040.00417.63
8.1.80.0050.00317.63
8.1.70.0040.00417.67
8.1.60.0040.00417.81
8.1.50.0090.00017.73
8.1.40.0000.00817.66
8.1.30.0040.00417.84
8.1.20.0000.00817.82
8.1.10.0000.00817.58
8.1.00.0040.00417.66
8.0.260.0040.00417.27
8.0.250.0030.00317.23
8.0.240.0030.00317.28
8.0.230.0040.00417.16
8.0.220.0000.00717.22
8.0.210.0000.00717.15
8.0.200.0030.00317.25
8.0.190.0070.00017.20
8.0.180.0040.00417.20
8.0.170.0040.00417.18
8.0.160.0030.00517.13
8.0.150.0050.00317.17
8.0.140.0040.00417.16
8.0.130.0030.00313.63
8.0.120.0050.00317.14
8.0.110.0030.00516.99
8.0.100.0050.00317.02
8.0.90.0030.00517.01
8.0.80.0060.00917.15
8.0.70.0040.00417.18
8.0.60.0000.00717.27
8.0.50.0000.00717.20
8.0.30.0070.01317.12
8.0.20.0070.02017.40
8.0.10.0030.00517.29
8.0.00.0180.00516.88
7.4.330.0000.00515.12
7.4.320.0070.00016.57
7.4.300.0030.00316.70
7.4.290.0030.00316.70
7.4.280.0060.00316.86
7.4.270.0070.00016.70
7.4.260.0000.00716.84
7.4.250.0000.00816.77
7.4.240.0060.00216.85
7.4.230.0070.00016.89
7.4.220.0030.01416.88
7.4.210.0080.00616.73
7.4.200.0060.00316.90
7.4.160.0060.00916.61
7.4.150.0160.00617.40
7.4.140.0110.00717.86
7.4.130.0040.01316.68
7.4.120.0080.01016.68
7.4.110.0100.01016.68
7.4.100.0080.00816.53
7.4.90.0100.00716.59
7.4.80.0040.01416.81
7.4.70.0090.01216.51
7.4.60.0060.01216.66
7.4.50.0090.00016.65
7.4.40.0220.00016.55
7.4.30.0180.00616.58
7.4.00.0140.00315.31
7.3.330.0030.00313.29
7.3.320.0070.00713.34
7.3.310.0000.00716.61
7.3.300.0060.00016.45
7.3.290.0090.00816.56
7.3.280.0090.00916.58
7.3.270.0120.00617.40
7.3.260.0040.01416.78
7.3.250.0090.01116.46
7.3.240.0080.00816.49
7.3.230.0110.00816.62
7.3.210.0110.00716.39
7.3.200.0140.00619.39
7.3.190.0130.00316.70
7.3.180.0030.01216.68
7.3.170.0090.00916.50
7.3.160.0070.01016.64
7.3.120.0060.01314.68
7.3.110.0040.01415.23
7.3.100.0070.01015.20
7.3.90.0080.00815.20
7.3.80.0080.00814.67
7.3.70.0000.01514.86
7.3.60.0030.00614.76
7.3.50.0050.00514.79
7.3.40.0030.00914.83
7.3.30.0000.00914.66
7.3.20.0000.01116.90
7.3.10.0070.00516.64
7.3.00.0080.00516.87
7.2.330.0170.01016.66
7.2.320.0090.00916.65
7.2.310.0180.00616.82
7.2.300.0030.01416.41
7.2.290.0120.01216.72
7.2.250.0080.00715.03
7.2.240.0030.01314.79
7.2.230.0060.00914.99
7.2.220.0000.01514.98
7.2.210.0030.00615.16
7.2.200.0030.01315.07
7.2.190.0000.00915.06
7.2.180.0030.00915.14
7.2.170.0060.00614.91
7.2.160.0030.01014.70
7.2.150.0030.01316.73
7.2.140.0050.00517.07
7.2.130.0070.00716.95
7.2.120.0060.00616.92
7.2.110.0070.00516.87
7.2.100.0060.00916.91
7.2.90.0080.00517.06
7.2.80.0080.00516.66
7.2.70.0020.01417.04
7.2.60.0040.01116.86
7.2.50.0100.00216.78
7.2.40.0060.00816.86
7.2.30.0050.00917.02
7.2.20.0050.00816.80
7.2.10.0070.00316.89
7.2.00.0070.00616.86
7.1.330.0060.01315.95
7.1.320.0040.00815.73
7.1.310.0040.00415.49
7.1.300.0000.01315.82
7.1.290.0080.00015.56
7.1.280.0110.00315.75
7.1.270.0000.00816.06
7.1.260.0000.01415.89
7.1.250.0080.00515.75
7.1.240.0040.01115.88
7.1.230.0070.01015.93
7.1.220.0030.00815.83
7.1.210.0120.00316.01
7.1.200.0050.00815.97
7.1.190.0040.00815.72
7.1.180.0040.01115.64
7.1.170.0000.01315.59
7.1.160.0090.00015.80
7.1.150.0030.00915.62
7.1.140.0040.00815.93
7.1.130.0120.00315.95
7.1.120.0070.00715.47
7.1.110.0070.00715.68
7.1.100.0100.00116.86
7.1.90.0000.00916.02
7.1.80.0120.00015.85
7.1.70.0030.00816.58
7.1.60.0040.01017.68
7.1.50.0070.00716.45
7.1.40.0030.01015.93
7.1.30.0120.00015.79
7.1.20.0070.00415.65
7.1.10.0030.01315.88
7.1.00.0030.04019.20
7.0.330.0030.01015.44
7.0.320.0060.00615.43
7.0.310.0040.01115.50
7.0.300.0000.01515.28
7.0.290.0060.00615.30
7.0.280.0030.01515.57
7.0.270.0030.01015.57
7.0.260.0000.00815.36
7.0.250.0040.01115.47
7.0.240.0000.01515.64
7.0.230.0030.00615.51
7.0.220.0080.00415.41
7.0.210.0050.00515.39
7.0.200.0050.00615.97
7.0.190.0000.01415.27
7.0.180.0060.00615.21
7.0.170.0080.00315.43
7.0.160.0040.00415.29
7.0.150.0030.01015.45
7.0.140.0020.02318.81
7.0.130.0040.00415.60
7.0.120.0030.00915.41
7.0.110.0060.00315.58
7.0.100.0130.00015.39
7.0.90.0050.00515.47
7.0.80.0030.01015.44
7.0.70.0070.00715.46
7.0.60.0080.04317.77
7.0.50.0070.02316.77
7.0.40.0110.03816.82
7.0.30.0130.02816.93
7.0.20.0240.02116.71
7.0.10.0020.02616.95
7.0.00.0060.03116.70
5.6.400.0040.01413.95
5.6.390.0070.00714.38
5.6.380.0090.00313.98
5.6.370.0000.01514.11
5.6.360.0000.01414.30
5.6.350.0120.00314.21
5.6.340.0060.00314.16
5.6.330.0040.01114.48
5.6.320.0100.00314.59
5.6.310.0140.00014.17
5.6.300.0110.00313.93
5.6.290.0030.00613.97
5.6.280.0030.00914.29
5.6.270.0060.00613.98
5.6.260.0040.01114.20
5.6.250.0110.00314.35
5.6.240.0070.00414.47
5.6.230.0040.01414.05
5.6.220.0050.00514.33
5.6.210.0070.04317.46
5.6.200.0050.04916.29
5.6.190.0070.04517.27
5.6.180.0230.03517.32
5.6.170.0150.02517.26
5.6.160.0160.03617.35
5.6.150.0060.03016.05
5.6.140.0050.04616.11
5.6.130.0110.02816.23
5.6.120.0080.03617.71
5.6.110.0080.04117.59
5.6.100.0100.04217.57
5.6.90.0050.04717.53
5.6.80.0090.01817.16
5.6.70.0110.00313.99
5.6.60.0000.01414.11
5.6.50.0100.00013.91
5.6.40.0060.00714.02
5.6.30.0110.00014.28
5.6.20.0070.00714.42
5.6.10.0110.00413.95
5.6.00.0080.00414.00
5.5.380.0000.01414.32
5.5.370.0060.00914.22
5.5.360.0070.00713.95
5.5.350.0160.01517.28
5.5.340.0090.02315.94
5.5.330.0110.03817.19
5.5.320.0170.04017.26
5.5.310.0180.04017.28
5.5.300.0040.02816.14
5.5.290.0080.04116.12
5.5.280.0020.02817.42
5.5.270.0150.03817.55
5.5.260.0090.03917.29
5.5.250.0080.02017.34
5.5.240.0080.02816.92
5.5.230.0090.00614.24
5.5.220.0070.00713.93
5.5.210.0050.00513.79
5.5.200.0100.00313.74
5.5.190.0030.00914.05
5.5.180.0040.01114.16
5.5.170.0080.00814.08
5.5.160.0100.00313.95
5.5.150.0000.01414.02
5.5.140.0080.00613.86
5.5.130.0060.00613.90
5.5.120.0100.00714.09
5.5.110.0060.00613.95
5.5.100.0070.00713.93
5.5.90.0070.00714.00
5.5.80.0110.00614.14
5.5.70.0100.00314.18
5.5.60.0070.00714.04
5.5.50.0070.00713.85
5.5.40.0060.00613.82
5.5.30.0100.00313.97
5.5.20.0070.00714.04
5.5.10.0130.00314.00
5.5.00.0120.00314.09
5.4.450.0300.03215.82
5.4.440.0410.03715.74
5.4.430.0470.03015.81
5.4.420.0630.02315.82
5.4.410.0570.04115.83
5.4.400.0470.03115.66
5.4.390.0460.02815.44
5.4.380.0450.03215.40
5.4.370.0570.03315.44
5.4.360.0470.03115.38
5.4.350.0670.03515.32
5.4.340.0530.02915.40
5.4.330.0040.00412.16
5.4.320.0450.03215.29
5.4.310.0450.03315.38
5.4.300.0520.02815.37
5.4.290.0480.02715.44
5.4.280.0480.02915.49
5.4.270.0490.03715.29
5.4.260.0520.02815.32
5.4.250.0490.03215.32
5.4.240.0420.03615.32
5.4.230.0530.02915.32
5.4.220.0470.03015.41
5.4.210.0480.03615.38
5.4.200.0530.02314.34
5.4.190.0590.02515.42
5.4.180.0520.03215.43
5.4.170.0620.03715.31
5.4.160.0620.02515.45
5.4.150.0530.03215.29
5.4.140.0480.03914.26
5.4.130.0470.02814.11
5.4.120.0550.02114.16
5.4.110.0500.02614.19
5.4.100.0450.02814.15
5.4.90.0520.03714.11
5.4.80.0510.03014.19
5.4.70.0530.04214.17
5.4.60.0520.02914.19
5.4.50.0450.02814.25
5.4.40.0480.03214.08
5.4.30.0500.03114.19
5.4.20.0480.03114.20
5.4.10.0460.02914.15
5.4.00.0550.03313.88
5.3.290.1000.06014.64
5.3.280.1030.05714.63
5.3.270.0900.05014.50
5.3.260.0970.06714.59
5.3.250.0900.06014.51
5.3.240.0970.05314.60
5.3.230.0970.05014.57
5.3.220.0900.05314.52
5.3.210.0970.05314.64
5.3.200.0900.04314.48
5.3.190.0900.04714.55
5.3.180.1030.07014.45
5.3.170.1070.05714.65
5.3.160.1130.06714.65
5.3.150.1030.05314.61
5.3.140.1100.05714.64
5.3.130.1130.05314.53
5.3.120.1170.06714.64
5.3.110.1170.04714.59
5.3.100.0930.05714.03
5.3.90.1000.05313.91
5.3.80.0900.05013.96
5.3.70.1130.05013.99
5.3.60.0970.05313.99
5.3.50.1030.05013.94
5.3.40.0970.05013.94
5.3.30.1100.06313.86
5.3.20.1000.05713.61
5.3.10.0870.04713.69
5.3.00.0930.04013.73
5.2.170.1070.04711.11
5.2.160.0670.04711.11
5.2.150.0770.03711.28
5.2.140.0700.04711.28
5.2.130.0800.05011.25
5.2.120.0770.03711.23
5.2.110.0700.04011.08
5.2.100.0770.03711.14
5.2.90.0800.03711.14
5.2.80.0630.04311.01
5.2.70.0870.05011.14
5.2.60.0800.04311.18
5.2.50.0730.04010.96
5.2.40.0530.04711.04
5.2.30.0570.04710.90
5.2.20.0570.04310.87
5.2.10.0630.06010.91
5.2.00.0730.04310.67
5.1.60.0600.05710.13
5.1.50.0700.0409.97
5.1.40.0530.0509.99
5.1.30.0670.03710.39
5.1.20.0570.04010.48
5.1.10.0700.03310.16
5.1.00.0630.03310.12
5.0.50.0370.0378.67
5.0.40.0330.0308.42
5.0.30.0370.0408.24
5.0.20.0330.0238.23
5.0.10.0370.0278.18
5.0.00.0370.0408.18
4.4.90.0370.0205.87
4.4.80.0370.0175.92
4.4.70.0370.0175.91
4.4.60.0430.0275.91
4.4.50.0330.0235.90
4.4.40.0430.0405.92
4.4.30.0330.0305.85
4.4.20.0330.0305.96
4.4.10.0370.0175.95
4.4.00.0300.0435.93
4.3.110.0270.0275.80
4.3.100.0400.0275.78
4.3.90.0330.0335.82
4.3.80.0430.0375.80
4.3.70.0270.0235.79
4.3.60.0230.0275.84
4.3.50.0300.0335.78
4.3.40.0370.0405.77
4.3.30.0170.0235.11
4.3.20.0130.0235.11
4.3.10.0170.0205.11
4.3.00.0100.0277.09

preferences:
59.28 ms | 415 KiB | 16 Q