3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$unicodeChar = '\u135F'; //$string = json_decode('"'.$unicodeChar.'"'); $string = "\xE1\x8D\x9F\x86"; echo "String is $string \n"; $result = preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER ); echo "Result is :".$result."\n"; print_r($matches); $result = preg_match_all( '/./u' , $string , $matches1 , PREG_SET_ORDER ); echo "Result is :".$result."\n"; print_r($matches1); exit(0);

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.0130.00718.56
8.3.50.0130.00622.17
8.3.40.0110.00418.88
8.3.30.0120.00419.00
8.3.20.0040.00420.30
8.3.10.0040.00421.77
8.3.00.0040.00422.39
8.2.180.0100.00716.75
8.2.170.0100.01022.96
8.2.160.0060.01221.02
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00519.61
8.2.110.0070.01119.22
8.2.100.0090.00318.03
8.2.90.0040.00418.00
8.2.80.0030.00518.04
8.2.70.0000.00817.80
8.2.60.0030.00517.79
8.2.50.0030.00618.10
8.2.40.0000.00820.59
8.2.30.0040.00418.20
8.2.20.0080.00017.84
8.2.10.0000.00717.95
8.2.00.0030.00617.91
8.1.280.0170.00025.92
8.1.270.0040.00422.25
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0100.00023.82
8.1.230.0040.00820.98
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0040.00417.36
8.1.180.0030.00518.10
8.1.170.0040.00418.71
8.1.160.0080.00022.05
8.1.150.0000.00818.84
8.1.140.0040.00417.61
8.1.130.0070.00017.73
8.1.120.0000.00717.63
8.1.110.0050.00317.54
8.1.100.0070.00017.57
8.1.90.0040.00417.64
8.1.80.0000.00717.62
8.1.70.0040.00417.50
8.1.60.0030.00717.74
8.1.50.0070.00017.67
8.1.40.0040.00417.59
8.1.30.0060.00317.69
8.1.20.0060.00317.83
8.1.10.0000.00817.56
8.1.00.0000.00817.49
8.0.300.0040.00420.03
8.0.290.0000.00817.00
8.0.280.0030.00318.48
8.0.270.0050.00317.20
8.0.260.0040.00417.05
8.0.250.0030.00317.21
8.0.240.0000.00717.12
8.0.230.0080.00017.19
8.0.220.0000.00717.16
8.0.210.0000.00817.19
8.0.200.0060.00017.16
8.0.190.0000.00817.22
8.0.180.0070.00017.07
8.0.170.0040.00417.19
8.0.160.0040.00417.15
8.0.150.0080.00317.09
8.0.140.0000.00817.09
8.0.130.0030.00313.55
8.0.120.0000.00817.07
8.0.110.0000.00717.20
8.0.100.0050.00517.20
8.0.90.0000.00717.20
8.0.80.0060.01017.05
8.0.70.0000.00817.05
8.0.60.0050.00317.06
8.0.50.0060.00317.05
8.0.30.0120.00917.21
8.0.20.0100.00817.40
8.0.10.0020.00517.26
8.0.00.0090.01017.06
7.4.330.0050.00015.00
7.4.320.0000.00716.76
7.4.300.0060.00016.70
7.4.290.0000.00716.51
7.4.280.0000.00716.56
7.4.270.0040.00416.51
7.4.260.0000.00716.73
7.4.250.0030.00516.57
7.4.240.0060.00216.67
7.4.230.0070.00016.55
7.4.220.0160.00916.84
7.4.210.0060.00816.74
7.4.200.0000.00716.89
7.4.190.0030.00416.70
7.4.160.0040.01616.69
7.4.150.0140.00717.40
7.4.140.0100.00817.86
7.4.130.0080.01016.82
7.4.120.0110.00716.72
7.4.110.0090.00916.66
7.4.100.0090.01316.61
7.4.90.0130.00616.63
7.4.80.0100.01019.39
7.4.70.0090.00616.62
7.4.60.0100.00516.80
7.4.50.0050.00316.68
7.4.40.0040.01122.77
7.4.30.0140.00416.73
7.4.00.0030.01415.12
7.3.330.0000.00613.33
7.3.320.0000.00613.33
7.3.310.0000.00816.48
7.3.300.0030.00316.68
7.3.290.0140.00016.55
7.3.280.0090.00916.63
7.3.270.0060.01017.40
7.3.260.0110.00716.74
7.3.250.0150.00416.49
7.3.240.0070.01416.51
7.3.230.0100.00716.41
7.3.210.0090.01216.76
7.3.200.0080.00819.39
7.3.190.0030.01516.77
7.3.180.0100.00616.51
7.3.170.0060.01316.87
7.3.160.0030.01316.47
7.3.120.0100.00615.27
7.2.330.0050.01116.91
7.2.320.0110.00716.64
7.2.310.0120.00416.89
7.2.300.0100.01016.78
7.2.290.0030.01316.82
7.2.60.0000.01316.90
7.2.00.0040.01419.44
7.1.200.0040.01115.57
7.1.100.0060.00918.32
7.1.70.0000.01417.39
7.1.60.0140.01019.82
7.1.50.0100.01317.27
7.1.00.0000.08022.33
7.0.200.0060.00316.90
7.0.140.0000.07722.08
7.0.60.0100.08320.06
7.0.50.0100.07717.81
7.0.40.0030.08720.32
7.0.30.0270.04020.18
7.0.20.0230.05320.19
7.0.10.0070.06720.01
7.0.00.0170.07720.10
5.6.280.0000.07320.89
5.6.210.0030.04320.66
5.6.200.0100.08318.22
5.6.190.0100.07320.45
5.6.180.0300.03720.39
5.6.170.0300.04320.52
5.6.160.0070.08020.54
5.6.150.0030.07318.11
5.6.140.0070.07718.09
5.6.130.0100.08318.18
5.6.120.0000.04721.00
5.6.110.0070.04021.14
5.6.100.0070.08721.02
5.6.90.0070.04321.00
5.6.80.0030.06720.50
5.5.350.0270.07020.35
5.5.340.0070.07717.93
5.5.330.0070.04020.25
5.5.320.0030.08320.28
5.5.310.0170.04320.29
5.5.300.0070.06318.02
5.5.290.0100.08017.87
5.5.280.0030.08720.73
5.5.270.0030.06320.73
5.5.260.0030.08720.76
5.5.250.0070.07720.68
5.5.240.0170.08020.15
5.4.450.0100.05319.48
5.4.440.0270.04019.56
5.4.430.0230.06019.58
5.4.420.0200.06319.13
5.4.410.0200.04719.44
5.4.400.0100.04719.05
5.4.390.0230.03319.08
5.4.380.0200.03319.10
5.4.370.0170.03718.80
5.4.360.0230.03319.25
5.4.350.0200.03318.89
5.4.340.0170.07319.24
5.4.320.0300.04019.16
5.4.310.0170.04019.14
5.4.300.0130.06319.09
5.4.290.0130.05719.09
5.4.280.0130.04319.10
5.4.270.0230.06718.91
5.4.260.0170.04319.09
5.4.250.0230.06318.80
5.4.240.0200.04719.08
5.4.230.0100.05019.08
5.4.220.0130.04018.88
5.4.210.0230.04319.15
5.4.200.0230.06019.13
5.4.190.0170.03719.12
5.4.180.0170.05718.92
5.4.170.0200.03719.09
5.4.160.0170.03718.91
5.4.150.0200.06019.08
5.4.140.0170.06316.23
5.4.130.0170.03716.54
5.4.120.0230.02716.20
5.4.110.0100.04016.39
5.4.100.0200.03316.34
5.4.90.0100.07716.50
5.4.80.0230.04016.41
5.4.70.0270.05716.57
5.4.60.0200.06316.43
5.4.50.0200.04016.43
5.4.40.0330.04016.46
5.4.30.0430.04716.36
5.4.20.0200.04316.30
5.4.10.0230.04016.31
5.4.00.0230.07015.71
5.3.290.0230.07014.50
5.3.280.0270.05714.64
5.3.270.0230.03714.59
5.3.260.0170.04014.45
5.3.250.0130.04014.46
5.3.240.0200.06714.48
5.3.230.0330.06014.61
5.3.220.0230.04014.68
5.3.210.0170.04014.44
5.3.200.0200.06714.40
5.3.190.0170.07714.55
5.3.180.0170.05314.42
5.3.170.0200.03714.47
5.3.160.0270.02714.61
5.3.150.0200.05714.40
5.3.140.0200.04014.39
5.3.130.0270.05314.53
5.3.120.0230.03714.56
5.3.110.0200.04714.56
5.3.100.0370.02713.98
5.3.90.0300.06713.86
5.3.80.0170.03714.00
5.3.70.0170.06014.07
5.3.60.0270.06313.82
5.3.50.0230.03713.79
5.3.40.0170.04713.90
5.3.30.0270.02713.78
5.3.20.0170.03713.60
5.3.10.0130.03713.45
5.3.00.0270.07013.70
5.2.170.0200.06311.09
5.2.160.0270.04011.09
5.2.150.0170.06011.08
5.2.140.0230.03310.99
5.2.130.0300.05011.04
5.2.120.0170.03310.93
5.2.110.0270.05310.94
5.2.100.0230.02710.95
5.2.90.0230.05710.95
5.2.80.0200.06010.94
5.2.70.0200.03711.14
5.2.60.0100.03710.99
5.2.50.0170.06010.92
5.2.40.0170.05710.83
5.2.30.0170.05310.98
5.2.20.0130.04010.80
5.2.10.0170.06010.77
5.2.00.0130.05010.85
5.1.60.0130.0379.97
5.1.50.0170.0279.92
5.1.40.0130.0239.95
5.1.30.0230.05010.29
5.1.20.0200.03010.49
5.1.10.0170.03010.04
5.1.00.0170.0479.94
5.0.50.0100.0478.47
5.0.40.0070.0408.33
5.0.30.0130.0578.26
5.0.20.0100.0408.20
5.0.10.0100.0278.25
5.0.00.0070.0508.06
4.4.90.0100.0337.71
4.4.80.0030.0237.71
4.4.70.0000.0207.71
4.4.60.0070.0137.71
4.4.50.0070.0137.71
4.4.40.0100.0207.71
4.4.30.0070.0307.71
4.4.20.0030.0177.71
4.4.10.0130.0207.71
4.4.00.0100.0307.71
4.3.110.0070.0237.71
4.3.100.0200.0237.71
4.3.90.0070.0307.71
4.3.80.0070.0237.71
4.3.70.0070.0277.71
4.3.60.0100.0337.71
4.3.50.0100.0337.71
4.3.40.0170.0307.71
4.3.30.0100.0107.71
4.3.20.0030.0407.71
4.3.10.0000.0407.71
4.3.00.0000.0177.71

preferences:
45.6 ms | 401 KiB | 5 Q