3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(EC)\w{2}|(CC)\w{2}|\w(F)\w{2}|(LT)\w{2}|\w(T)\w{2}/'; $str = 'STAR'; preg_match($re, $str, $matches); // Print the entire match result var_dump($matches);

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.130.0030.01218.50
8.3.120.0030.00618.65
8.3.110.0000.00820.94
8.3.100.0070.00324.06
8.3.90.0060.01326.77
8.3.80.0060.00319.36
8.3.70.0150.00018.29
8.3.60.0100.00618.43
8.3.50.0120.00717.33
8.3.40.0100.00318.79
8.3.30.0100.00618.64
8.3.20.0080.00020.25
8.3.10.0080.00021.91
8.3.00.0040.00421.90
8.2.250.0030.00616.93
8.2.240.0140.00418.74
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0130.00326.77
8.2.200.0090.00018.88
8.2.190.0090.00616.99
8.2.180.0030.01218.59
8.2.170.0110.00322.96
8.2.160.0130.00022.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0110.00719.89
8.2.110.0130.00321.24
8.2.100.0080.00318.09
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0040.00421.02
8.2.20.0070.00017.88
8.2.10.0000.00718.09
8.2.00.0000.00817.92
8.1.300.0140.00318.29
8.1.290.0090.00030.84
8.1.280.0100.00725.92
8.1.270.0060.00320.40
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00019.21
8.1.230.0000.01120.36
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.38
8.1.190.0040.00417.36
8.1.180.0000.00918.10
8.1.170.0060.00318.72
8.1.160.0060.00318.72
8.1.150.0070.00020.11
8.1.140.0000.00817.54
8.1.130.0000.00719.09
8.1.120.0080.00317.51
8.1.110.0090.00017.54
8.1.100.0000.00717.53
8.1.90.0040.00417.51
8.1.80.0000.00717.55
8.1.70.0030.00317.44
8.1.60.0040.00417.65
8.1.50.0050.00317.51
8.1.40.0040.00417.63
8.1.30.0040.00417.64
8.1.20.0000.00817.63
8.1.10.0040.00417.71
8.1.00.0040.00817.48
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.32
8.0.270.0030.00317.26
8.0.260.0000.00818.52
8.0.250.0050.00217.08
8.0.240.0040.00417.05
8.0.230.0000.00717.02
8.0.220.0030.00316.87
8.0.210.0000.00716.95
8.0.200.0030.00317.06
8.0.190.0000.00916.93
8.0.180.0030.00517.03
8.0.170.0000.00716.90
8.0.160.0050.00616.92
8.0.150.0000.00816.80
8.0.140.0030.00516.91
8.0.130.0030.00313.36
8.0.120.0030.00616.88
8.0.110.0040.00417.00
8.0.100.0000.00716.97
8.0.90.0070.00016.95
8.0.80.0090.00616.96
8.0.70.0030.00516.85
8.0.60.0050.00316.86
8.0.50.0000.00816.97
8.0.30.0090.00917.11
8.0.20.0100.01017.40
8.0.10.0030.00516.97
8.0.00.0130.00916.79
7.4.330.0000.00515.55
7.4.320.0070.00016.57
7.4.300.0000.00616.64
7.4.290.0040.00416.66
7.4.280.0080.00016.68
7.4.270.0000.00716.67
7.4.260.0000.00716.77
7.4.250.0070.00016.75
7.4.240.0000.00716.73
7.4.230.0030.00316.49
7.4.220.0100.01016.65
7.4.210.0030.01216.75
7.4.200.0000.00716.82
7.4.160.0130.00316.46
7.4.150.0090.00917.40
7.4.140.0090.01017.86
7.4.130.0070.01016.33
7.4.120.0100.01116.66
7.4.110.0110.00716.38
7.4.100.0070.01016.60
7.4.90.0140.00316.57
7.4.80.0170.00019.39
7.4.70.0100.01316.39
7.4.60.0060.01016.53
7.4.50.0090.00316.36
7.4.40.0100.01416.55
7.4.30.0080.00816.59
7.4.00.0110.00314.95
7.3.330.0050.00013.12
7.3.320.0000.00713.13
7.3.310.0030.00316.25
7.3.300.0000.00616.31
7.3.290.0040.01316.26
7.3.280.0110.01016.29
7.3.270.0060.01217.40
7.3.260.0090.00916.40
7.3.250.0110.00616.43
7.3.240.0090.00916.39
7.3.230.0060.01116.44
7.3.210.0040.01516.33
7.3.200.0060.01016.47
7.3.190.0090.00916.49
7.3.180.0110.01116.67
7.3.170.0150.00616.29
7.3.160.0030.01616.43
7.3.10.0080.00616.44
7.3.00.0080.00316.72
7.2.330.0090.01016.60
7.2.320.0090.01516.36
7.2.310.0090.00916.53
7.2.300.0120.00616.48
7.2.290.0040.01216.45
7.2.130.0020.01116.83
7.2.120.0080.00716.72
7.2.110.0030.01316.91
7.2.100.0050.01216.92
7.2.90.0060.00617.02
7.2.80.0070.00616.86
7.2.70.0070.00716.96
7.2.60.0020.00916.88
7.2.50.0080.00816.90
7.2.40.0100.00616.86
7.2.30.0050.00716.75
7.2.20.0050.01016.83
7.2.10.0030.00816.90
7.2.00.0030.00916.94
7.1.250.0020.01116.02
7.1.200.0040.00415.82
7.1.100.0480.01018.25
7.1.90.0000.01318.27
7.1.80.0110.00618.39
7.1.70.0030.00917.19
7.1.60.0220.00335.20
7.1.50.0220.01335.09
7.1.40.0190.00634.64
7.1.30.0150.01134.66
7.1.20.0210.00534.54
7.1.10.0090.00316.64
7.1.00.0030.00916.84
7.0.240.0040.01117.77
7.0.230.0030.01117.98
7.0.220.0030.01318.12
7.0.210.0000.01116.69
7.0.200.0080.00816.59
7.0.190.0030.00916.97
7.0.180.0060.00616.42
7.0.170.0040.00816.36
7.0.160.0120.00016.55
7.0.150.0000.01216.32
7.0.140.0000.01216.43
7.0.130.0000.01216.61
7.0.120.0030.00916.66
7.0.110.0030.00916.55
7.0.100.0060.00616.47
7.0.90.0000.01216.57
7.0.80.0090.00316.66
7.0.70.0060.00616.59
7.0.60.0090.00316.12
7.0.50.0080.00416.70
7.0.40.0060.00616.81
7.0.30.0060.00616.43
7.0.20.0000.01216.49
7.0.10.0070.00716.50
7.0.00.0060.00616.68

preferences:
26.62 ms | 403 KiB | 5 Q