3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = preg_match('[asdf]','asdf'); echo array_flip(get_defined_constants(true)['pcre'])[preg_last_error()];

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.0030.01316.63
8.3.50.0090.00616.64
8.3.40.0120.00319.09
8.3.30.0040.01119.15
8.3.20.0000.00820.35
8.3.10.0070.00021.76
8.3.00.0080.00019.50
8.2.180.0090.00618.41
8.2.170.0110.00422.96
8.2.160.0100.00620.52
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0060.00319.41
8.2.100.0090.00317.97
8.2.90.0040.00418.09
8.2.80.0000.00818.05
8.2.70.0080.00018.04
8.2.60.0040.00418.19
8.2.50.0000.00818.10
8.2.40.0080.00020.59
8.2.30.0040.00421.13
8.2.20.0080.00018.21
8.2.10.0040.00418.09
8.2.00.0040.00418.01
8.1.280.0120.00925.92
8.1.270.0060.00322.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00621.98
8.1.230.0090.00320.93
8.1.220.0030.00521.14
8.1.210.0000.00818.98
8.1.200.0030.00717.48
8.1.190.0000.00917.48
8.1.180.0000.00818.10
8.1.170.0080.00018.77
8.1.160.0030.00318.96
8.1.150.0030.00620.51
8.1.140.0040.00419.58
8.1.130.0070.00318.99
8.1.120.0040.00417.51
8.1.110.0030.00517.54
8.1.100.0000.00917.58
8.1.90.0000.00717.54
8.1.80.0000.00817.59
8.1.70.0000.00717.48
8.1.60.0030.00617.74
8.1.50.0000.00817.54
8.1.40.0000.00917.59
8.1.30.0000.00717.71
8.1.20.0040.00417.80
8.1.10.0050.00317.73
8.1.00.0050.00317.68
8.0.300.0060.00620.01
8.0.290.0030.00617.00
8.0.280.0050.00218.48
8.0.270.0030.00317.25
8.0.260.0030.00317.12
8.0.250.0070.00017.20
8.0.240.0040.00417.11
8.0.230.0030.00317.01
8.0.220.0000.00716.98
8.0.210.0050.00317.03
8.0.200.0030.00317.15
8.0.190.0020.00517.01
8.0.180.0000.01117.01
8.0.170.0040.00417.00
8.0.160.0060.00317.09
8.0.150.0040.00417.10
8.0.140.0040.00417.08
8.0.130.0040.00413.59
8.0.120.0000.00816.91
8.0.110.0030.00516.96
8.0.100.0040.00417.02
8.0.90.0000.00717.00
8.0.80.0140.00717.05
8.0.70.0040.00416.93
8.0.60.0040.00416.98
8.0.50.0070.00017.01
8.0.30.0070.00917.23
8.0.20.0080.01217.40
8.0.10.0040.00417.12
8.0.00.0130.00316.83
7.4.330.0000.00615.55
7.4.320.0050.00316.66
7.4.300.0070.00016.83
7.4.290.0000.00716.80
7.4.280.0030.00516.70
7.4.270.0070.00016.78
7.4.260.0000.00816.64
7.4.250.0000.00816.61
7.4.240.0030.00516.74
7.4.230.0000.00716.60
7.4.220.0110.00616.76
7.4.210.0080.00716.75
7.4.200.0000.00816.88
7.4.160.0080.00916.83
7.4.150.0190.00717.40
7.4.140.0140.00717.86
7.4.130.0150.00716.73
7.4.120.0130.00516.77
7.3.330.0050.00013.43
7.3.320.0050.00013.18
7.3.310.0040.00416.47
7.3.300.0030.00316.36
7.3.290.0000.00716.45
7.3.280.0070.00916.48
7.3.270.0110.00617.40
7.3.260.0100.00716.57
7.3.250.0100.00816.64
7.3.240.0090.00816.60
7.1.60.0200.00734.79

preferences:
38.48 ms | 400 KiB | 5 Q