3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((bool)preg_match('//u', "\xf0\x90\x8c\xbc")); var_dump(preg_match('/[\xf0-\xf7][\x90-\xbf][\x80-\xbf][\x80-\xbf]/', "\xf0\x90\x8c\xbc")); $xml = '<?xml version="1.0" encoding="utf-8"?>' . "<foo>\xed\xa1\x81\xed\xbd\x8f</foo>"; $parsed = simplexml_load_string($xml); var_dump($parsed); var_dump((string)$parsed);

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.00317.13
8.3.50.0080.01521.41
8.3.40.0040.01119.21
8.3.30.0140.00019.29
8.3.20.0000.00820.75
8.3.10.0030.00522.15
8.3.00.0040.00419.53
8.2.180.0070.00716.75
8.2.170.0100.00719.30
8.2.160.0110.00722.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00618.13
8.2.110.0050.00521.34
8.2.100.0130.00018.41
8.2.90.0030.00620.08
8.2.80.0000.00817.97
8.2.70.0030.00518.13
8.2.60.0120.00018.29
8.2.50.0090.00018.07
8.2.40.0000.00818.28
8.2.30.0000.00718.35
8.2.20.0000.00918.31
8.2.10.0040.00418.54
8.2.00.0050.00218.36
8.1.280.0100.01025.92
8.1.270.0050.00320.37
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.00722.27
8.1.230.0040.00822.88
8.1.220.0080.00018.05
8.1.210.0040.00419.00
8.1.200.0090.00017.50
8.1.190.0030.00617.61
8.1.180.0060.00318.10
8.1.170.0040.00419.09
8.1.160.0040.00419.07
8.1.150.0000.00719.15
8.1.140.0040.00417.90
8.1.130.0030.00317.98
8.1.120.0020.00517.90
8.1.110.0000.00717.70
8.1.100.0000.00817.81
8.1.90.0040.00417.77
8.1.80.0000.00817.76
8.1.70.0050.00317.93
8.1.60.0030.00617.95
8.1.50.0040.00417.88
8.1.40.0080.00017.87
8.1.30.0040.00417.94
8.1.20.0040.00417.94
8.1.10.0050.00317.84
8.1.00.0000.00817.75
8.0.300.0040.00420.32
8.0.290.0080.00017.13
8.0.280.0030.00518.73
8.0.270.0070.00017.36
8.0.260.0000.00617.38
8.0.250.0000.00717.45
8.0.240.0040.00417.41
8.0.230.0050.00317.43
8.0.220.0030.00317.41
8.0.210.0030.00317.36
8.0.200.0060.00017.41
8.0.190.0000.00817.53
8.0.180.0050.00217.34
8.0.170.0000.00817.35
8.0.160.0000.00817.45
8.0.150.0020.00517.34
8.0.140.0000.00817.36
8.0.130.0030.00313.96
8.0.120.0040.00417.37
8.0.110.0000.00717.36
8.0.100.0040.00417.30
8.0.90.0000.00817.33
8.0.80.0090.00617.36
8.0.70.0000.00817.26
8.0.60.0020.00517.28
8.0.50.0030.00617.20
8.0.30.0130.00717.64
8.0.20.0160.00517.65
8.0.10.0020.00517.28
8.0.00.0080.01317.18
7.4.330.0030.00315.33
7.4.320.0030.00316.95
7.4.300.0000.00716.93
7.4.290.0000.00817.07
7.4.280.0050.00316.97
7.4.270.0040.00417.01
7.4.260.0030.00316.98
7.4.250.0080.00017.00
7.4.240.0040.00317.02
7.4.230.0000.00817.11
7.4.220.0150.00316.98
7.4.210.0110.00717.21
7.4.200.0000.00716.93
7.4.160.0080.00816.97
7.4.150.0240.00017.40
7.4.140.0140.01017.86
7.4.130.0100.01616.86
7.4.120.0120.00816.92
7.4.110.0120.01317.07
7.4.100.0070.01416.88
7.4.90.0000.01817.07
7.4.80.0090.01219.39
7.4.70.0030.01617.04
7.4.60.0070.01016.82
7.4.50.0000.00816.98
7.4.40.0080.00817.01
7.4.30.0120.01017.09
7.4.00.0030.01015.38
7.3.330.0060.00013.75
7.3.320.0030.00313.67
7.3.310.0030.00316.82
7.3.300.0000.00716.74
7.3.290.0090.00816.73
7.3.280.0110.00716.75
7.3.270.0130.00517.40
7.3.260.0120.00616.67
7.3.240.0030.01316.64
7.3.230.0110.00716.86
7.3.210.0030.01316.80
7.3.200.0100.00719.39
7.3.190.0090.00616.77
7.3.180.0070.00716.66
7.3.170.0140.00516.75
7.3.160.0030.01316.57
7.2.330.0050.01416.94
7.2.320.0140.01916.99
7.2.310.0180.00617.03
7.2.300.0150.00317.06
7.2.290.0100.01216.86
7.2.60.0120.00317.10
7.2.00.0000.01019.62
7.1.200.0030.01016.07
7.1.100.0060.01018.27
7.1.70.0000.01017.29
7.1.60.0070.01819.59
7.1.50.0000.01217.30
7.1.00.0000.08022.48
7.0.200.0060.00617.05
7.0.110.0070.04020.13
7.0.100.0200.04020.16
7.0.90.0370.04320.02
7.0.80.0430.07720.02
7.0.70.0400.05020.07
7.0.60.0470.07720.15
7.0.50.0570.08019.98
7.0.40.0100.07019.84
7.0.30.0030.07019.84
7.0.20.0070.08319.80
7.0.10.0100.08019.78
7.0.00.0000.06319.93
5.6.280.0030.07321.08
5.6.260.0070.07020.83
5.6.250.0030.06720.68
5.6.240.0100.05020.71
5.6.230.0070.04020.64
5.6.220.0070.08020.67
5.6.210.0030.08020.67
5.6.200.0030.04020.65
5.6.190.0000.04320.71
5.6.180.0100.07720.69
5.6.170.0100.08020.88
5.6.160.0030.08020.68
5.6.150.0070.07720.64
5.6.140.0070.04020.64
5.6.130.0070.08020.68
5.6.120.0170.04320.68
5.6.110.0070.05020.63
5.6.100.0100.06720.71
5.6.90.0070.04020.63
5.6.80.0130.05720.07
5.6.70.0000.05320.05
5.6.60.0030.05720.11
5.6.50.0000.06720.05
5.6.40.0000.04320.09
5.6.30.0030.04020.04
5.6.20.0100.06020.00
5.6.10.0070.06720.00
5.6.00.0070.07019.97
5.5.380.0070.08017.62
5.5.370.0100.04717.77
5.5.360.0100.07717.71
5.5.350.0070.08017.75
5.5.340.0130.06318.19
5.5.330.0070.03718.08
5.5.320.0000.04317.84
5.5.310.0070.03718.42
5.5.300.0070.03718.14
5.5.290.0030.08318.35
5.5.280.0030.07018.14
5.5.270.0100.06318.29
5.5.260.0130.07017.93
5.5.250.0070.04717.73
5.5.240.0030.06317.22
5.5.230.0030.07317.67
5.5.220.0130.06717.57
5.5.210.0100.04717.80
5.5.200.0130.06317.45
5.5.190.0030.07717.64
5.5.180.0000.07317.49
5.5.160.0100.06317.18
5.5.150.0030.09017.26
5.5.140.0100.06317.64
5.5.130.0200.05317.34
5.5.120.0070.05017.44
5.5.110.0070.07717.30
5.5.100.0130.07017.35
5.5.90.0030.07017.21
5.5.80.0070.08017.24
5.5.70.0130.03717.47
5.5.60.0100.06017.20
5.5.50.0030.08017.20
5.5.40.0030.06017.07
5.5.30.0030.03717.43
5.5.20.0030.04717.23
5.5.10.0100.03017.53
5.5.00.0030.04717.20
5.4.450.0000.07319.38
5.4.440.0030.08319.43
5.4.430.0170.06719.37
5.4.420.0030.04019.59
5.4.410.0030.03719.30
5.4.400.0130.06719.28
5.4.390.0030.08019.09
5.4.380.0070.05019.05
5.4.370.0170.06019.02
5.4.360.0000.07319.09
5.4.350.0030.06719.05
5.4.340.0030.04719.30
5.4.320.0030.05019.37
5.4.310.0100.06319.05
5.4.300.0070.03319.36
5.4.290.0030.07719.27
5.4.280.0000.07019.11
5.4.270.0000.04019.29
5.4.260.0030.07719.27
5.4.250.0070.07319.07
5.4.240.0130.06719.16
5.4.230.0130.07019.33
5.4.220.0030.04019.05
5.4.210.0070.06719.27
5.4.200.0100.03719.09
5.4.190.0030.03719.00
5.4.180.0030.03719.36
5.4.170.0030.07019.19
5.4.160.0070.06019.08
5.4.150.0070.03319.07
5.4.140.0030.07716.46
5.4.130.0070.03316.42
5.4.120.0000.05716.48
5.4.110.0030.05716.71
5.4.100.0130.05716.55
5.4.90.0070.06316.49
5.4.80.0070.03316.37
5.4.70.0000.03716.45
5.4.60.0070.07316.78
5.4.50.0100.03316.36
5.4.40.0030.07316.58
5.4.30.0030.03316.70
5.4.20.0070.05716.68
5.4.10.0070.06016.74
5.4.00.0070.03715.75
5.3.290.0070.03314.81
5.3.280.0000.07314.69
5.3.270.0070.05314.76
5.3.260.0070.07714.69
5.3.250.0000.04314.75
5.3.240.0000.05014.59
5.3.230.0070.07314.67
5.3.220.0070.07714.64
5.3.210.0030.03314.65
5.3.200.0130.06714.87
5.3.190.0070.06314.73
5.3.180.0070.04714.63
5.3.170.0030.03714.61
5.3.160.0030.04014.66
5.3.150.0030.03714.54
5.3.140.0130.06314.70
5.3.130.0100.05314.74
5.3.120.0030.06714.54
5.3.110.0070.06714.74
5.3.100.0100.03014.25
5.3.90.0030.08014.23
5.3.80.0070.06014.13
5.3.70.0100.02714.21
5.3.60.0000.05314.11
5.3.50.0030.08014.03
5.3.40.0100.03014.01
5.3.30.0000.03714.05
5.3.20.0100.02713.76
5.3.10.0170.02313.86
5.3.00.0070.05713.84
5.2.170.0070.06311.91
5.2.160.0030.06711.91
5.2.150.0070.06011.91
5.2.140.0030.06011.91
5.2.130.0030.05711.91
5.2.120.0070.04711.91
5.2.110.0030.06311.91
5.2.100.0070.05011.91
5.2.90.0070.04311.91
5.2.80.0030.02711.91
5.2.70.0030.05311.91
5.2.60.0070.06011.91
5.2.50.0030.05011.91
5.2.40.0070.05011.91
5.2.30.0170.04311.91
5.2.20.0070.04311.91
5.2.10.0070.05311.91
5.2.00.0070.02311.91
5.1.60.0000.03011.91
5.1.50.0070.04311.91
5.1.40.0070.05011.91
5.1.30.0030.04311.92
5.1.20.0030.05011.92
5.1.10.0030.04311.92
5.1.00.0070.02311.92
5.0.50.0000.06011.92
5.0.40.0030.03311.92
5.0.30.0070.03011.92
5.0.20.0070.02311.92
5.0.10.0000.03011.92
5.0.00.0030.05311.92
4.4.90.0030.02711.91
4.4.80.0100.02711.91
4.4.70.0000.03311.91
4.4.60.0000.03711.91
4.4.50.0000.03311.91
4.4.40.0000.02711.91
4.4.30.0030.03311.91
4.4.20.0000.01711.92
4.4.10.0000.01711.92
4.4.00.0070.05011.92
4.3.110.0000.01311.92
4.3.100.0000.03311.92
4.3.90.0000.03711.92
4.3.80.0030.03311.92
4.3.70.0030.03711.92
4.3.60.0000.03711.92
4.3.50.0030.02011.92
4.3.40.0000.02311.92
4.3.30.0030.01711.92
4.3.20.0070.01311.92
4.3.10.0030.01711.92
4.3.00.0030.01311.92

preferences:
64.04 ms | 401 KiB | 5 Q