3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error_handler = function() { throw new Exception(); }; set_error_handler($error_handler, E_NOTICE | E_WARNING); if (false === preg_match('```', null)) { $error_handler(); } restore_error_handler();

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.00918.32
8.3.50.0080.00821.92
8.3.40.0150.00018.71
8.3.30.0070.01419.18
8.3.20.0000.00720.34
8.3.10.0000.00823.48
8.3.00.0030.00619.80
8.2.180.0140.00025.92
8.2.170.0140.00322.96
8.2.160.0060.00920.43
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.38
8.2.110.0030.00620.43
8.2.100.0090.00617.91
8.2.90.0050.00317.91
8.2.80.0060.00318.28
8.2.70.0080.00017.80
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0000.00820.41
8.2.30.0040.00418.32
8.2.20.0000.00717.75
8.2.10.0040.00417.93
8.2.00.0030.00719.53
8.1.280.0120.00325.92
8.1.270.0040.00423.61
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.01123.77
8.1.230.0080.00322.80
8.1.220.0000.00817.74
8.1.210.0080.00018.97
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00618.62
8.1.160.0050.00222.20
8.1.150.0080.00018.63
8.1.140.0000.00717.36
8.1.130.0000.00717.78
8.1.120.0000.00717.51
8.1.110.0030.00617.52
8.1.100.0070.00017.34
8.1.90.0000.00717.35
8.1.80.0050.00317.42
8.1.70.0030.00317.47
8.1.60.0000.00917.63
8.1.50.0050.00317.46
8.1.40.0000.00817.52
8.1.30.0080.00017.55
8.1.20.0030.00517.64
8.1.10.0000.00817.57
8.1.00.0090.00017.48
8.0.300.0000.00819.96
8.0.290.0030.00616.75
8.0.280.0040.00418.29
8.0.270.0000.00717.19
8.0.260.0030.00317.19
8.0.250.0030.00316.94
8.0.240.0030.00316.98
8.0.230.0000.00716.94
8.0.220.0000.00716.90
8.0.210.0030.00316.91
8.0.200.0000.00617.07
8.0.190.0030.00516.95
8.0.180.0000.00916.96
8.0.170.0000.00816.96
8.0.160.0000.00716.97
8.0.150.0090.00316.72
8.0.140.0040.00416.90
8.0.130.0060.00013.39
8.0.120.0000.00816.99
8.0.110.0070.00016.94
8.0.100.0080.00016.87
8.0.90.0030.00617.07
8.0.80.0070.01016.93
8.0.70.0020.00517.00
8.0.60.0000.00817.02
8.0.50.0000.00716.95
8.0.30.0160.00316.86
8.0.20.0060.01417.40
8.0.10.0000.00817.14
8.0.00.0120.00816.90
7.4.330.0030.00315.00
7.4.320.0030.00316.59
7.4.300.0060.00016.59
7.4.290.0000.00716.61
7.4.280.0030.00416.47
7.4.270.0070.00016.63
7.4.260.0030.00316.44
7.4.250.0070.00016.55
7.4.240.0030.00316.54
7.4.230.0080.00016.70
7.4.220.0070.01616.54
7.4.210.0060.00916.61
7.4.200.0040.00416.45
7.4.160.0130.00316.46
7.4.150.0170.00717.40
7.4.140.0090.00817.86
7.4.130.0110.00616.58
7.4.120.0060.01016.47
7.4.110.0060.00916.56
7.4.100.0140.00916.66
7.4.90.0130.00416.49
7.4.80.0120.00819.39
7.4.70.0100.00716.48
7.4.60.0110.00516.57
7.4.50.0030.00616.47
7.4.40.0120.00916.66
7.4.30.0110.01016.50
7.4.00.0090.00615.21
7.3.330.0000.00513.30
7.3.320.0020.00213.33
7.3.310.0000.00716.32
7.3.300.0000.00716.31
7.3.290.0070.00716.29
7.3.280.0100.01016.31
7.3.270.0160.01017.40
7.3.260.0000.02516.35
7.3.250.0110.00916.48
7.3.240.0100.01016.35
7.3.230.0060.00916.54
7.3.210.0120.00316.40
7.3.200.0060.00919.39
7.3.190.0100.00616.49
7.3.180.0090.00616.43
7.3.170.0030.01316.36
7.3.160.0130.00316.36
7.3.120.0030.01214.58
7.3.10.0050.00916.71
7.3.00.0080.00216.74
7.2.330.0080.00816.41
7.2.320.0060.01616.65
7.2.310.0070.01016.66
7.2.300.0000.01616.52
7.2.290.0070.01416.71
7.2.130.0060.00816.77
7.2.120.0040.01016.74
7.2.110.0050.00716.80
7.2.100.0050.00816.89
7.2.90.0060.00716.67
7.2.80.0060.01016.75
7.2.70.0020.01016.76
7.2.60.0050.00816.84
7.2.50.0070.00716.74
7.2.40.0060.00716.87
7.2.30.0100.00516.96
7.2.20.0030.00916.81
7.2.10.0030.00816.82
7.2.00.0070.00717.61
7.1.250.0020.00715.63
7.1.200.0060.00615.75
7.1.100.0080.00418.28
7.1.70.0070.00317.21
7.1.60.0080.01219.70
7.1.50.0000.01916.87
7.1.00.0000.08022.34
7.0.200.0030.00616.79
7.0.140.0000.06722.09
7.0.60.0170.04019.82
7.0.50.0000.06017.86
7.0.40.0130.04320.13
7.0.30.0200.06720.16
7.0.20.0270.05020.05
7.0.10.0000.06020.23
7.0.00.0000.05720.10
5.6.280.0000.07720.93
5.6.210.0070.08320.71
5.6.200.0070.04018.23
5.6.190.0130.07320.68
5.6.180.3270.04320.62
5.6.170.0170.04720.55
5.6.160.0100.08020.54
5.6.150.0070.08018.16
5.6.140.0030.05318.15
5.6.130.0070.08318.16
5.6.120.0000.06720.98
5.6.110.0000.04720.98
5.6.100.0000.07321.00
5.6.90.0030.05720.97
5.6.80.0130.07320.50
5.6.70.3830.03320.52
5.5.350.0000.09020.33
5.5.340.0030.04017.99
5.5.330.0100.08020.28
5.5.320.0370.06320.34
5.5.310.0100.04720.32
5.5.300.0070.08318.08
5.5.290.0070.08018.04
5.5.280.0000.07020.88
5.5.270.0070.07720.74
5.5.260.0130.07320.73
5.5.250.0100.07020.63
5.5.240.0400.06020.27
5.4.450.0100.05343.77
5.4.440.0270.04043.77
5.4.430.0400.04037.49
5.4.420.0100.03737.49
5.4.410.0200.04333.87
5.4.400.0200.04333.63
5.4.390.0330.05033.62
5.4.380.0230.05018.74
5.4.370.0200.06018.58
5.4.360.0430.05018.72
5.4.350.0170.06018.79
5.4.340.0230.04718.50
5.4.320.0060.04312.50
5.4.310.0030.04012.50
5.4.300.0080.03412.51
5.4.290.0090.03512.50
5.4.280.0020.03912.39
5.4.270.0080.03512.39
5.4.260.0060.03812.39
5.4.250.0050.03812.39
5.4.240.0060.03812.39
5.4.230.0080.03512.39
5.4.220.0080.03512.38
5.4.210.0030.04012.39
5.4.200.0070.03712.39
5.4.190.0040.03812.39
5.4.180.0080.03312.38
5.4.170.0050.03712.39
5.4.160.0030.04012.39
5.4.150.0070.03512.39
5.4.140.0070.03512.07
5.4.130.0060.03612.06
5.4.120.0090.03212.02
5.4.110.0070.03512.01
5.4.100.0070.03512.01
5.4.90.0040.03912.01
5.4.80.0060.05012.02
5.4.70.0060.05312.01
5.4.60.0090.05112.01
5.4.50.0070.04712.00
5.4.40.0090.03312.00
5.4.30.0050.03911.99
5.4.20.0060.04612.00
5.4.10.0060.04012.00
5.4.00.0060.03711.48
5.3.290.0070.03612.80
5.3.280.0050.03812.70
5.3.270.0040.04112.73
5.3.260.0080.03712.72
5.3.250.0060.03612.72
5.3.240.0060.03712.72
5.3.230.0080.03612.71
5.3.220.0030.04012.68
5.3.210.0050.04212.68
5.3.200.0070.03812.68
5.3.190.0050.03912.68
5.3.180.0050.03612.68
5.3.170.0070.03612.67
5.3.160.0050.03812.67
5.3.150.0040.03912.67
5.3.140.0080.03412.66
5.3.130.0060.03912.66
5.3.120.0080.03812.66
5.3.110.0100.03612.66
5.3.100.0070.03512.13
5.3.90.0040.03812.10
5.3.80.0070.03512.10
5.3.70.0060.03712.10
5.3.60.0040.03812.10
5.3.50.0070.03612.03
5.3.40.0050.03812.03
5.3.30.0080.03411.99
5.3.20.0030.03811.77
5.3.10.0030.03711.74
5.3.00.0080.03311.72
5.2.170.0080.0299.18
5.2.160.0090.0289.18
5.2.150.0070.0289.18
5.2.140.0050.0329.18
5.2.130.0010.0389.14
5.2.120.0020.0319.14
5.2.110.0050.0289.15
5.2.100.0050.0289.14
5.2.90.0050.0289.14
5.2.80.0060.0299.14
5.2.70.0050.0299.14
5.2.60.0050.0299.09
5.2.50.0010.0349.05
5.2.40.0050.0299.03
5.2.30.0030.0319.01
5.2.20.0060.0279.00
5.2.10.0020.0318.92
5.2.00.0050.0288.78
5.1.60.0040.0238.06
5.1.50.0060.0348.07
5.1.40.0050.0368.05
5.1.30.0080.0328.40
5.1.20.0040.0268.41
5.1.10.0030.0278.14
5.1.00.0050.0248.14
5.0.50.0040.0206.62
5.0.40.0040.0276.48
5.0.30.0050.0306.29
5.0.20.0050.0226.26
5.0.10.0040.0246.24
5.0.00.0030.0316.23
4.4.90.0050.0184.78
4.4.80.0070.0214.75
4.4.70.0090.0194.75
4.4.60.0000.0274.75
4.4.50.0040.0224.77
4.4.40.0040.0434.71
4.4.30.0030.0254.76
4.4.20.0050.0224.84
4.4.10.0050.0224.85
4.4.00.0010.0364.76
4.3.110.0030.0224.67
4.3.100.0030.0214.66
4.3.90.0040.0184.64
4.3.80.0020.0314.59
4.3.70.0000.0214.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0030.0143.28
4.3.20.0010.0163.25
4.3.10.0020.0163.22
4.3.00.0000.01733.62

preferences:
43.07 ms | 401 KiB | 5 Q