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(8204) . ';', '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.60.0080.01218.70
8.3.50.0080.01122.11
8.3.40.0070.01119.04
8.3.30.0040.01819.08
8.3.20.0110.00719.07
8.3.10.0040.00421.26
8.3.00.0100.00019.02
8.2.180.0060.01216.88
8.2.170.0140.00022.96
8.2.160.0100.01020.47
8.2.150.0090.00924.18
8.2.140.0100.00724.66
8.2.130.0000.00826.16
8.2.120.0050.00320.80
8.2.110.0080.00320.35
8.2.100.0120.00018.09
8.2.90.0030.00619.30
8.2.80.0070.00019.21
8.2.70.0050.00318.00
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0000.00718.34
8.2.30.0070.00021.23
8.2.20.0040.00418.17
8.2.10.0000.00818.27
8.2.00.0070.00418.07
8.1.280.0110.00425.92
8.1.270.0090.00023.99
8.1.260.0080.00026.35
8.1.250.0090.00928.09
8.1.240.0060.00322.59
8.1.230.0000.01120.88
8.1.220.0080.00018.77
8.1.210.0000.00819.03
8.1.200.0030.00617.73
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0000.00818.77
8.1.160.0050.00319.02
8.1.150.0040.00418.81
8.1.140.0040.00417.68
8.1.130.0070.00017.95
8.1.120.0070.00017.74
8.1.110.0040.00417.61
8.1.100.0000.00817.66
8.1.90.0000.00717.68
8.1.80.0000.00817.59
8.1.70.0000.00717.54
8.1.60.0050.00317.75
8.1.50.0000.00817.69
8.1.40.0040.00417.73
8.1.30.0000.00917.85
8.1.20.0040.00417.86
8.1.10.0040.00417.69
8.1.00.0060.00317.70
8.0.300.0030.00320.02
8.0.290.0040.00417.18
8.0.280.0030.00318.39
8.0.270.0040.00417.23
8.0.260.0030.00317.09
8.0.250.0020.00517.28
8.0.240.0000.00817.34
8.0.230.0000.00717.27
8.0.220.0000.00717.14
8.0.210.0000.00717.18
8.0.200.0030.00317.18
8.0.190.0070.00017.18
8.0.180.0000.00717.20
8.0.170.0000.00717.19
8.0.160.0040.00417.29
8.0.150.0040.00417.14
8.0.140.0000.00717.07
8.0.130.0000.00513.66
8.0.120.0050.00317.15
8.0.110.0040.00417.15
8.0.100.0040.00417.12
8.0.90.0000.00717.27
8.0.80.0090.00617.27
8.0.70.0040.00417.20
8.0.60.0040.00417.29
8.0.50.0000.00717.13
8.0.30.0110.00817.28
8.0.20.0090.01017.40
8.0.10.0050.00317.13
8.0.00.0120.01017.00
7.4.330.0050.00016.79
7.4.320.0080.00016.75
7.4.300.0000.00616.88
7.4.290.0030.00316.82
7.4.280.0000.00716.87
7.4.270.0030.00316.82
7.4.260.0000.00513.61
7.4.250.0080.00016.81
7.4.240.0000.00716.84
7.4.230.0040.00416.95
7.4.220.0170.01016.90
7.4.210.0110.00416.79
7.4.200.0040.00416.76
7.4.190.0000.00716.95
7.4.160.0110.00516.76
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0100.00916.91
7.4.120.0090.01116.85
7.4.110.0060.01216.88
7.4.100.0070.01116.70
7.4.90.0070.01116.85
7.4.80.0030.01519.39
7.4.70.0080.00816.84
7.4.60.0090.00816.91
7.4.50.0060.00316.62
7.4.40.0070.00522.77
7.4.30.0120.00916.81
7.4.00.0000.00915.21
7.3.330.0030.00313.58
7.3.320.0070.00013.45
7.3.310.0030.00316.60
7.3.300.0070.00016.65
7.3.290.0070.00716.66
7.3.280.0050.01216.63
7.3.270.0100.00617.40
7.3.260.0090.01118.24
7.3.250.0080.00816.81
7.3.240.0130.00316.70
7.3.230.0090.00916.59
7.3.210.0100.00716.85
7.3.200.0070.01019.39
7.3.190.0100.00716.82
7.3.180.0180.00216.68
7.3.170.0030.01216.72
7.3.160.0110.00816.64
7.3.120.0110.00015.30
7.2.330.0140.00416.89
7.2.320.0110.00716.94
7.2.310.0070.01716.87
7.2.300.0140.00316.92
7.2.290.0040.01416.91
7.2.00.0000.01219.84
7.1.100.0000.01218.42
7.1.70.0050.00517.49
7.1.60.0060.00617.52
7.1.50.0100.00516.97
7.1.40.0000.01116.98
7.1.30.0000.02016.90
7.1.20.0000.01117.20
7.1.10.0060.00616.93
7.1.00.0060.00316.86
7.0.200.0000.00717.05
7.0.190.0000.01416.97
7.0.180.0000.00716.70
7.0.170.0030.00616.79
7.0.160.0080.00016.63
7.0.150.0000.01116.79
7.0.140.0020.00516.61
7.0.130.0050.00316.93
7.0.120.0050.00316.77
7.0.110.0000.01116.54
7.0.100.0000.00816.75
7.0.90.0000.00816.52
7.0.80.0000.00916.66
7.0.70.0000.00916.58
7.0.60.0000.00816.66
7.0.50.0000.00716.70
7.0.40.0070.01015.21
7.0.30.0090.00015.21
7.0.20.0040.00715.21
7.0.10.0090.00015.21
7.0.00.0040.00415.21
5.6.300.0070.03920.86
5.6.290.0000.04520.79
5.6.280.0070.03721.04
5.6.270.0000.04420.86
5.6.260.0000.04721.09
5.6.250.0030.04520.87
5.6.240.0030.04620.95
5.6.230.0000.04620.95
5.6.220.0000.04321.04
5.6.210.0030.04320.62
5.6.200.0030.04820.93
5.6.190.0100.03320.95
5.6.180.0030.06020.74
5.6.170.0070.06920.77
5.6.160.0000.04620.84
5.6.150.0100.04020.86
5.6.140.0100.03521.04
5.6.130.0030.04520.81
5.6.120.0000.04621.03
5.6.110.0070.08021.02
5.6.100.0030.04320.91
5.6.90.0000.04620.71
5.6.80.0030.04020.25
5.6.70.0070.04020.40
5.6.60.0210.03520.14
5.6.50.0070.03620.20
5.6.40.0130.04320.32
5.6.30.0030.03920.19
5.6.20.0030.03920.21
5.6.10.0000.04220.17
5.6.00.0100.07420.28
5.5.380.0100.04217.61
5.5.370.0070.04017.56
5.5.360.0000.04217.44
5.5.350.0030.04217.50
5.5.340.0000.04218.06
5.5.330.0000.04217.94
5.5.320.0100.06318.03
5.5.310.0030.05017.97
5.5.300.0030.03918.03
5.5.290.0000.05018.03
5.5.280.0030.07417.95
5.5.270.0070.08918.02
5.5.260.0070.04917.93
5.5.250.0100.06117.83
5.5.240.0030.08317.33
5.5.230.0130.03117.42
5.5.220.0000.04317.39
5.5.210.0000.04117.24
5.5.200.0030.08317.06
5.5.190.0060.05517.09
5.5.180.0030.08217.32
5.5.160.0030.03917.30
5.5.150.0000.04717.38
5.5.140.0030.03717.18
5.5.130.0030.05917.29
5.5.120.0030.08417.46
5.5.110.0000.04217.36
5.5.100.0060.03417.37
5.5.90.0000.06117.28
5.5.80.0070.08217.08
5.5.70.0030.04517.27
5.5.60.0070.03317.08
5.5.50.0000.04217.30
5.5.40.0030.04217.27
5.5.30.0000.04017.30
5.5.20.0030.07117.17
5.5.10.0000.05017.20
5.5.00.0000.08617.10
5.4.450.0000.04519.34
5.4.440.0030.03919.40
5.4.430.0000.04819.30
5.4.420.0030.04319.30
5.4.410.0100.03319.11
5.4.400.0000.05119.08
5.4.390.0000.04518.99
5.4.380.0000.04519.06
5.4.370.0030.06718.86
5.4.360.0030.04018.86
5.4.350.0000.04119.12
5.4.340.0100.03018.89
5.4.320.0040.03919.15
5.4.310.0030.04119.06
5.4.300.0030.05618.83
5.4.290.0030.04819.02
5.4.280.0100.07519.05
5.4.270.0000.05218.82
5.4.260.0100.03419.05
5.4.250.0070.07518.97
5.4.240.0070.04119.10
5.4.230.0000.04119.07
5.4.220.0100.05219.09
5.4.210.0030.03719.16
5.4.200.0060.04518.98
5.4.190.0000.06019.04
5.4.180.0030.04818.84
5.4.170.0030.04118.97
5.4.160.0000.04119.08
5.4.150.0000.06219.04
5.4.140.0000.04616.61
5.4.130.0030.03916.59
5.4.120.0000.04116.49
5.4.110.0070.07316.52
5.4.100.0060.03816.69
5.4.90.0030.04016.50
5.4.80.0030.04716.65
5.4.70.0030.03616.56
5.4.60.0030.03416.55
5.4.50.0030.04416.56
5.4.40.0030.03716.71
5.4.30.0070.07216.56
5.4.20.0030.04816.43
5.4.10.0030.04916.55
5.4.00.0000.06215.97
5.3.290.0000.04115.21
5.3.280.0070.03315.21
5.3.270.0070.06015.21
5.3.260.0100.05415.21
5.3.250.0030.05715.21
5.3.240.0000.07915.21
5.3.230.0030.04815.21
5.3.220.0030.03715.21
5.3.210.0000.04215.21
5.3.200.0000.04015.21
5.3.190.0030.06815.21
5.3.180.0030.06915.21
5.3.170.0030.04015.21
5.3.160.0070.07115.21
5.3.150.0100.07315.21
5.3.140.0070.06815.21
5.3.130.0000.04015.21
5.3.120.0030.03815.21
5.3.110.0000.04815.21
5.3.100.0000.05115.21
5.3.90.0030.03615.21
5.3.80.0030.04115.21
5.3.70.0070.06515.21
5.3.60.0030.05715.21
5.3.50.0030.06215.21
5.3.40.0130.02915.21
5.3.30.0000.04015.21
5.3.20.0030.04115.21
5.3.10.0030.03315.21
5.3.00.0100.02715.21
5.2.170.0070.07015.21
5.2.160.0060.06115.21
5.2.150.0000.03415.21
5.2.140.0070.05515.21
5.2.130.0000.03415.21
5.2.120.0030.03015.21
5.2.110.0040.02815.21
5.2.100.0030.02815.21
5.2.90.0070.06415.21
5.2.80.0060.03915.21
5.2.70.0030.02815.21
5.2.60.0030.02815.21
5.2.50.0030.06215.21
5.2.40.0030.06715.21
5.2.30.0030.03615.21
5.2.20.0000.03215.21
5.2.10.0000.03115.21
5.2.00.0030.03215.21
5.1.60.0000.03115.21
5.1.50.0030.04115.21
5.1.40.0060.01915.21
5.1.30.0030.02415.21
5.1.20.0000.03715.21
5.1.10.0030.02415.21
5.1.00.0000.05615.21
5.0.50.0030.03615.21
5.0.40.0060.01515.21
5.0.30.0070.03615.21
5.0.20.0040.02215.21
5.0.10.0060.01615.21
5.0.00.0000.03315.21
4.4.90.0030.01715.21
4.4.80.0000.03615.21
4.4.70.0030.03515.21
4.4.60.0000.01915.21
4.4.50.0000.02415.21
4.4.40.0000.02515.21
4.4.30.0030.01315.21
4.4.20.0060.01215.21
4.4.10.0060.03215.21
4.4.00.0000.02615.21
4.3.110.0000.02115.21
4.3.100.0030.01615.21
4.3.90.0000.01715.21
4.3.80.0000.02915.21
4.3.70.0040.02615.21
4.3.60.0030.01315.21
4.3.50.0000.02215.21
4.3.40.0030.02215.21
4.3.30.0000.02215.21
4.3.20.0000.03615.21
4.3.10.0000.03515.21
4.3.00.0030.01315.21

preferences:
53.63 ms | 400 KiB | 5 Q