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'); $tests['string_length'] = (mb_strlen($test_string, 'UTF-8') === 3); $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.0110.00418.55
8.3.50.0100.01022.24
8.3.40.0210.00019.09
8.3.30.0120.00319.05
8.3.20.0030.00519.01
8.3.10.0070.01021.21
8.3.00.0070.00318.92
8.2.180.0040.01117.00
8.2.170.0040.01122.96
8.2.160.0140.00020.47
8.2.150.0140.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.23
8.2.110.0000.00920.53
8.2.100.0090.00318.09
8.2.90.0000.00819.39
8.2.80.0000.00819.30
8.2.70.0000.00817.88
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.28
8.2.30.0040.00419.34
8.2.20.0030.00518.05
8.2.10.0030.00518.11
8.2.00.0000.00918.09
8.1.280.0160.00025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.78
8.1.230.0070.00421.04
8.1.220.0000.00818.77
8.1.210.0050.00318.97
8.1.200.0090.00017.60
8.1.190.0060.00317.43
8.1.180.0060.00318.10
8.1.170.0040.00418.61
8.1.160.0030.00518.92
8.1.150.0000.00718.76
8.1.140.0040.00417.53
8.1.130.0030.00317.90
8.1.120.0040.00417.64
8.1.110.0000.00817.52
8.1.100.0040.00417.63
8.1.90.0000.00917.60
8.1.80.0030.00517.48
8.1.70.0000.00717.57
8.1.60.0060.00317.85
8.1.50.0050.00317.62
8.1.40.0000.00717.71
8.1.30.0050.00317.81
8.1.20.0050.00317.73
8.1.10.0040.00417.67
8.1.00.0000.00817.70
8.0.300.0030.00320.03
8.0.290.0040.00417.30
8.0.280.0040.00418.49
8.0.270.0030.00317.25
8.0.260.0000.00617.21
8.0.250.0050.00317.34
8.0.240.0000.00717.25
8.0.230.0030.00317.21
8.0.220.0070.00017.26
8.0.210.0030.00317.20
8.0.200.0040.00417.29
8.0.190.0000.00817.23
8.0.180.0040.00417.36
8.0.170.0080.00017.33
8.0.160.0070.00017.32
8.0.150.0060.00317.26
8.0.140.0040.00417.22
8.0.130.0050.00013.67
8.0.120.0030.00517.15
8.0.110.0020.00517.29
8.0.100.0040.00417.23
8.0.90.0040.00417.31
8.0.80.0100.01017.27
8.0.70.0040.00417.32
8.0.60.0000.00717.16
8.0.50.0050.00217.07
8.0.30.0120.00717.44
8.0.20.0130.00817.52
8.0.10.0030.00617.14
8.0.00.0100.00916.99
7.4.330.0050.00016.79
7.4.320.0060.00016.87
7.4.300.0070.00016.78
7.4.290.0000.00716.75
7.4.280.0000.00716.86
7.4.270.0020.00516.83
7.4.260.0050.00013.46
7.4.250.0050.00316.75
7.4.240.0030.00316.83
7.4.230.0040.00416.68
7.4.220.0030.01616.89
7.4.210.0110.00416.80
7.4.200.0070.00016.61
7.4.190.0040.00416.97
7.4.160.0100.00616.76
7.4.150.0070.01917.40
7.4.140.0100.00917.86
7.4.130.0080.01416.87
7.4.120.0110.00816.79
7.4.110.0120.00916.68
7.4.100.0060.01516.77
7.4.90.0100.01316.83
7.4.80.0060.01019.39
7.4.70.0080.00816.93
7.4.60.0040.01516.70
7.4.50.0000.00816.89
7.4.40.0080.00822.77
7.4.30.0080.01116.94
7.4.00.0060.00614.87
7.3.330.0080.00013.52
7.3.320.0030.00313.46
7.3.310.0030.00316.59
7.3.300.0030.00516.58
7.3.290.0070.01116.62
7.3.280.0070.00716.61
7.3.270.0030.01417.40
7.3.260.0120.00818.24
7.3.250.0010.01516.71
7.3.240.0160.00316.75
7.3.230.0040.01216.78
7.3.210.0060.01216.77
7.3.200.0100.00719.39
7.3.190.0070.01016.65
7.3.180.0060.00916.71
7.3.170.0090.00616.64
7.3.160.0000.01616.64
7.3.120.0070.00715.06
7.2.330.0100.00716.90
7.2.320.0100.01316.71
7.2.310.0110.00616.84
7.2.300.0000.01716.91
7.2.290.0070.01016.75
7.2.00.0060.01019.68
7.1.100.0090.00618.16
7.1.70.0510.00715.71
7.1.60.0500.01115.76
7.1.50.0440.01015.45
7.1.40.0450.00715.32
7.1.30.0590.00415.13
7.1.20.0540.00615.42
7.1.10.0480.01014.96
7.1.00.0560.00715.32
7.0.200.0460.00315.29
7.0.190.0270.00714.96
7.0.180.0590.00714.96
7.0.170.0400.00714.96
7.0.160.0460.00414.96
7.0.150.0460.01014.96
7.0.140.0470.00615.04
7.0.130.0520.00614.96
7.0.120.0480.00615.09
7.0.110.0500.01015.00
7.0.100.0470.00714.96
7.0.90.0650.01014.99
7.0.80.0620.00714.96
7.0.70.0490.01314.96
7.0.60.0710.01014.96
7.0.50.0620.00414.96
7.0.40.0100.00514.96
7.0.30.0060.00614.96
7.0.20.0110.01114.96
7.0.10.0120.00014.96
7.0.00.0080.00814.96
5.6.300.0070.04820.67
5.6.290.0040.05320.88
5.6.280.0030.04821.07
5.6.270.0180.03121.03
5.6.260.0040.05320.86
5.6.250.0130.03820.96
5.6.240.0070.06520.86
5.6.230.0110.05320.86
5.6.220.0110.08920.96
5.6.210.0110.06921.00
5.6.200.0090.04520.79
5.6.190.0140.03920.98
5.6.180.0110.08420.81
5.6.170.0110.04721.04
5.6.160.0100.04920.73
5.6.150.0100.06720.93
5.6.140.0280.06020.92
5.6.130.0030.04920.81
5.6.120.0070.08320.92
5.6.110.0040.09521.03
5.6.100.0130.04920.91
5.6.90.0080.04720.74
5.6.80.0040.04920.23
5.6.70.0110.06120.36
5.6.60.0140.08220.20
5.6.50.0200.04720.24
5.6.40.0090.03820.26
5.6.30.0090.05120.16
5.6.20.0130.08120.27
5.6.10.0120.08020.29
5.6.00.0070.08620.26
5.5.380.0100.03917.48
5.5.370.0160.04217.46
5.5.360.0070.05017.57
5.5.350.0120.04817.45
5.5.340.0170.03517.71
5.5.330.0030.05018.00
5.5.320.0030.06218.12
5.5.310.0100.04017.94
5.5.300.0060.06817.96
5.5.290.0000.05117.93
5.5.280.0130.03317.70
5.5.270.0070.06518.02
5.5.260.0030.04618.02
5.5.250.0130.04117.83
5.5.240.0130.07117.25
5.5.230.0100.06217.35
5.5.220.0000.05717.37
5.5.210.0160.05817.46
5.5.200.0070.07317.30
5.5.190.0130.03617.43
5.5.180.0070.05017.17
5.5.160.0130.07817.31
5.5.150.0070.05317.29
5.5.140.0100.06217.37
5.5.130.0000.04817.37
5.5.120.0070.04317.21
5.5.110.0160.03217.18
5.5.100.0100.08217.20
5.5.90.0100.07417.30
5.5.80.0100.07216.99
5.5.70.0070.05417.31
5.5.60.0100.03516.96
5.5.50.0070.05917.36
5.5.40.0060.06117.27
5.5.30.0090.03516.98
5.5.20.0100.07117.36
5.5.10.0100.07817.30
5.5.00.0160.04717.22
5.4.450.0070.04619.16
5.4.440.0100.05019.41
5.4.430.0030.07519.39
5.4.420.0070.03919.48
5.4.410.0040.04619.36
5.4.400.0160.03819.16
5.4.390.0100.04118.83
5.4.380.0030.04218.83
5.4.370.0100.05318.83
5.4.360.0140.06118.88
5.4.350.0130.07219.14
5.4.340.0160.04419.09
5.4.320.0070.05618.98
5.4.310.0130.03419.14
5.4.300.0030.07019.09
5.4.290.0030.04218.91
5.4.280.0070.03918.88
5.4.270.0070.03918.98
5.4.260.0100.07619.15
5.4.250.0120.06219.16
5.4.240.0030.05718.91
5.4.230.0130.06418.84
5.4.220.0060.04218.97
5.4.210.0070.07418.85
5.4.200.0030.06919.07
5.4.190.0160.05418.87
5.4.180.0100.07619.13
5.4.170.0070.07018.96
5.4.160.0070.04819.15
5.4.150.0070.04319.00
5.4.140.0100.04016.39
5.4.130.0100.03216.69
5.4.120.0070.03716.53
5.4.110.0100.06216.50
5.4.100.0030.03916.58
5.4.90.0110.06016.50
5.4.80.0030.07216.62
5.4.70.0070.03816.49
5.4.60.0130.03916.33
5.4.50.0000.05216.36
5.4.40.0070.04316.66
5.4.30.0220.03616.60
5.4.20.0140.03416.35
5.4.10.0000.07016.63
5.4.00.0130.05715.96
5.3.290.0130.05714.96
5.3.280.0140.05814.96
5.3.270.0170.06314.96
5.3.260.0070.04214.96
5.3.250.0070.03714.96
5.3.240.0030.04014.96
5.3.230.0130.05814.96
5.3.220.0180.03214.96
5.3.210.0030.05614.96
5.3.200.0040.04314.96
5.3.190.0070.03614.96
5.3.180.0120.04714.96
5.3.170.0030.04114.96
5.3.160.0070.03714.96
5.3.150.0070.08014.96
5.3.140.0100.06514.96
5.3.130.0030.04114.96
5.3.120.0040.04214.96
5.3.110.0100.07414.96
5.3.100.0070.04214.96
5.3.90.0070.03614.96
5.3.80.0040.03914.96
5.3.70.0070.04114.96
5.3.60.0070.05914.96
5.3.50.0040.06014.96
5.3.40.0090.03414.96
5.3.30.0070.03814.96
5.3.20.0230.03014.96
5.3.10.0000.05814.96
5.3.00.0140.04814.96
5.2.170.0030.03114.96
5.2.160.0070.02814.96
5.2.150.0000.05614.96
5.2.140.0000.03314.96
5.2.130.0110.02314.96
5.2.120.0090.05614.96
5.2.110.0000.03714.96
5.2.100.0000.03515.00
5.2.90.0030.06315.00
5.2.80.0130.05615.00
5.2.70.0100.05715.00
5.2.60.0100.05515.05
5.2.50.0070.02915.05
5.2.40.0070.05315.05
5.2.30.0030.03615.05
5.2.20.0060.03515.05
5.2.10.0030.04415.19
5.2.00.0030.07215.19
5.1.60.0060.02615.19
5.1.50.0030.04415.19
5.1.40.0040.02915.26
5.1.30.0130.05615.26
5.1.20.0040.02915.26
5.1.10.0040.03715.46
5.1.00.0030.04915.46
5.0.50.0070.02015.46
5.0.40.0030.02115.54
5.0.30.0000.04615.64
5.0.20.0000.02415.75
5.0.10.0030.02215.82
5.0.00.0030.03315.82
4.4.90.0100.03015.00
4.4.80.0090.02215.05
4.4.70.0060.02815.05
4.4.60.0000.02415.12
4.4.50.0060.02615.19
4.4.40.0040.03715.19
4.4.30.0030.03115.26
4.4.20.0070.03315.26
4.4.10.0090.01515.46
4.4.00.0000.02915.46
4.3.110.0040.01415.54
4.3.100.0030.01815.64
4.3.90.0040.01815.75
4.3.80.0040.02515.82
4.3.70.0030.01515.93
4.3.60.0030.01716.00
4.3.50.0090.01216.11
4.3.40.0060.02216.11
4.3.30.0040.01616.11
4.3.20.0040.01416.11
4.3.10.0030.01316.11
4.3.00.0000.01716.11

preferences:
43.92 ms | 401 KiB | 5 Q