3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $tests = array(); //$test_string = html_entity_decode('&#xAC00;&zwnj;&#xAC00;', ENT_COMPAT, 'UTF-8'); $uchar = mb_convert_encoding('&#' . intval(2984) . ';', 'UTF-32', 'HTML-ENTITIES'); $tests['string_length'] = (mb_strlen($uchar, 'UTF-32') === 1); $tests['string_match'] = (preg_match('/\X+/u', $uchar) === 1); $fails = array(); foreach ($tests as $key => $value) { if ($value === false) { $fails[$key] = $value; } } if (count($fails) > 0) { echo "Failed: " . join(', ', array_keys($fails)) . PHP_EOL; exit(1); } 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.0090.01217.00
8.3.60.0110.00418.63
8.3.50.0130.00822.03
8.3.40.0100.01019.05
8.3.30.0160.00619.09
8.3.20.0070.01119.12
8.3.10.0060.00321.22
8.3.00.0060.00320.68
8.2.180.0120.00316.75
8.2.170.0070.00722.96
8.2.160.0130.00720.39
8.2.150.0040.00424.18
8.2.140.0070.01024.66
8.2.130.0030.00726.16
8.2.120.0060.00321.04
8.2.110.0120.00420.34
8.2.100.0120.00018.16
8.2.90.0000.00819.42
8.2.80.0000.00719.46
8.2.70.0040.00417.88
8.2.60.0000.00818.18
8.2.50.0030.00618.13
8.2.40.0000.00818.09
8.2.30.0040.00421.30
8.2.20.0040.00418.08
8.2.10.0030.00618.16
8.2.00.0060.00318.24
8.1.280.0070.00725.92
8.1.270.0090.00023.99
8.1.260.0090.00926.35
8.1.250.0040.00428.09
8.1.240.0030.00622.60
8.1.230.0060.00620.90
8.1.220.0040.00418.77
8.1.210.0040.00418.97
8.1.200.0100.00017.59
8.1.190.0000.00817.55
8.1.180.0060.00318.10
8.1.170.0080.00018.89
8.1.160.0070.00019.00
8.1.150.0070.00018.85
8.1.140.0080.00017.71
8.1.130.0030.00317.90
8.1.120.0040.00417.69
8.1.110.0050.00317.63
8.1.100.0040.00417.54
8.1.90.0070.00017.71
8.1.80.0040.00417.66
8.1.70.0000.00717.69
8.1.60.0030.00617.80
8.1.50.0040.00417.71
8.1.40.0080.00017.75
8.1.30.0040.00417.84
8.1.20.0080.00017.81
8.1.10.0040.00417.67
8.1.00.0030.00517.77
8.0.300.0040.00420.06
8.0.290.0000.00717.30
8.0.280.0070.00018.58
8.0.270.0050.00317.35
8.0.260.0060.00017.06
8.0.250.0000.00717.32
8.0.240.0000.00817.23
8.0.230.0030.00517.32
8.0.220.0070.00017.05
8.0.210.0030.00317.21
8.0.200.0030.00317.16
8.0.190.0050.00317.29
8.0.180.0000.00817.20
8.0.170.0000.00717.15
8.0.160.0030.00517.29
8.0.150.0040.00417.18
8.0.140.0000.00717.14
8.0.130.0060.00013.64
8.0.120.0000.00817.16
8.0.110.0020.00517.22
8.0.100.0000.00717.03
8.0.90.0000.00717.21
8.0.80.0040.01117.16
8.0.70.0030.00517.28
8.0.60.0000.00717.16
8.0.50.0000.00817.25
8.0.30.0050.01417.23
8.0.20.0120.00617.40
8.0.10.0000.00717.00
8.0.00.0140.00617.16
7.4.330.0020.00216.86
7.4.320.0030.00316.82
7.4.300.0000.00616.77
7.4.290.0000.00816.86
7.4.280.0000.00716.75
7.4.270.0000.00716.91
7.4.260.0070.00013.56
7.4.250.0030.00616.78
7.4.240.0000.00716.66
7.4.230.0030.00316.58
7.4.220.0100.00916.71
7.4.210.0090.00916.86
7.4.200.0030.00516.67
7.4.190.0030.00316.63
7.4.160.0040.01216.77
7.4.150.0130.01017.40
7.4.140.0120.00617.86
7.4.130.0170.00416.77
7.4.120.0090.01116.77
7.4.110.0130.00316.77
7.4.100.0070.01116.66
7.4.90.0120.00616.78
7.4.80.0150.00319.39
7.4.70.0160.00017.00
7.4.60.0070.01016.80
7.4.50.0070.00016.71
7.4.40.0070.00722.77
7.4.30.0090.01516.64
7.4.00.0060.01015.28
7.3.330.0030.00513.57
7.3.320.0040.00413.52
7.3.310.0000.00716.59
7.3.300.0040.00416.64
7.3.290.0060.01216.56
7.3.280.0070.01116.68
7.3.270.0110.00617.40
7.3.260.0130.01018.24
7.3.250.0090.00816.78
7.3.240.0100.00616.88
7.3.230.0090.00916.95
7.3.210.0000.01616.82
7.3.200.0070.01419.39
7.3.190.0070.01016.54
7.3.180.0150.00616.75
7.3.170.0060.00916.72
7.3.160.0030.01316.86
7.3.120.0090.00815.18
7.3.110.0060.01115.25
7.3.100.0130.00114.96
7.3.90.0060.00715.08
7.3.80.0090.00615.13
7.3.70.0120.00315.10
7.3.60.0090.00515.06
7.3.50.0060.00615.21
7.3.40.0050.00815.17
7.3.30.0050.01015.14
7.3.20.0070.00716.96
7.3.10.0050.01316.88
7.3.00.0060.00617.02
7.2.330.0160.00317.05
7.2.320.0180.00416.70
7.2.310.0060.01217.01
7.2.300.0110.00617.10
7.2.290.0070.01116.78
7.2.250.0070.01215.32
7.2.240.0100.00715.38
7.2.230.0060.00315.12
7.2.220.0040.01015.28
7.2.210.0050.00915.42
7.2.200.0030.01015.12
7.2.190.0110.00515.31
7.2.180.0030.01015.56
7.2.170.0060.00915.31
7.2.160.0090.00615.37
7.2.150.0030.01617.10
7.2.140.0070.00717.19
7.2.130.0060.00616.84
7.2.120.0100.00316.88
7.2.110.0060.01316.98
7.2.100.0120.00017.27
7.2.90.0090.00617.26
7.2.80.0030.00717.16
7.2.70.0110.00416.84
7.2.60.0070.00717.01
7.2.50.0060.00917.12
7.2.40.0120.00817.10
7.2.30.0120.00617.03
7.2.20.0090.00917.01
7.2.10.0070.00717.00
7.2.00.0080.00518.29
7.1.330.0060.00815.94
7.1.320.0050.01116.07
7.1.310.0020.01315.88
7.1.300.0030.01016.02
7.1.290.0050.00916.04
7.1.280.0050.00716.07
7.1.270.0030.01215.93
7.1.260.0070.00716.04
7.1.250.0140.00016.11
7.1.100.0030.01318.30
7.1.70.0040.00417.45
7.1.60.0070.00717.57
7.1.50.0100.00317.42
7.1.40.0060.00617.42
7.1.30.0000.01217.42
7.1.20.0080.00417.42
7.1.10.0040.00417.42
7.1.00.0000.00917.42
7.0.200.0040.00417.42
7.0.190.0000.00717.42
7.0.180.0040.00417.42
7.0.170.0060.00317.42
7.0.160.0030.00517.42
7.0.150.0070.00017.42
7.0.140.0000.00717.42
7.0.130.0000.00817.42
7.0.120.0000.00817.42
7.0.110.0000.01117.42
7.0.100.0000.00717.42
7.0.90.0000.01217.42
7.0.80.0080.00817.42
7.0.70.0060.00317.42
7.0.60.0040.00717.42
7.0.50.0060.01517.42
7.0.40.0040.00717.42
7.0.30.0000.00817.42
7.0.20.0000.00817.42
7.0.10.0000.01017.42
7.0.00.0040.00417.42
5.6.300.0000.04820.96
5.6.290.0070.03720.65
5.6.280.0240.03820.91
5.6.270.0100.03621.07
5.6.260.0030.04120.86
5.6.250.0030.05520.99
5.6.240.0170.06720.87
5.6.230.0130.05520.89
5.6.220.0000.04420.95
5.6.210.0000.04421.02
5.6.200.0000.04821.03
5.6.190.0070.06620.88
5.6.180.0030.04420.98
5.6.170.0030.04520.98
5.6.160.0030.04020.82
5.6.150.0070.03720.86
5.6.140.0100.05920.71
5.6.130.0060.05421.02
5.6.120.0060.04420.96
5.6.110.0000.04520.82
5.6.100.0070.08420.80
5.6.90.0030.08520.84
5.6.80.0030.08120.27
5.6.70.0070.05720.30
5.6.60.0030.04220.19
5.6.50.0000.04420.23
5.6.40.0070.03820.13
5.6.30.0030.04120.39
5.6.20.0030.04020.17
5.6.10.0000.04220.38
5.6.00.0070.03420.16
5.5.380.0030.07117.46
5.5.370.0160.06117.55
5.5.360.0000.04317.59
5.5.350.0000.08117.56
5.5.340.0030.04617.98
5.5.330.0030.04717.98
5.5.320.0030.04017.74
5.5.310.0070.04118.03
5.5.300.0030.04318.05
5.5.290.0070.07818.06
5.5.280.0000.04618.05
5.5.270.0000.05318.03
5.5.260.0070.08717.99
5.5.250.0060.03817.75
5.5.240.0030.03717.42
5.5.230.0000.04417.42
5.5.220.0060.04517.42
5.5.210.0060.03817.42
5.5.200.0000.04017.42
5.5.190.0070.04917.42
5.5.180.0030.05217.42
5.5.160.0070.03917.42
5.5.150.0070.04317.42
5.5.140.0030.03917.42
5.5.130.0030.03817.42
5.5.120.0070.04417.42
5.5.110.0000.05017.42
5.5.100.0030.04717.42
5.5.90.0100.06717.42
5.5.80.0070.03417.42
5.5.70.0000.04317.42
5.5.60.0030.03817.42
5.5.50.0030.08017.42
5.5.40.0000.04117.42
5.5.30.0030.04917.42
5.5.20.0040.04317.42
5.5.10.0030.03817.42
5.5.00.0030.04117.42
5.4.450.0000.07819.36
5.4.440.0030.04619.31
5.4.430.0030.06519.46
5.4.420.0030.04119.32
5.4.410.0030.04119.33
5.4.400.0070.04818.99
5.4.390.0140.04119.14
5.4.380.0030.03818.99
5.4.370.0000.04118.83
5.4.360.0000.04218.98
5.4.350.0030.04019.06
5.4.340.0070.04018.98
5.4.320.0030.04219.03
5.4.310.0060.03618.98
5.4.300.0000.04118.91
5.4.290.0070.03519.14
5.4.280.0030.03818.83
5.4.270.0000.04119.14
5.4.260.0030.03619.07
5.4.250.0030.04018.91
5.4.240.0000.04419.04
5.4.230.0030.03618.82
5.4.220.0060.06518.97
5.4.210.0060.03219.04
5.4.200.0130.04518.85
5.4.190.0030.03718.82
5.4.180.0060.03819.16
5.4.170.0030.03719.05
5.4.160.0030.05119.04
5.4.150.0030.05719.03
5.4.140.0070.05117.42
5.4.130.0030.03717.42
5.4.120.0000.07417.42
5.4.110.0190.04517.42
5.4.100.0030.03817.42
5.4.90.0030.03417.42
5.4.80.0030.03817.42
5.4.70.0000.04017.42
5.4.60.0000.03817.42
5.4.50.0000.04117.42
5.4.40.0030.06117.42
5.4.30.0060.04917.42
5.4.20.0000.03717.42
5.4.10.0040.03917.42
5.4.00.0030.03317.42
5.3.290.0070.03417.42
5.3.280.0060.04517.42
5.3.270.0060.03717.42
5.3.260.0000.05817.42
5.3.250.0030.03617.42
5.3.240.0070.06917.42
5.3.230.0100.07517.42
5.3.220.0070.06717.42
5.3.210.0000.04217.42
5.3.200.0030.04017.42
5.3.190.0000.04317.42
5.3.180.0000.04017.42
5.3.170.0070.03317.42
5.3.160.0000.04117.42
5.3.150.0000.04017.42
5.3.140.0030.07817.42
5.3.130.0070.04217.42
5.3.120.0060.04817.42
5.3.110.0000.04017.42
5.3.100.0030.06417.42
5.3.90.0000.05817.42
5.3.80.0000.03917.42
5.3.70.0100.05917.42
5.3.60.0030.05617.42
5.3.50.0000.06217.42
5.3.40.0070.03317.42
5.3.30.0030.03817.42
5.3.20.0030.03917.42
5.3.10.0000.04017.42
5.3.00.0160.02617.42
5.2.170.0030.03817.42
5.2.160.0070.05717.42
5.2.150.0000.06517.42
5.2.140.0030.04617.42
5.2.130.0000.03017.42
5.2.120.0030.03117.42
5.2.110.0000.03217.42
5.2.100.0030.03217.42
5.2.90.0030.02617.42
5.2.80.0030.02717.42
5.2.70.0000.04017.42
5.2.60.0000.03517.42
5.2.50.0030.02717.42
5.2.40.0060.02517.42
5.2.30.0000.03417.42
5.2.20.0260.02317.42
5.2.10.0070.02317.42
5.2.00.0070.03717.42
5.1.60.0000.03317.42
5.1.50.0100.02717.42
5.1.40.0040.02917.42
5.1.30.0100.03917.42
5.1.20.0000.03317.42
5.1.10.0030.02317.42
5.1.00.0030.02317.42
5.0.50.0030.02017.42
5.0.40.0030.02017.42
5.0.30.0140.03417.42
5.0.20.0070.01617.42
5.0.10.0000.02117.42
5.0.00.0030.06617.42
4.4.90.0000.01817.42
4.4.80.0000.01617.42
4.4.70.0000.01717.42
4.4.60.0070.01417.42
4.4.50.0030.01317.42
4.4.40.0000.02917.42
4.4.30.0000.01717.42
4.4.20.0030.03717.42
4.4.10.0000.02817.42
4.4.00.0030.02317.42
4.3.110.0060.01117.42
4.3.100.0030.01317.42
4.3.90.0000.01617.42
4.3.80.0000.02817.42
4.3.70.0030.01417.42
4.3.60.0000.01717.42
4.3.50.0030.01517.42
4.3.40.0030.02217.42
4.3.30.0000.01817.42
4.3.20.0000.01717.42
4.3.10.0060.01217.42
4.3.00.0000.01717.42

preferences:
46.28 ms | 401 KiB | 5 Q