3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * This should produce failures when using a version of libpcre older than 8.32 */ error_reporting(E_ALL); $tests = array(); $test_string = mb_convert_encoding('&#xAC00;&#xAC01;&#x0BA8;', 'UTF-8', 'HTML-ENTITIES'); $tests['string_length'] = (mb_strlen($test_string, 'UTF-8') === 3); $tests['string_match'] = (preg_match('/^\X\X\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)) . "\n"; 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.01018.80
8.3.50.0070.01322.18
8.3.40.0110.01119.34
8.3.30.0080.00819.09
8.3.20.0080.00019.14
8.3.10.0050.00321.04
8.3.00.0070.00318.89
8.2.180.0140.00716.88
8.2.170.0070.00722.96
8.2.160.0120.00920.38
8.2.150.0000.01424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00521.16
8.2.110.0060.00320.32
8.2.100.0070.00418.28
8.2.90.0000.00819.38
8.2.80.0080.00018.00
8.2.70.0040.00418.00
8.2.60.0030.00618.18
8.2.50.0000.00818.07
8.2.40.0090.00018.34
8.2.30.0000.00819.33
8.2.20.0000.00817.99
8.2.10.0000.00718.14
8.2.00.0000.01418.01
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.01122.48
8.1.230.0070.00420.93
8.1.220.0040.00418.77
8.1.210.0050.00319.01
8.1.200.0040.00417.60
8.1.190.0030.00517.53
8.1.180.0090.00018.10
8.1.170.0030.00618.90
8.1.160.0000.00719.02
8.1.150.0000.00818.86
8.1.140.0070.00417.67
8.1.130.0050.00317.96
8.1.120.0000.00717.70
8.1.110.0050.00217.71
8.1.100.0000.00717.55
8.1.90.0000.00717.68
8.1.80.0040.00417.70
8.1.70.0000.00717.63
8.1.60.0000.00817.74
8.1.50.0030.00617.64
8.1.40.0040.00417.77
8.1.30.0000.00817.69
8.1.20.0030.00617.77
8.1.10.0060.00317.73
8.1.00.0060.00317.72
8.0.300.0050.00220.04
8.0.290.0040.00417.30
8.0.280.0050.00318.49
8.0.270.0000.00717.30
8.0.260.0030.00317.16
8.0.250.0070.00017.22
8.0.240.0090.00017.37
8.0.230.0000.00717.36
8.0.220.0030.00317.18
8.0.210.0030.00317.34
8.0.200.0040.00417.42
8.0.190.0040.00417.33
8.0.180.0000.00817.32
8.0.170.0050.00517.36
8.0.160.0040.00417.24
8.0.150.0030.00517.26
8.0.140.0020.00517.23
8.0.130.0030.00313.67
8.0.120.0030.00617.13
8.0.110.0050.00317.07
8.0.100.0000.00817.08
8.0.90.0000.00817.17
8.0.80.0040.01117.29
8.0.70.0070.00017.09
8.0.60.0000.00717.31
8.0.50.0000.00717.27
8.0.30.0110.00817.40
8.0.20.0090.00917.40
8.0.10.0040.00417.06
8.0.00.0080.01617.08
7.4.330.0050.00016.81
7.4.320.0000.00716.76
7.4.300.0030.00316.96
7.4.290.0030.00316.85
7.4.280.0000.00816.91
7.4.270.0000.00816.84
7.4.260.0050.00013.63
7.4.250.0000.00816.83
7.4.240.0040.00416.94
7.4.230.0070.00016.87
7.4.220.0090.00916.88
7.4.210.0110.00316.96
7.4.200.0030.00316.81
7.4.190.0070.00016.86
7.4.160.0150.00316.73
7.4.150.0100.01317.40
7.4.140.0140.00717.86
7.4.130.0070.01316.93
7.4.120.0070.00916.82
7.4.110.0070.01016.75
7.4.100.0140.00316.88
7.4.90.0100.01016.76
7.4.80.0000.01619.39
7.4.70.0110.00716.68
7.4.60.0140.00716.88
7.4.50.0030.00316.84
7.4.40.0090.00622.77
7.4.30.0190.00416.79
7.4.10.0100.01015.27
7.4.00.0070.01015.18
7.3.330.0000.00713.33
7.3.320.0050.00013.55
7.3.310.0030.00316.69
7.3.300.0000.00716.57
7.3.290.0080.00816.60
7.3.280.0110.00416.66
7.3.270.0040.01417.40
7.3.260.0110.00918.24
7.3.250.0100.00616.69
7.3.240.0070.01016.74
7.3.230.0130.00416.83
7.3.210.0030.01316.64
7.3.200.0140.00319.39
7.3.190.0180.00416.70
7.3.180.0030.01316.70
7.3.170.0170.00016.75
7.3.160.0130.00316.64
7.3.130.0080.01015.29
7.3.120.0060.01015.11
7.3.110.0050.01315.13
7.3.100.0100.00515.04
7.3.90.0090.00614.98
7.3.80.0050.00915.08
7.3.70.0060.00615.01
7.3.60.0070.00815.01
7.3.50.0080.00515.15
7.3.40.0070.00515.08
7.3.30.0080.00715.12
7.3.20.0040.01116.97
7.3.10.0070.00616.86
7.3.00.0030.01216.97
7.2.330.0120.00616.89
7.2.320.0180.00317.07
7.2.310.0160.00016.96
7.2.300.0090.01516.83
7.2.290.0070.01116.88
7.2.260.0140.00515.29
7.2.250.0060.01115.29
7.2.240.0050.01215.34
7.2.230.0070.00915.34
7.2.220.0030.01315.29
7.2.210.0070.00815.33
7.2.200.0070.00715.29
7.2.190.0050.01015.35
7.2.180.0040.00915.22
7.2.170.0040.00815.27
7.2.160.0000.01615.35
7.2.150.0030.01017.36
7.2.140.0050.00917.26
7.2.130.0050.00717.21
7.2.120.0050.01217.20
7.2.110.0050.00817.08
7.2.100.0070.00717.04
7.2.90.0130.00517.06
7.2.80.0080.00717.29
7.2.70.0120.00317.21
7.2.60.0080.00617.13
7.2.50.0070.00517.20
7.2.40.0050.01017.24
7.2.30.0030.01117.25
7.2.20.0120.00517.18
7.2.10.0070.00917.12
7.2.00.0030.01117.95
7.1.330.0020.01216.14
7.1.320.0040.00916.08
7.1.310.0040.01016.05
7.1.300.0060.00816.05
7.1.290.0060.00515.98
7.1.280.0060.00816.02
7.1.270.0060.00815.99
7.1.260.0060.00616.02
7.1.250.0050.00816.07
7.1.240.0080.00516.07
7.1.230.0100.00116.01
7.1.220.0060.01016.04
7.1.210.0070.00616.13
7.1.200.0030.01116.03
7.1.190.0030.01016.06
7.1.180.0060.00915.98
7.1.170.0070.00816.18
7.1.160.0100.00615.97
7.1.150.0050.00815.90
7.1.140.0030.01016.11
7.1.130.0080.00615.86
7.1.120.0080.00516.01
7.1.110.0070.00616.05
7.1.100.0080.00616.88
7.1.90.0050.01016.06
7.1.80.0030.00615.96
7.1.70.0050.00516.51
7.1.60.0070.00616.64
7.1.50.0090.00316.56
7.1.40.0080.00216.37
7.1.30.0040.00616.33
7.1.20.0030.00916.37
7.1.10.0100.00416.37
7.1.00.0080.00416.27
7.0.330.0020.01415.74
7.0.320.0080.00515.50
7.0.310.0030.00815.54
7.0.300.0040.00815.52
7.0.290.0060.00815.65
7.0.280.0030.01115.79
7.0.270.0050.00815.75
7.0.260.0060.00615.69
7.0.250.0030.01015.74
7.0.240.0080.00315.63
7.0.230.0060.00515.73
7.0.220.0070.00515.79
7.0.210.0070.00615.71
7.0.200.0050.00816.02
7.0.190.0060.00616.11
7.0.180.0010.01015.93
7.0.170.0030.00716.08
7.0.160.0030.00716.05
7.0.150.0060.00615.86
7.0.140.0020.00815.96
7.0.130.0050.00715.96
7.0.120.0060.00816.10
7.0.110.0050.00816.03
7.0.100.0040.00615.96
7.0.90.0070.00516.01
7.0.80.0020.00915.96
7.0.70.0060.00615.92
7.0.60.0030.00615.90
7.0.50.0040.00916.07
7.0.40.0030.00514.51
7.0.30.0040.00714.45
7.0.20.0010.01014.50
7.0.10.0050.00514.51
7.0.00.0000.01114.54
5.6.400.0050.00714.47
5.6.390.0080.00814.58
5.6.380.0050.00914.66
5.6.370.0050.00514.73
5.6.360.0030.00814.50
5.6.350.0040.00514.81
5.6.340.0100.00814.77
5.6.330.0030.01014.92
5.6.320.0080.00614.71
5.6.310.0030.01314.31
5.6.300.0050.02516.61
5.6.290.0010.02116.59
5.6.280.0040.02216.85
5.6.270.0080.02716.72
5.6.260.0080.01816.68
5.6.250.0020.02116.58
5.6.240.0050.01916.69
5.6.230.0060.02016.65
5.6.220.0060.01816.86
5.6.210.0040.02016.88
5.6.200.0050.01916.71
5.6.190.0040.01816.62
5.6.180.0090.01616.74
5.6.170.0050.01816.82
5.6.160.0010.02416.84
5.6.150.0020.02216.48
5.6.140.0070.01616.67
5.6.130.0050.01716.62
5.6.120.0050.02116.73
5.6.110.0030.01916.54
5.6.100.0070.01716.82
5.6.90.0040.01816.65
5.6.80.0060.01516.38
5.6.70.0020.02116.31
5.6.60.0060.01816.46
5.6.50.0150.01416.31
5.6.40.0050.02116.32
5.6.30.0060.01516.45
5.6.20.0090.01616.49
5.6.10.0060.01616.31
5.6.00.0070.03116.42
5.5.380.0050.01715.55
5.5.370.0060.01915.57
5.5.360.0050.01515.51
5.5.350.0060.02015.45
5.5.340.0050.01815.79
5.5.330.0020.02015.73
5.5.320.0040.01815.61
5.5.310.0050.01815.76
5.5.300.0050.01915.70
5.5.290.0040.02015.79
5.5.280.0030.02215.68
5.5.270.0010.02115.62
5.5.260.0020.02415.88
5.5.250.0040.01815.44
5.5.240.0070.01715.51
5.5.230.0060.01615.48
5.5.220.0020.02015.51
5.5.210.0070.02015.35
5.5.200.0030.01915.24
5.5.190.0030.02615.31
5.5.180.0080.01515.27
5.5.170.0060.00614.57
5.5.160.0040.02415.33
5.5.150.0050.01715.53
5.5.140.0100.01715.47
5.5.130.0060.01615.47
5.5.120.0080.01915.56
5.5.110.0040.02015.43
5.5.100.0100.01415.37
5.5.90.0050.01915.24
5.5.80.0070.01615.45
5.5.70.0050.01715.29
5.5.60.0020.01815.41
5.5.50.0030.01715.25
5.5.40.0060.01715.33
5.5.30.0070.01715.41
5.5.20.0020.02115.35
5.5.10.0050.01615.38
5.5.00.0060.01915.17
5.4.450.0040.01615.36
5.4.440.0010.01715.39
5.4.430.0040.01615.35
5.4.420.0070.01715.39
5.4.410.0070.01415.35
5.4.400.0060.01315.24
5.4.390.0040.02415.28
5.4.380.0030.02115.21
5.4.370.0060.01615.20
5.4.360.0020.01615.25
5.4.350.0020.01615.23
5.4.340.0030.01915.25
5.4.330.0050.00513.35
5.4.320.0010.02115.21
5.4.310.0010.02015.21
5.4.300.0030.01715.25
5.4.290.0060.01615.23
5.4.280.0060.02315.17
5.4.270.0050.01615.22
5.4.260.0040.01615.25
5.4.250.0030.01815.22
5.4.240.0070.01315.28
5.4.230.0030.01915.25
5.4.220.0070.01415.26
5.4.210.0050.01515.24
5.4.200.0050.01415.28
5.4.190.0070.01415.29
5.4.180.0050.01415.22
5.4.170.0050.01915.29
5.4.160.0040.02215.22
5.4.150.0080.01515.27
5.4.140.0000.02014.33
5.4.130.0010.01714.43
5.4.120.0010.02614.39
5.4.110.0060.01714.47
5.4.100.0030.02314.46
5.4.90.0040.02914.45
5.4.80.0040.02114.45
5.4.70.0050.01414.41
5.4.60.0040.01614.36
5.4.50.0030.01714.44
5.4.40.0020.02114.45
5.4.30.0040.01714.44
5.4.20.0040.01514.35
5.4.10.0050.01414.42
5.4.00.0040.01614.22
5.3.290.0060.01713.90
5.3.280.0030.01613.90
5.3.270.0000.03113.90
5.3.260.0040.01713.90
5.3.250.0040.01513.90
5.3.240.0040.01513.90
5.3.230.0040.01613.90
5.3.220.0020.01913.90
5.3.210.0080.02213.90
5.3.200.0040.02013.90
5.3.190.0020.01913.90
5.3.180.0020.02013.90
5.3.170.0060.01413.90
5.3.160.0050.01613.90
5.3.150.0060.01313.90
5.3.140.0030.02013.90
5.3.130.0040.01513.90
5.3.120.0020.01913.90
5.3.110.0050.02413.90
5.3.100.0070.01513.90
5.3.90.0040.01513.90
5.3.80.0030.01513.90
5.3.70.0050.02613.90
5.3.60.0060.02113.90
5.3.50.0050.01713.90
5.3.40.0040.02013.90
5.3.30.0030.01613.90
5.3.20.0050.01413.90
5.3.10.0030.01613.90
5.3.00.0030.01513.90
5.2.170.0000.03415.00
5.2.160.0000.03115.00
5.2.150.0060.02715.00
5.2.140.0000.05815.00
5.2.130.0060.02815.00
5.2.120.0000.03315.00
5.2.110.0030.03515.00
5.2.100.0060.04315.00
5.2.90.0000.03315.00
5.2.80.0070.02915.00
5.2.70.0060.02715.00
5.2.60.0000.03215.00
5.2.50.0030.03515.00
5.2.40.0030.03115.00
5.2.30.0000.03515.00
5.2.20.0000.06415.00
5.2.10.0030.06215.00
5.2.00.0030.02815.00
5.1.60.0000.03015.00
5.1.50.0030.04615.00
5.1.40.0000.02615.00
5.1.30.0060.02215.00
5.1.20.0030.03415.00
5.1.10.0040.02515.00
5.1.00.0000.02715.00
5.0.50.0070.01715.00
5.0.40.0060.01915.00
5.0.30.0030.04315.00
5.0.20.0070.03315.00
5.0.10.0000.02215.00
5.0.00.0030.06615.00
4.4.90.0000.01815.00
4.4.80.0000.01715.00
4.4.70.0000.01715.00
4.4.60.0000.03715.00
4.4.50.0000.03315.00
4.4.40.0060.02115.00
4.4.30.0030.01515.00
4.4.20.0040.01415.00
4.4.10.0030.01415.00
4.4.00.0000.04415.00
4.3.110.0000.01915.00
4.3.100.0000.01715.00
4.3.90.0000.03715.00
4.3.80.0000.02715.00
4.3.70.0000.01715.00
4.3.60.0000.01915.00
4.3.50.0030.01615.00
4.3.40.0000.02715.00
4.3.30.0000.01715.00
4.3.20.0030.01615.00
4.3.10.0000.01715.00
4.3.00.0030.01415.00

preferences:
37.98 ms | 401 KiB | 5 Q