3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$unicodeChar = '\u135F'; //$string = json_decode('"'.$unicodeChar.'"'); $string = "\xE1\x8D\x9F"; echo "String is $string \n"; $result = preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER ); echo "Result is :".$result."\n"; var_dump($matches); $result = preg_match_all( '/./u' , $string , $matches , PREG_SET_ORDER ); echo "Result is :".$result."\n"; var_dump($matches); 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.70.0160.00318.68
8.3.60.0040.01118.81
8.3.50.0090.01222.20
8.3.40.0090.00618.94
8.3.30.0130.00618.79
8.3.20.0080.00019.95
8.3.10.0050.00323.65
8.3.00.0050.00320.68
8.2.190.0040.01116.88
8.2.180.0210.00016.60
8.2.170.0090.00622.96
8.2.160.0100.00322.19
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00021.00
8.2.110.0150.00622.18
8.2.100.0090.00317.97
8.2.90.0040.00419.20
8.2.80.0050.00318.03
8.2.70.0000.00917.85
8.2.60.0030.00718.05
8.2.50.0080.00018.07
8.2.40.0030.00518.16
8.2.30.0070.00018.20
8.2.20.0040.00417.98
8.2.10.0070.00017.96
8.2.00.0050.00318.00
8.1.280.0130.00325.92
8.1.270.0080.00023.96
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00319.39
8.1.230.0070.00317.83
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0050.00317.65
8.1.180.0050.00318.10
8.1.170.0060.00318.74
8.1.160.0030.00622.07
8.1.150.0040.00418.85
8.1.140.0040.00417.58
8.1.130.0000.00717.91
8.1.120.0000.00717.64
8.1.110.0040.00817.44
8.1.100.0040.00417.59
8.1.90.0000.00717.64
8.1.80.0000.00817.49
8.1.70.0030.00317.42
8.1.60.0050.00317.72
8.1.50.0080.00017.63
8.1.40.0040.00417.56
8.1.30.0000.00817.68
8.1.20.0090.00017.64
8.1.10.0060.00317.64
8.1.00.0030.00517.53
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0030.00318.58
8.0.270.0030.00317.40
8.0.260.0080.00017.07
8.0.250.0000.00717.23
8.0.240.0070.00017.25
8.0.230.0040.00417.27
8.0.220.0000.00717.25
8.0.210.0050.00317.21
8.0.200.0030.00317.30
8.0.190.0040.00417.31
8.0.180.0060.00317.29
8.0.170.0040.00417.24
8.0.160.0040.00417.21
8.0.150.0030.00417.20
8.0.140.0040.00417.16
8.0.130.0050.00013.70
8.0.120.0040.00417.08
8.0.110.0000.00717.06
8.0.100.0050.00217.27
8.0.90.0000.00717.22
8.0.80.0060.01017.26
8.0.70.0070.00017.28
8.0.60.0080.00017.08
8.0.50.0070.00017.06
8.0.30.0080.01517.30
8.0.20.0090.01017.40
8.0.10.0040.00417.29
8.0.00.0080.01217.02
7.4.330.0020.00215.23
7.4.320.0000.00616.71
7.4.300.0030.00316.70
7.4.290.0040.00416.70
7.4.280.0040.00416.79
7.4.270.0030.00316.83
7.4.260.0030.00316.73
7.4.250.0070.00016.78
7.4.240.0030.00516.69
7.4.230.0030.00316.65
7.4.220.0160.00316.89
7.4.210.0020.01216.72
7.4.200.0070.00016.58
7.4.190.0070.00016.63
7.4.160.0110.01116.77
7.4.150.0070.01117.40
7.4.140.0150.00517.86
7.4.130.0090.01116.77
7.4.120.0120.00916.81
7.4.110.0060.01016.69
7.4.100.0090.00816.73
7.4.90.0140.01016.71
7.4.80.0060.01216.58
7.4.70.0110.00616.82
7.4.60.0070.01016.80
7.4.50.0030.00516.79
7.4.40.0000.01622.77
7.4.30.0130.00316.69
7.4.00.0140.00315.01
7.3.330.0000.00513.39
7.3.320.0000.00613.44
7.3.310.0040.00416.57
7.3.300.0030.00316.61
7.3.290.0140.00416.64
7.3.280.0080.01216.58
7.3.270.0120.00617.40
7.3.260.0120.00416.49
7.3.250.0120.00916.59
7.3.240.0030.01316.54
7.3.230.0070.01016.64
7.3.210.0110.00716.71
7.3.200.0150.00719.39
7.3.190.0100.01316.66
7.3.180.0120.00916.53
7.3.170.0120.00316.64
7.3.160.0090.00616.51
7.3.120.0030.01515.20
7.2.330.0060.01217.06
7.2.320.0090.00916.80
7.2.310.0120.00616.69
7.2.300.0070.01116.77
7.2.290.0090.00916.79
7.2.60.0030.01317.17
7.2.00.0090.00619.88
7.1.200.0090.00316.05
7.1.100.0090.00317.95
7.1.70.0000.01017.49
7.1.60.0100.01019.32
7.1.50.0060.01017.10
7.1.00.0030.07722.44
7.0.200.0060.00616.95
7.0.140.0070.07322.00
7.0.70.0070.04719.95
7.0.60.0130.07719.84
7.0.50.0130.07020.30
7.0.40.0070.04020.07
7.0.30.0030.04320.05
7.0.20.0030.06720.10
7.0.10.0070.04020.18
7.0.00.0000.04720.08
5.6.280.0100.06320.98
5.6.220.0130.05720.51
5.6.210.0100.08020.48
5.6.200.0300.07021.08
5.6.190.0130.05721.06
5.6.180.0030.04321.08
5.6.170.0000.07021.00
5.6.160.0130.03320.95
5.6.150.0070.04321.02
5.6.140.0070.03021.07
5.6.130.0000.08321.03
5.6.120.0030.03721.01
5.6.110.0070.03320.94
5.6.100.0170.06021.02
5.6.90.0070.04721.07
5.6.80.0000.04720.55
5.6.70.0030.06720.32
5.6.60.0070.03020.32
5.6.50.0030.03320.40
5.6.40.0130.03720.44
5.6.30.0070.05720.32
5.6.20.0000.05320.47
5.6.10.0030.04320.32
5.6.00.0070.03720.47
5.5.360.0030.08720.38
5.5.350.0030.08020.33
5.5.340.0070.05320.80
5.5.330.0070.04320.74
5.5.320.0030.04320.61
5.5.310.0070.04020.84
5.5.300.0100.03020.86
5.5.290.0000.04320.76
5.5.280.0030.04020.77
5.5.270.0070.03020.86
5.5.260.0000.05720.91
5.5.250.0000.04320.64
5.5.240.0030.04020.00
5.5.230.0030.04020.11
5.5.220.0170.04020.22
5.5.210.0070.04720.23
5.5.200.0030.03320.15
5.5.190.0030.04019.99
5.5.180.0130.06020.26
5.5.160.0000.04720.12
5.5.150.0070.04020.05
5.5.140.0100.06020.20
5.5.130.0230.04320.12
5.5.120.0070.03720.09
5.5.110.0030.05720.20
5.5.100.0100.03720.07
5.5.90.0070.04319.93
5.5.80.0070.03720.11
5.5.70.0030.04020.09
5.5.60.0000.04020.05
5.5.50.0070.05020.05
5.5.40.0070.07720.05
5.5.30.0100.06319.92
5.5.20.0130.05020.04
5.5.10.0170.07020.13
5.5.00.0000.06720.10
5.4.450.0070.06019.14
5.4.440.0000.03719.40
5.4.430.0030.04019.28
5.4.420.0170.04319.38
5.4.410.0100.03319.09
5.4.400.0000.04019.05
5.4.390.0070.06318.81
5.4.380.0070.06319.05
5.4.370.0030.03719.14
5.4.360.0070.03019.10
5.4.350.0030.06019.06
5.4.340.0000.04019.01
5.4.320.0030.04018.90
5.4.310.0070.05019.10
5.4.300.0130.04019.04
5.4.290.0030.04019.05
5.4.280.0070.03719.05
5.4.270.0030.04319.07
5.4.260.0030.04719.03
5.4.250.0000.04019.11
5.4.240.0100.03019.16
5.4.230.0000.04019.13
5.4.220.0170.06719.05
5.4.210.0100.06019.16
5.4.200.0230.06019.06
5.4.190.0130.05318.89
5.4.180.0100.03319.13
5.4.170.0070.08319.05
5.4.160.0100.07718.81
5.4.150.0070.07019.09
5.4.140.0070.06016.28
5.4.130.0200.06316.28
5.4.120.0100.04716.08
5.4.110.0100.04716.21
5.4.100.0000.07716.33
5.4.90.0100.05316.42
5.4.80.0170.06716.36
5.4.70.0170.06316.21
5.4.60.0070.07316.20
5.4.50.0000.08016.39
5.4.40.0200.06316.24
5.4.30.0070.07716.18
5.4.20.0130.06716.35
5.4.10.0070.07716.27
5.4.00.0100.04715.83
5.3.290.0070.04314.68
5.3.280.0070.03314.41
5.3.270.0030.08714.57
5.3.260.0130.07314.51
5.3.250.0100.07014.51
5.3.240.0100.07714.46
5.3.230.0100.06314.50
5.3.220.0030.06314.55
5.3.210.0030.04714.56
5.3.200.0030.05314.43
5.3.190.0070.08014.42
5.3.180.0070.07314.57
5.3.170.0070.07714.55
5.3.160.0000.08714.41
5.3.150.0130.07014.55
5.3.140.0070.07714.38
5.3.130.0070.07314.48
5.3.120.0100.08014.41
5.3.110.0070.07314.50
5.3.100.0030.07314.02
5.3.90.0030.08313.97
5.3.80.0030.07714.02
5.3.70.0170.06313.86
5.3.60.0100.07313.95
5.3.50.0030.08013.94
5.3.40.0000.05713.80
5.3.30.0100.06013.89
5.3.20.0030.06013.68
5.3.10.0030.06013.64
5.3.00.0100.05013.49
5.2.170.0000.03712.27
5.2.160.0000.06312.27
5.2.150.0100.06012.27
5.2.140.0030.05712.27
5.2.130.0170.05012.27
5.2.120.0130.05312.27
5.2.110.0100.05712.27
5.2.100.0070.04712.27
5.2.90.0000.03312.27
5.2.80.0030.07012.27
5.2.70.0030.04712.27
5.2.60.0070.06012.27
5.2.50.0000.05312.27
5.2.40.0030.06712.27
5.2.30.0030.06712.27
5.2.20.0000.06712.27
5.2.10.0030.05312.27
5.2.00.0070.05712.27
5.1.60.0030.05312.27
5.1.50.0030.05312.27
5.1.40.0030.04012.27
5.1.30.0070.05712.27
5.1.20.0070.04712.27
5.1.10.0070.05712.27
5.1.00.0030.04712.27
5.0.50.0070.04312.27
5.0.40.0000.02712.27
5.0.30.0030.06712.27
5.0.20.0070.04312.27
5.0.10.0030.04312.27
5.0.00.0030.06712.27
4.4.90.0070.03312.27
4.4.80.0100.02712.27
4.4.70.0030.03712.27
4.4.60.0000.03712.27
4.4.50.0000.03012.27
4.4.40.0000.05712.27
4.4.30.0130.02712.27
4.4.20.0030.03712.27
4.4.10.0070.02712.27
4.4.00.0000.04012.27
4.3.110.0000.04012.27
4.3.100.0000.03712.27
4.3.90.0030.03312.27
4.3.80.0070.05312.27
4.3.70.0070.03012.27
4.3.60.0030.02712.27
4.3.50.0000.03712.27
4.3.40.0000.05312.27
4.3.30.0030.03312.27
4.3.20.0000.04012.27
4.3.10.0030.03712.27
4.3.00.0070.03312.27

preferences:
40.32 ms | 401 KiB | 5 Q