3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = "Start Test, the data follows.<br><br>\n\0"; echo "\n<br><br>The data is about to be passed to preg_match(). If you do not see the word 'Success' after this line, the program has crashed.<br>\n"; $truefalsetest=preg_match('%^(?: [\x09\x0A\x0D\x20-\x7E] # ASCII | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15 | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 )*$%xs', $contents); echo "Success. Return value of preg_match() = $truefalsetest."; ?>

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.0130.00316.75
8.3.50.0260.00716.40
8.3.40.0000.01519.01
8.3.30.0100.00318.79
8.3.20.0060.00318.78
8.3.10.0110.00618.90
8.3.00.0060.00319.38
8.2.180.0100.00716.38
8.2.170.0120.00322.96
8.2.160.0150.00621.19
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0030.00620.88
8.2.110.0060.00321.14
8.2.100.0110.00017.91
8.2.90.0040.00719.34
8.2.80.0050.00319.30
8.2.70.0080.00017.49
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0040.00417.95
8.2.20.0040.00417.85
8.2.10.0040.00417.96
8.2.00.0080.00017.81
8.1.280.0110.00325.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.35
8.1.230.0110.00020.85
8.1.220.0000.00917.74
8.1.210.0000.00919.03
8.1.200.0100.00017.35
8.1.190.0040.00417.40
8.1.180.0030.00618.10
8.1.170.0000.00918.71
8.1.160.0040.00418.99
8.1.150.0050.00318.77
8.1.140.0000.00717.54
8.1.130.0000.00817.87
8.1.120.0070.00017.45
8.1.110.0000.00717.57
8.1.100.0000.00717.55
8.1.90.0040.00417.57
8.1.80.0040.00417.45
8.1.70.0060.00317.44
8.1.60.0040.00417.71
8.1.50.0030.00617.45
8.1.40.0000.00917.50
8.1.30.0040.00417.71
8.1.20.0000.00717.76
8.1.10.0070.00017.59
8.1.00.0000.00817.45
8.0.300.0090.00019.97
8.0.290.0050.00216.88
8.0.280.0000.00718.52
8.0.270.0080.00017.21
8.0.260.0000.00716.98
8.0.250.0030.00317.13
8.0.240.0070.00017.00
8.0.230.0000.00717.04
8.0.220.0040.00416.96
8.0.210.0040.00417.01
8.0.200.0060.00017.04
8.0.190.0000.00817.11
8.0.180.0050.00317.08
8.0.170.0030.00617.06
8.0.160.0030.00517.01
8.0.150.0030.00516.95
8.0.140.0000.00816.97
8.0.130.0000.00613.42
8.0.120.0040.00417.04
8.0.110.0040.00416.93
8.0.100.0030.00317.12
8.0.90.0000.00717.00
8.0.80.0060.00917.05
8.0.70.0000.00716.89
8.0.60.0070.00016.95
8.0.50.0000.00816.95
8.0.30.0190.00616.93
8.0.20.0130.00817.23
8.0.10.0000.00717.22
8.0.00.0120.00916.85
7.4.330.0000.00513.13
7.4.320.0060.00016.59
7.4.300.0030.00316.77
7.4.290.0080.00016.65
7.4.280.0000.00816.74
7.4.270.0040.00416.79
7.4.260.0000.00713.38
7.4.250.0000.00816.79
7.4.240.0040.00416.74
7.4.230.0030.00316.56
7.4.220.0160.00916.63
7.4.210.0060.00916.74
7.4.200.0030.00316.64
7.4.190.0000.00816.75
7.4.160.0060.01616.74
7.4.150.0130.00716.67
7.4.140.0130.00916.83
7.4.130.0070.01016.55
7.4.120.0050.01216.68
7.4.110.0030.01516.80
7.4.100.0030.01416.55
7.4.90.0170.00716.61
7.4.80.0090.00819.39
7.4.70.0060.01016.60
7.4.60.0070.01016.47
7.4.50.0100.00316.63
7.4.40.0030.00916.54
7.4.30.0130.00516.77
7.4.10.0030.01315.09
7.4.00.0060.01014.96
7.3.330.0060.00013.33
7.3.320.0060.00013.08
7.3.310.0050.00216.30
7.3.300.0040.00416.38
7.3.290.0090.01016.32
7.3.280.0080.00916.34
7.3.270.0100.00716.61
7.3.260.0060.00916.41
7.3.250.0150.00416.65
7.3.240.0080.01216.30
7.3.230.0110.00716.88
7.3.210.0040.01216.43
7.3.200.0120.01116.62
7.3.190.0140.01016.66
7.3.180.0090.00616.69
7.3.170.0110.00716.64
7.3.160.0090.00916.47
7.3.130.0060.01214.94
7.3.120.0070.01014.84
7.3.110.0060.01215.15
7.3.100.0070.01014.76
7.3.90.0080.00514.90
7.3.80.0060.00814.88
7.3.70.0080.00714.92
7.3.60.0020.01014.97
7.3.50.0040.01114.83
7.3.40.0080.00714.94
7.3.30.0080.00415.02
7.3.20.0030.01116.60
7.3.10.0110.00216.81
7.3.00.0000.01016.69
7.2.330.0090.00916.83
7.2.320.0090.00916.50
7.2.310.0160.00616.64
7.2.300.0000.01716.72
7.2.290.0030.01316.85
7.2.260.0070.00715.07
7.2.250.0050.01415.04
7.2.240.0080.00915.31
7.2.230.0130.00415.25
7.2.220.0110.00515.22
7.2.210.0080.00815.22
7.2.200.0070.00715.11
7.2.190.0020.00915.17
7.2.180.0070.00715.05
7.2.170.0040.01015.14
7.2.160.0060.00815.08
7.2.150.0050.00716.85
7.2.140.0050.00817.14
7.2.130.0070.00516.96
7.2.120.0040.01217.01
7.2.110.0050.00916.90
7.2.100.0030.01116.84
7.2.90.0060.00516.99
7.2.80.0070.00717.11
7.2.70.0080.00517.12
7.2.60.0030.01117.08
7.2.50.0060.00916.97
7.2.40.0040.01117.12
7.2.30.0040.01217.17
7.2.20.0050.01017.02
7.2.10.0030.01417.07
7.2.00.0040.01317.88
7.1.330.0070.00715.88
7.1.320.0080.00515.91
7.1.310.0050.00715.86
7.1.300.0030.01015.93
7.1.290.0090.00615.95
7.1.280.0030.01215.93
7.1.270.0110.00715.99
7.1.260.0030.01115.96
7.1.250.0050.00715.92
7.1.240.0050.00615.88
7.1.230.0030.01016.02
7.1.220.0030.01015.85
7.1.210.0030.01015.90
7.1.200.0080.00615.85
7.1.190.0010.00916.07
7.1.180.0060.00815.85
7.1.170.0080.00615.78
7.1.160.0080.00615.72
7.1.150.0030.01315.86
7.1.140.0020.01315.90
7.1.130.0090.00715.85
7.1.120.0120.00515.79
7.1.110.0100.00516.00
7.1.100.0060.00716.81
7.1.90.0030.01015.98
7.1.80.0050.01015.99
7.1.70.0050.00716.40
7.1.60.0090.00817.01
7.1.50.0090.00616.36
7.1.40.0070.00715.95
7.1.30.0070.00915.92
7.1.20.0050.01115.89
7.1.10.0050.00515.69
7.1.00.0020.03118.14
7.0.330.0010.00815.60
7.0.320.0090.00515.68
7.0.310.0020.00915.49
7.0.300.0050.01015.41
7.0.290.0080.00715.66
7.0.280.0030.01215.45
7.0.270.0100.00515.66
7.0.260.0060.00715.61
7.0.250.0070.00615.55
7.0.240.0080.00515.68
7.0.230.0030.01115.71
7.0.220.0080.00615.52
7.0.210.0050.01115.64
7.0.200.0170.00715.39
7.0.190.0050.00515.57
7.0.180.0070.00515.60
7.0.170.0020.00915.49
7.0.160.0060.00715.54
7.0.150.0030.00815.75
7.0.140.0050.02817.72
7.0.130.0050.00715.70
7.0.120.0060.02917.65
7.0.110.0120.00315.59
7.0.100.0040.00615.68
7.0.90.0050.00815.65
7.0.80.0020.01015.75
7.0.70.0080.00515.53
7.0.60.0060.02717.09
7.0.50.0050.03116.45
7.0.40.0070.03515.88
7.0.30.0140.03115.83
7.0.20.0120.03215.88
7.0.10.0090.02515.74
7.0.00.0090.03215.74
5.6.400.0040.00914.44
5.6.390.0040.00814.38
5.6.380.0030.01014.48
5.6.370.0090.00214.43
5.6.360.0080.00514.57
5.6.350.0090.00714.28
5.6.340.0040.01014.24
5.6.330.0020.01314.40
5.6.320.0050.01114.46
5.6.310.0140.00414.63
5.6.300.0070.00614.47
5.6.290.0050.01014.46
5.6.280.0070.03416.44
5.6.270.0110.00414.52
5.6.260.0040.01214.41
5.6.250.0050.00714.53
5.6.240.0050.00414.33
5.6.230.0050.00814.64
5.6.220.0100.00414.30
5.6.210.0060.03216.40
5.6.200.0060.03115.60
5.6.190.0070.03316.39
5.6.180.0170.03016.47
5.6.170.0170.02016.42
5.6.160.0020.02116.47
5.6.150.0030.01915.73
5.6.140.0040.01915.71
5.6.130.0080.02915.69
5.6.120.0110.02916.63
5.6.110.0050.03016.62
5.6.100.0040.03616.64
5.6.90.0080.02616.65
5.6.80.0070.02816.27
5.6.70.0100.03316.40
5.6.60.0080.00814.30
5.6.50.0040.00814.43
5.6.40.0010.00814.09
5.6.30.0010.01214.40
5.6.20.0030.00714.23
5.6.10.0060.00614.31
5.6.00.0020.01114.21
5.5.380.0040.00814.31
5.5.370.0030.00814.33
5.5.360.0060.00714.29
5.5.350.0110.03516.24
5.5.340.0080.02915.64
5.5.330.0070.02816.35
5.5.320.0130.02716.24
5.5.310.0190.02216.46
5.5.300.0020.02215.66
5.5.290.0030.02015.43
5.5.280.0050.03216.54
5.5.270.0040.03516.51
5.5.260.0120.02716.39
5.5.250.0040.02016.42
5.5.240.0070.02616.09
5.5.230.0050.01114.31
5.5.220.0110.00413.93
5.5.210.0030.00614.39
5.5.200.0030.00914.20
5.5.190.0030.00914.22
5.5.180.0050.00614.26
5.5.170.0060.00714.25
5.5.160.0020.01314.12
5.5.150.0030.01014.28
5.5.140.0030.00614.15
5.5.130.0050.00914.05
5.5.120.0050.00814.17
5.5.110.0100.00514.42
5.5.100.0030.01014.15
5.5.90.0100.00214.18
5.5.80.0070.00714.42
5.5.70.0030.00914.40
5.5.60.0070.00714.27
5.5.50.0030.00714.20
5.5.40.0010.01014.17
5.5.30.0050.00814.45
5.5.20.0040.00714.21
5.5.10.0060.00614.18
5.5.00.0060.00614.26
5.4.450.0030.02115.10
5.4.440.0090.02315.12
5.4.430.0090.02915.00
5.4.420.0070.02915.01
5.4.410.0050.03015.07
5.4.400.0070.02214.89
5.4.390.0070.02014.89
5.4.380.0040.02214.93
5.4.370.0070.01514.99
5.4.360.0040.02014.99
5.4.350.0040.02315.01
5.4.340.0060.01814.94
5.4.330.0020.00712.93
5.4.320.0080.01614.94
5.4.310.0030.02514.89
5.4.300.0040.02715.01
5.4.290.0060.02214.96
5.4.280.0020.01715.02
5.4.270.0070.02715.01
5.4.260.0010.02215.02
5.4.250.0080.02315.00
5.4.240.0060.02514.94
5.4.230.0090.02714.99
5.4.220.0030.02214.99
5.4.210.0030.03215.02
5.4.200.0030.03415.01
5.4.190.0040.02114.89
5.4.180.0020.02914.89
5.4.170.0060.02315.01
5.4.160.0050.02315.01
5.4.150.0060.01614.93
5.4.140.0040.02914.05
5.4.130.0050.02914.03
5.4.120.0100.02214.05
5.4.110.0050.02614.10
5.4.100.0060.02014.05
5.4.90.0020.03014.10
5.4.80.0080.02714.04
5.4.70.0060.02614.05
5.4.60.0020.02714.07
5.4.50.0050.02514.08
5.4.40.0010.03414.04
5.4.30.0060.02814.03
5.4.20.0040.01514.07
5.4.10.0050.02014.08
5.4.00.0030.02613.90
5.3.290.0040.02313.50
5.3.280.0040.02113.47
5.3.270.0040.02013.44
5.3.260.0070.02213.52
5.3.250.0070.02713.49
5.3.240.0040.03013.49
5.3.230.0070.02513.47
5.3.220.0090.02213.47
5.3.210.0100.02213.50
5.3.200.0060.02113.48
5.3.190.0030.02913.52
5.3.180.0010.02113.47
5.3.170.0030.03113.48
5.3.160.0080.02513.47
5.3.150.0060.03013.43
5.3.140.0060.01813.47
5.3.130.0040.03013.43
5.3.120.0030.03113.47
5.3.110.0030.02813.47
5.3.100.0030.03013.29
5.3.90.0020.02913.28
5.3.80.0010.02713.28
5.3.70.0020.01813.28
5.3.60.0030.01713.27
5.3.50.0030.01613.22
5.3.40.0040.01613.27
5.3.30.0040.02813.20
5.3.20.0080.02513.17
5.3.10.0020.02513.16
5.3.00.0050.02113.15
5.2.170.0030.03711.18
5.2.160.0100.02311.07
5.2.150.0030.06311.18
5.2.140.0030.05311.07
5.2.130.0100.06011.01
5.2.120.0000.03311.15
5.2.110.0070.04311.29
5.2.100.0030.04011.13
5.2.90.0030.06011.21
5.2.80.0230.02011.05
5.2.70.0030.06711.00
5.2.60.0030.06311.23
5.2.50.0070.06310.97
5.2.40.0070.06311.04
5.2.30.0070.06710.98
5.2.20.0030.03710.98
5.2.10.0130.03010.93
5.2.00.0130.05710.69
5.1.60.0030.0509.93
5.1.50.0030.05310.01
5.1.40.0030.0539.98
5.1.30.0030.05710.36
5.1.20.0070.04710.34
5.1.10.0000.03710.23
5.1.00.0000.04010.09
5.0.50.0030.0208.48
5.0.40.0100.0308.50
5.0.30.0070.0338.42
5.0.20.0000.0478.42
5.0.10.0030.0478.42
5.0.00.0000.0338.42
4.4.90.0070.0238.42
4.4.80.0030.0308.42
4.4.70.0000.0308.42
4.4.60.0000.0378.42
4.4.50.0000.0278.42
4.4.40.0030.0438.42
4.4.30.0030.0378.42
4.4.20.0000.0378.42
4.4.10.0000.0378.42
4.4.00.0030.0338.42
4.3.110.0030.0238.42
4.3.100.0000.0178.42
4.3.90.0000.0308.42
4.3.80.0070.0208.42
4.3.70.0000.0238.42
4.3.60.0030.0238.42
4.3.50.0030.0238.42
4.3.40.0070.0408.42
4.3.30.0000.0238.42
4.3.20.0000.0208.42
4.3.10.0000.0378.42
4.3.00.0000.0378.42

preferences:
48.84 ms | 401 KiB | 5 Q