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.0100.00718.36
8.3.50.0130.00422.11
8.3.40.0120.00319.39
8.3.30.0100.00319.07
8.3.20.0080.00019.15
8.3.10.0080.00021.02
8.3.00.0090.00021.60
8.2.180.0070.01116.98
8.2.170.0100.01022.96
8.2.160.0070.01320.39
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0090.00626.16
8.2.120.0000.00821.18
8.2.110.0030.00620.29
8.2.100.0090.00318.28
8.2.90.0000.00819.17
8.2.80.0000.00719.25
8.2.70.0050.00318.00
8.2.60.0050.00318.16
8.2.50.0040.00418.07
8.2.40.0000.00918.28
8.2.30.0000.00819.51
8.2.20.0080.00018.05
8.2.10.0040.00418.15
8.2.00.0000.00817.98
8.1.280.0060.01025.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.66
8.1.230.0110.00020.94
8.1.220.0040.00418.77
8.1.210.0000.00818.90
8.1.200.0080.00017.60
8.1.190.0000.00817.66
8.1.180.0030.00518.10
8.1.170.0000.00918.76
8.1.160.0070.00018.88
8.1.150.0000.00718.71
8.1.140.0070.00017.53
8.1.130.0070.00017.82
8.1.120.0000.00817.50
8.1.110.0020.00517.52
8.1.100.0050.00217.49
8.1.90.0040.00417.63
8.1.80.0000.00717.66
8.1.70.0030.00517.47
8.1.60.0040.00717.72
8.1.50.0000.00717.66
8.1.40.0030.00517.78
8.1.30.0030.00617.80
8.1.20.0040.00417.76
8.1.10.0000.00817.74
8.1.00.0000.00717.71
8.0.300.0040.00420.05
8.0.290.0000.00717.18
8.0.280.0030.00318.58
8.0.270.0030.00317.51
8.0.260.0030.00317.11
8.0.250.0040.00417.36
8.0.240.0040.00417.20
8.0.230.0030.00317.22
8.0.220.0000.00717.28
8.0.210.0000.00717.29
8.0.200.0060.00017.31
8.0.190.0070.00017.33
8.0.180.0040.00417.32
8.0.170.0080.00017.32
8.0.160.0040.00417.34
8.0.150.0000.00717.18
8.0.140.0000.00717.13
8.0.130.0000.00613.75
8.0.120.0050.00317.23
8.0.110.0080.00017.30
8.0.100.0040.00417.30
8.0.90.0040.00417.32
8.0.80.0060.00917.28
8.0.70.0040.00417.33
8.0.60.0050.00217.24
8.0.50.0020.00517.19
8.0.30.0060.01317.31
8.0.20.0130.00517.40
8.0.10.0030.00617.34
8.0.00.0140.00817.02
7.4.330.0000.00516.74
7.4.320.0030.00316.75
7.4.300.0000.00716.86
7.4.290.0030.00316.79
7.4.280.0030.00316.65
7.4.270.0000.00716.63
7.4.260.0050.00013.55
7.4.250.0040.00416.68
7.4.240.0030.00316.77
7.4.230.0000.00716.86
7.4.220.0090.00916.91
7.4.210.0080.00816.80
7.4.200.0050.00216.88
7.4.190.0000.00716.96
7.4.160.0050.01516.77
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00816.74
7.4.120.0120.01216.85
7.4.110.0030.01316.75
7.4.100.0110.00516.72
7.4.90.0070.01016.84
7.4.80.0030.01319.39
7.4.70.0060.01116.82
7.4.60.0070.01016.82
7.4.50.0000.00916.77
7.4.40.0100.00722.77
7.4.30.0110.01116.70
7.4.10.0070.01315.31
7.4.00.0050.01315.22
7.3.330.0000.00513.50
7.3.320.0000.00513.53
7.3.310.0000.00716.52
7.3.300.0040.00416.62
7.3.290.0040.01116.62
7.3.280.0070.00916.58
7.3.270.0120.00617.40
7.3.260.0120.00818.24
7.3.250.0100.01216.73
7.3.240.0060.01016.59
7.3.230.0100.00616.79
7.3.210.0100.00716.85
7.3.200.0070.01019.39
7.3.190.0120.00816.66
7.3.180.0130.00616.66
7.3.170.0100.00616.70
7.3.160.0170.00016.54
7.3.130.0140.00615.28
7.3.120.0100.00814.83
7.3.110.0090.00615.23
7.3.100.0060.01015.10
7.3.90.0060.01214.88
7.3.80.0030.00615.03
7.3.70.0040.01114.78
7.3.60.0000.01415.14
7.3.50.0080.00315.06
7.3.40.0030.00915.03
7.3.30.0070.00715.08
7.3.20.0060.00316.93
7.3.10.0000.01316.92
7.3.00.0000.01816.89
7.2.330.0040.01316.87
7.2.320.0110.00817.10
7.2.310.0060.01816.72
7.2.300.0070.01016.91
7.2.290.0000.01616.83
7.2.260.0070.00715.05
7.2.250.0040.01515.39
7.2.240.0060.00915.17
7.2.230.0030.01315.34
7.2.220.0040.01415.41
7.2.210.0030.00715.24
7.2.200.0090.00615.16
7.2.190.0030.01415.27
7.2.180.0030.00915.32
7.2.170.0060.00615.12
7.2.160.0100.00715.26
7.2.150.0000.01217.09
7.2.140.0060.00616.97
7.2.130.0030.00617.29
7.2.120.0120.00617.34
7.2.110.0100.00717.11
7.2.100.0100.00716.80
7.2.90.0100.00717.22
7.2.80.0090.00416.90
7.2.70.0030.01017.23
7.2.60.0030.01216.99
7.2.50.0050.00517.17
7.2.40.0000.01417.26
7.2.30.0000.01117.00
7.2.20.0070.01116.93
7.2.10.0060.00317.20
7.2.00.0030.01018.33
7.1.330.0060.00915.90
7.1.320.0090.00615.80
7.1.310.0030.01015.89
7.1.300.0070.00715.68
7.1.290.0070.00316.03
7.1.280.0110.00416.01
7.1.270.0100.00015.85
7.1.260.0030.01016.14
7.1.250.0070.00716.11
7.1.240.0060.01215.86
7.1.230.0070.01015.79
7.1.220.0070.00716.09
7.1.210.0040.01116.09
7.1.200.0020.01115.97
7.1.190.0000.01415.74
7.1.180.0030.00615.71
7.1.170.0120.00316.16
7.1.160.0090.00315.86
7.1.150.0030.00615.66
7.1.140.0000.00915.95
7.1.130.0070.00715.96
7.1.120.0070.00716.05
7.1.110.0040.01215.76
7.1.100.0020.01217.26
7.1.90.0070.01015.99
7.1.80.0060.01216.04
7.1.70.0020.01016.68
7.1.60.0030.00816.68
7.1.50.0120.00316.77
7.1.40.0030.00615.99
7.1.30.0090.00616.03
7.1.20.0000.01716.14
7.1.10.0000.00915.84
7.1.00.0030.02319.14
7.0.330.0030.00915.43
7.0.320.0040.01115.64
7.0.310.0000.01515.66
7.0.300.0080.00415.67
7.0.290.0000.01915.59
7.0.280.0090.00615.68
7.0.270.0130.00015.78
7.0.260.0060.00615.19
7.0.250.0000.01315.52
7.0.240.0100.00315.80
7.0.230.0030.01015.68
7.0.220.0140.00015.49
7.0.210.0040.00715.50
7.0.200.0020.01216.36
7.0.190.0060.00615.55
7.0.180.0100.00315.55
7.0.170.0030.00715.70
7.0.160.0070.00315.38
7.0.150.0070.00315.65
7.0.140.0070.03818.75
7.0.130.0070.00715.37
7.0.120.0030.00915.43
7.0.110.0000.01415.54
7.0.100.0050.04417.72
7.0.90.0180.03817.71
7.0.80.0080.04017.97
7.0.70.0230.03817.68
7.0.60.0100.03617.72
7.0.50.0170.04017.85
7.0.40.0090.04716.98
7.0.30.0060.04616.94
7.0.20.0070.03016.76
7.0.10.0020.04616.75
7.0.00.0100.04316.79
5.6.400.0090.00014.07
5.6.390.0030.00914.39
5.6.380.0090.00314.45
5.6.370.0090.00614.47
5.6.360.0040.00414.63
5.6.350.0070.00614.48
5.6.340.0070.00714.48
5.6.330.0040.01114.34
5.6.320.0090.00314.66
5.6.310.0100.00014.77
5.6.300.0000.01314.54
5.6.290.0130.00314.69
5.6.280.0100.03617.76
5.6.270.0040.01114.37
5.6.260.0030.00614.54
5.6.250.0180.01817.54
5.6.240.0080.04017.55
5.6.230.0090.02817.47
5.6.220.0110.04217.44
5.6.210.0070.04517.58
5.6.200.0090.04117.91
5.6.190.0050.04317.71
5.6.180.0080.04117.64
5.6.170.0070.04717.74
5.6.160.0100.04317.66
5.6.150.0050.04617.65
5.6.140.0070.04417.71
5.6.130.0080.04217.74
5.6.120.0000.04617.71
5.6.110.0070.04317.61
5.6.100.0080.03617.70
5.6.90.0070.03017.60
5.6.80.0110.04417.46
5.6.70.0070.04217.42
5.6.60.0080.02317.39
5.6.50.0050.02917.36
5.6.40.0090.04017.41
5.6.30.0030.03017.34
5.6.20.0030.04317.45
5.6.10.0110.03317.44
5.6.00.0120.03917.27
5.5.380.0070.04717.43
5.5.370.0020.04617.44
5.5.360.0100.04117.42
5.5.350.0080.04017.42
5.5.340.0070.02617.45
5.5.330.0060.02517.49
5.5.320.0080.03217.61
5.5.310.0080.04717.55
5.5.300.0090.04517.53
5.5.290.0070.04217.53
5.5.280.0070.04017.74
5.5.270.0100.04417.54
5.5.260.0070.04117.66
5.5.250.0050.02617.56
5.5.240.0030.03917.11
5.5.230.0120.03817.24
5.5.220.0050.04317.22
5.5.210.0050.03417.29
5.5.200.0040.04417.14
5.5.190.0020.04817.35
5.5.180.0030.03617.21
5.5.170.0070.01014.18
5.5.160.0070.04517.28
5.5.150.0060.03317.21
5.5.140.0060.04117.08
5.5.130.0030.02517.19
5.5.120.0080.02317.24
5.5.110.0090.02217.20
5.5.100.0050.02217.21
5.5.90.0050.02117.25
5.5.80.0030.02917.10
5.5.70.0060.02417.15
5.5.60.0020.02617.21
5.5.50.0080.01916.99
5.5.40.0000.02817.21
5.5.30.0050.02417.16
5.5.20.0020.02817.16
5.5.10.0050.02517.04
5.5.00.0050.03017.24
5.4.450.0030.03815.42
5.4.440.0070.04315.29
5.4.430.0130.03815.30
5.4.420.0050.04515.17
5.4.410.0100.03915.28
5.4.400.0070.03314.99
5.4.390.0070.04115.07
5.4.380.0100.03815.08
5.4.370.0020.04315.18
5.4.360.0060.04015.03
5.4.350.0090.02815.13
5.4.340.0050.03715.15
5.4.330.0060.00611.22
5.4.320.0070.03915.08
5.4.310.0060.04315.11
5.4.300.0050.03715.20
5.4.290.0080.02115.07
5.4.280.0140.01615.10
5.4.270.0060.02015.23
5.4.260.0060.01815.02
5.4.250.0010.02615.14
5.4.240.0060.02514.83
5.4.230.0030.02015.07
5.4.220.0060.01815.20
5.4.210.0050.02015.20
5.4.200.0020.02215.17
5.4.190.0070.02515.02
5.4.180.0050.01815.13
5.4.170.0000.02414.98
5.4.160.0000.02215.16
5.4.150.0020.03014.86
5.4.140.0070.02013.69
5.4.130.0030.02013.77
5.4.120.0030.02813.71
5.4.110.0020.02213.81
5.4.100.0090.01513.77
5.4.90.0030.02013.88
5.4.80.0070.03213.78
5.4.70.0050.01813.67
5.4.60.0030.02213.67
5.4.50.0030.02113.71
5.4.40.0020.02413.78
5.4.30.0050.02113.75
5.4.20.0020.02013.66
5.4.10.0000.03213.64
5.4.00.0070.01913.43
5.3.290.0100.03812.54
5.3.280.0050.02012.50
5.3.270.0040.02112.61
5.3.260.0050.02512.62
5.3.250.0050.02612.56
5.3.240.0020.02312.49
5.3.230.0070.01712.57
5.3.220.0070.02212.56
5.3.210.0020.03312.42
5.3.200.0060.01912.48
5.3.190.0020.02912.49
5.3.180.0020.02512.61
5.3.170.0020.02212.61
5.3.160.0050.02212.58
5.3.150.0060.02012.65
5.3.140.0090.01912.54
5.3.130.0000.02712.54
5.3.120.0050.01912.53
5.3.110.0050.04112.57
5.3.100.0060.02412.29
5.3.90.0050.02712.21
5.3.80.0030.02512.17
5.3.70.0090.01712.11
5.3.60.0040.02012.24
5.3.50.0050.02312.12
5.3.40.0080.01712.05
5.3.30.0050.03512.15
5.3.20.0030.03811.99
5.3.10.0050.01711.93
5.3.00.0050.02911.81
5.2.170.0030.02711.17
5.2.160.0000.03011.01
5.2.150.0030.02711.11
5.2.140.0000.03311.16
5.2.130.0000.03011.09
5.2.120.0030.02311.16
5.2.110.0000.04310.92
5.2.100.0030.06311.01
5.2.90.0000.06311.16
5.2.80.0000.06311.15
5.2.70.0030.03311.08
5.2.60.0000.04711.04
5.2.50.0030.04710.97
5.2.40.0100.05311.00
5.2.30.0070.06010.96
5.2.20.0070.06011.01
5.2.10.0130.05010.84
5.2.00.0030.04310.80
5.1.60.0070.04710.47
5.1.50.0100.02310.47
5.1.40.0000.05710.47
5.1.30.0030.03310.47
5.1.20.0130.04710.47
5.1.10.0030.05710.47
5.1.00.0100.05010.47
5.0.50.0030.04710.47
5.0.40.0030.0408.36
5.0.30.0070.0438.11
5.0.20.0070.0238.03
5.0.10.0000.0408.05
5.0.00.0030.0478.00
4.4.90.0070.0206.69
4.4.80.0000.0236.69
4.4.70.0030.0236.68
4.4.60.0000.0236.68
4.4.50.0000.0376.68
4.4.40.0000.0436.68
4.4.30.0030.0206.68
4.4.20.0000.0236.68
4.4.10.0000.0236.68
4.4.00.0000.0376.68
4.3.110.0030.0236.68
4.3.100.0070.0176.68
4.3.90.0030.0276.68
4.3.80.0000.0376.68
4.3.70.0000.0236.68
4.3.60.0000.0276.68
4.3.50.0000.0236.68
4.3.40.0000.0336.61
4.3.30.0030.0206.61
4.3.20.0000.0306.60
4.3.10.0000.03710.47
4.3.00.0030.02010.47

preferences:
62.87 ms | 401 KiB | 5 Q