3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $tests = array(); $test_string = html_entity_decode('&zwnj;', ENT_COMPAT, 'UTF-8'); $tests['string_length'] = (mb_strlen($test_string, 'UTF-8') === 1); $tests['string_match'] = (preg_match('/^\X$/u', $test_string) === 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.0120.00318.55
8.3.50.0140.00721.33
8.3.40.0040.01819.09
8.3.30.0040.01419.04
8.3.20.0050.00319.14
8.3.10.0040.00421.21
8.3.00.0090.00021.86
8.2.180.0120.00917.00
8.2.170.0150.00022.96
8.2.160.0070.01020.32
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0100.01020.89
8.2.110.0060.00322.25
8.2.100.0040.00818.09
8.2.90.0000.00719.36
8.2.80.0040.00419.39
8.2.70.0040.00717.88
8.2.60.0090.00017.93
8.2.50.0050.00318.07
8.2.40.0030.00618.34
8.2.30.0000.00819.33
8.2.20.0040.00418.16
8.2.10.0060.00318.02
8.2.00.0030.00618.06
8.1.280.0100.01025.92
8.1.270.0030.00523.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00422.64
8.1.230.0040.00720.97
8.1.220.0040.00418.77
8.1.210.0040.00418.96
8.1.200.0040.00417.47
8.1.190.0060.00317.52
8.1.180.0080.00018.10
8.1.170.0050.00318.83
8.1.160.0050.00218.96
8.1.150.0030.00518.89
8.1.140.0040.00417.66
8.1.130.0000.00717.94
8.1.120.0040.00417.50
8.1.110.0040.00417.62
8.1.100.0000.00817.56
8.1.90.0030.00417.61
8.1.80.0000.00817.57
8.1.70.0000.00717.57
8.1.60.0000.00917.77
8.1.50.0080.00017.73
8.1.40.0060.00317.76
8.1.30.0040.00417.75
8.1.20.0030.00617.79
8.1.10.0070.00017.77
8.1.00.0000.00817.73
8.0.300.0060.00320.01
8.0.290.0000.00717.16
8.0.280.0000.00718.58
8.0.270.0080.00017.32
8.0.260.0040.00417.21
8.0.250.0000.00717.33
8.0.240.0030.00617.39
8.0.230.0030.00317.38
8.0.220.0040.00417.25
8.0.210.0030.00317.22
8.0.200.0040.00417.35
8.0.190.0030.00317.37
8.0.180.0040.00417.15
8.0.170.0000.00817.19
8.0.160.0040.00417.41
8.0.150.0000.00717.17
8.0.140.0070.00417.16
8.0.130.0050.00013.75
8.0.120.0040.00417.24
8.0.110.0000.00717.26
8.0.100.0070.00017.32
8.0.90.0000.00817.34
8.0.80.0060.01317.20
8.0.70.0000.00817.34
8.0.60.0070.00017.35
8.0.50.0030.00517.14
8.0.30.0150.00617.50
8.0.20.0160.00617.40
8.0.10.0030.00517.22
8.0.00.0140.00616.92
7.4.330.0050.00016.83
7.4.320.0040.00416.88
7.4.300.0000.00716.77
7.4.290.0030.00316.76
7.4.280.0070.00016.76
7.4.270.0030.00316.76
7.4.260.0030.00313.43
7.4.250.0040.00416.86
7.4.240.0030.00316.86
7.4.230.0050.00216.68
7.4.220.0090.01316.70
7.4.210.0080.00816.81
7.4.200.0040.00416.77
7.4.190.0000.00716.84
7.4.160.0110.00616.87
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0110.00816.81
7.4.120.0030.01416.70
7.4.110.0170.00016.65
7.4.100.0070.01016.66
7.4.90.0090.00916.91
7.4.80.0000.01619.39
7.4.70.0070.01116.87
7.4.60.0150.00316.87
7.4.50.0040.00416.80
7.4.40.0070.01122.77
7.4.30.0090.01316.69
7.4.00.0130.00315.29
7.3.330.0030.00313.39
7.3.320.0000.00613.48
7.3.310.0030.00316.53
7.3.300.0000.00716.50
7.3.290.0090.00616.57
7.3.280.0080.01116.62
7.3.270.0120.01217.40
7.3.260.0120.00818.24
7.3.250.0080.01016.58
7.3.240.0100.00716.75
7.3.230.0100.01316.65
7.3.210.0070.01316.61
7.3.200.0060.01119.39
7.3.190.0070.01116.76
7.3.180.0080.00816.87
7.3.170.0030.01416.67
7.3.160.0150.00616.59
7.3.120.0030.01015.13
7.3.10.0090.00917.07
7.3.00.0120.00316.61
7.2.330.0090.00816.83
7.2.320.0140.00716.64
7.2.310.0090.01216.81
7.2.300.0070.01016.73
7.2.290.0080.00916.82
7.2.130.0100.00317.09
7.2.120.0080.00317.03
7.2.110.0070.01017.03
7.2.100.0030.01017.27
7.2.90.0120.00616.96
7.2.80.0030.00717.11
7.2.70.0000.01217.05
7.2.60.0040.00617.07
7.2.50.0040.00717.14
7.2.40.0060.00617.26
7.2.30.0070.00717.17
7.2.20.0030.00817.22
7.2.10.0060.00616.99
7.2.00.0060.00818.44
7.1.250.0000.01116.11
7.1.200.0040.01115.94
7.1.100.0040.00418.52
7.1.70.0040.01117.09
7.1.60.0030.00917.68
7.1.50.0080.00317.07
7.1.40.0000.01317.24
7.1.30.0040.00817.03
7.1.20.0060.00917.21
7.1.10.0060.00317.14
7.1.00.0000.00817.02
7.0.200.0030.00517.00
7.0.190.0000.00716.99
7.0.180.0040.00416.75
7.0.170.0000.00916.74
7.0.160.0000.00716.68
7.0.150.0040.00416.34
7.0.140.0000.00716.60
7.0.130.0050.00316.68
7.0.120.0000.00716.71
7.0.110.0000.00916.57
7.0.100.0000.00816.70
7.0.90.0050.00316.54
7.0.80.0070.00016.68
7.0.70.0000.01116.48
7.0.60.0070.00716.55
7.0.50.0030.00516.71
7.0.40.0100.00015.41
7.0.30.0000.00715.41
7.0.20.0000.00715.41
7.0.10.0000.01015.41
7.0.00.0060.00315.41
5.6.300.0000.04720.66
5.6.290.0030.04320.79
5.6.280.0030.05521.06
5.6.270.0030.04420.89
5.6.260.0000.04621.03
5.6.250.0000.04421.04
5.6.240.0060.04220.86
5.6.230.0030.04020.85
5.6.220.0030.04020.84
5.6.210.0000.05021.01
5.6.200.0030.04020.83
5.6.190.0000.04520.73
5.6.180.0030.08620.77
5.6.170.0030.05820.90
5.6.160.0060.03820.85
5.6.150.0000.04820.86
5.6.140.0100.03521.00
5.6.130.0160.03620.81
5.6.120.0070.07020.73
5.6.110.0030.04620.90
5.6.100.0070.04020.99
5.6.90.0030.04020.99
5.6.80.0070.05920.37
5.6.70.0200.03620.22
5.6.60.0070.05520.18
5.6.50.0030.04720.18
5.6.40.0030.04020.34
5.6.30.0000.04620.35
5.6.20.0030.04220.36
5.6.10.0070.04420.15
5.6.00.0030.03820.16
5.5.380.0000.05117.46
5.5.370.0070.04717.49
5.5.360.0030.04217.40
5.5.350.0000.04517.45
5.5.340.0040.03918.03
5.5.330.0070.03618.13
5.5.320.0030.05017.84
5.5.310.0100.03317.84
5.5.300.0000.04317.93
5.5.290.0000.04718.00
5.5.280.0100.05118.02
5.5.270.0030.03918.05
5.5.260.0100.05918.01
5.5.250.0030.03917.81
5.5.240.0030.03617.42
5.5.230.0000.04617.37
5.5.220.0000.04417.40
5.5.210.0040.03917.35
5.5.200.0030.03917.42
5.5.190.0090.03117.38
5.5.180.0060.04117.31
5.5.160.0030.03717.32
5.5.150.0030.03717.38
5.5.140.0030.07417.37
5.5.130.0000.04717.29
5.5.120.0000.04717.36
5.5.110.0000.05117.31
5.5.100.0000.04117.21
5.5.90.0060.03617.20
5.5.80.0000.04316.99
5.5.70.0060.04117.23
5.5.60.0030.04117.27
5.5.50.0000.04316.95
5.5.40.0100.03716.95
5.5.30.0100.03417.27
5.5.20.0000.04317.26
5.5.10.0060.03917.27
5.5.00.0030.03917.29
5.4.450.0000.04519.43
5.4.440.0100.04519.36
5.4.430.0070.06219.44
5.4.420.0070.04619.43
5.4.410.0100.07319.18
5.4.400.0030.04119.17
5.4.390.0000.04719.06
5.4.380.0030.05219.00
5.4.370.0030.04118.90
5.4.360.0000.04819.02
5.4.350.0030.04218.83
5.4.340.0030.04219.12
5.4.320.0100.03019.06
5.4.310.0070.04019.14
5.4.300.0100.03419.00
5.4.290.0060.03819.09
5.4.280.0100.03619.09
5.4.270.0000.04219.05
5.4.260.0030.03618.98
5.4.250.0060.03819.04
5.4.240.0000.04419.16
5.4.230.0060.03519.16
5.4.220.0030.03919.00
5.4.210.0080.03819.05
5.4.200.0060.04119.13
5.4.190.0000.04119.00
5.4.180.0070.03719.05
5.4.170.0070.03919.15
5.4.160.0070.03718.89
5.4.150.0070.03918.83
5.4.140.0060.03516.57
5.4.130.0060.03516.53
5.4.120.0070.03416.53
5.4.110.0030.04216.62
5.4.100.0100.03216.57
5.4.90.0040.03916.65
5.4.80.0000.04116.54
5.4.70.0100.03016.55
5.4.60.0030.04016.31
5.4.50.0040.03916.54
5.4.40.0000.05816.56
5.4.30.0070.03616.52
5.4.20.0100.02916.62
5.4.10.0060.04216.36
5.4.00.0030.03815.84
5.3.290.0000.05215.41
5.3.280.0030.04315.41
5.3.270.0040.04215.41
5.3.260.0000.05115.41
5.3.250.0070.04115.41
5.3.240.0070.03715.41
5.3.230.0000.05015.41
5.3.220.0040.03915.41
5.3.210.0060.03615.41
5.3.200.0000.04215.41
5.3.190.0090.03515.41
5.3.180.0000.04415.41
5.3.170.0040.03615.41
5.3.160.0100.03315.41
5.3.150.0000.03815.41
5.3.140.0070.03215.41
5.3.130.0000.04215.41
5.3.120.0030.03615.41
5.3.110.0080.03915.41
5.3.100.0150.02815.41
5.3.90.0030.05115.41
5.3.80.0000.03915.41
5.3.70.0070.06315.41
5.3.60.0100.03315.41
5.3.50.0070.03515.41
5.3.40.0030.03715.41
5.3.30.0030.04115.41
5.3.20.0030.07115.41
5.3.10.0040.03215.41
5.3.00.0070.03615.41
5.2.170.0030.03015.41
5.2.160.0070.02915.41
5.2.150.0030.02815.41
5.2.140.0000.04015.41
5.2.130.0060.02915.41
5.2.120.0060.02615.41
5.2.110.0040.03915.41
5.2.100.0100.02615.41
5.2.90.0000.04015.41
5.2.80.0030.02815.41
5.2.70.0030.02815.41
5.2.60.0060.03215.41
5.2.50.0000.03615.41
5.2.40.0070.02515.41
5.2.30.0030.03115.41
5.2.20.0000.03115.41
5.2.10.0040.02715.41
5.2.00.0030.04815.41
5.1.60.0060.02115.41
5.1.50.0000.02915.41
5.1.40.0030.04915.41
5.1.30.0070.04115.41
5.1.20.0030.02615.41
5.1.10.0000.02815.41
5.1.00.0060.02215.41
5.0.50.0000.02915.41
5.0.40.0030.02015.41
5.0.30.0040.02915.41
5.0.20.0030.02915.41
5.0.10.0030.02215.41
5.0.00.0000.05515.41
4.4.90.0040.02215.41
4.4.80.0070.02415.41
4.4.70.0030.01415.41
4.4.60.0060.01215.41
4.4.50.0060.01215.41
4.4.40.0030.05015.41
4.4.30.0060.03215.41
4.4.20.0060.01415.41
4.4.10.0030.01715.41
4.4.00.0000.02915.41
4.3.110.0030.01615.41
4.3.100.0090.00915.41
4.3.90.0000.01615.41
4.3.80.0030.02415.41
4.3.70.0030.03215.41
4.3.60.0030.01615.41
4.3.50.0000.02115.55
4.3.40.0030.03715.63
4.3.30.0000.02115.70
4.3.20.0030.01915.77
4.3.10.0030.01415.84
4.3.00.0040.01815.84

preferences:
49.96 ms | 401 KiB | 5 Q