3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Coupon 123"; preg_match("^Coupon (\w+)", $text, $matches); 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.60.0180.00416.50
8.3.50.0090.00616.59
8.3.40.0090.00618.53
8.3.30.0030.01218.57
8.3.20.0050.00220.04
8.3.10.0030.00623.51
8.3.00.0040.00423.48
8.2.180.0140.00718.16
8.2.170.0130.00722.96
8.2.160.0070.01120.30
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00422.24
8.2.120.0070.00026.35
8.2.110.0070.00320.93
8.2.100.0060.00617.72
8.2.90.0050.00518.86
8.2.80.0090.00017.97
8.2.70.0090.00017.48
8.2.60.0090.00017.80
8.2.50.0020.00518.10
8.2.40.0000.00820.45
8.2.30.0040.00819.17
8.2.20.0050.00217.89
8.2.10.0040.00417.98
8.2.00.0000.00717.88
8.1.280.0120.00325.92
8.1.270.0000.00823.97
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00021.18
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0030.00517.23
8.1.180.0080.00018.10
8.1.170.0000.00718.59
8.1.160.0000.00718.75
8.1.150.0000.00820.71
8.1.140.0040.00417.59
8.1.130.0070.00018.77
8.1.120.0030.00317.44
8.1.110.0080.00017.34
8.1.100.0050.00317.23
8.1.90.0030.00317.31
8.1.80.0070.00017.38
8.1.70.0000.00717.29
8.1.60.0050.00317.52
8.1.50.0060.00317.49
8.1.40.0050.00517.43
8.1.30.0040.00417.50
8.1.20.0080.00017.45
8.1.10.0000.00717.43
8.1.00.0030.00617.48
8.0.300.0040.00418.90
8.0.290.0000.00816.75
8.0.280.0030.00318.24
8.0.270.0030.00317.10
8.0.260.0060.00016.88
8.0.250.0050.00216.92
8.0.240.0040.00416.99
8.0.230.0070.00016.96
8.0.220.0030.00316.80
8.0.210.0040.00416.86
8.0.200.0000.00616.82
8.0.190.0040.00416.84
8.0.180.0040.00416.86
8.0.170.0000.00716.94
8.0.160.0070.00017.00
8.0.150.0040.00416.79
8.0.140.0060.00316.86
8.0.130.0060.00313.34
8.0.120.0030.00616.71
8.0.110.0070.00016.81
8.0.100.0040.00416.99
8.0.90.0050.00316.68
8.0.80.0060.00916.86
8.0.70.0000.00716.65
8.0.60.0000.00716.94
8.0.50.0060.00316.78
8.0.30.0140.00416.89
8.0.20.0100.01017.40
8.0.10.0000.00716.96
8.0.00.0150.00316.61
7.4.330.0050.00016.59
7.4.320.0000.00716.58
7.4.300.0070.00016.47
7.4.290.0030.00316.44
7.4.280.0080.00016.52
7.4.270.0060.00016.48
7.4.260.0040.00416.53
7.4.250.0000.00716.53
7.4.240.0000.00716.45
7.4.230.0000.00716.27
7.4.220.0100.01316.54
7.4.210.0100.00616.61
7.4.200.0040.00416.42
7.4.160.0130.00616.43
7.4.150.0080.01117.40
7.4.140.0120.00917.86
7.4.130.0030.01416.35
7.4.120.0090.00916.49
7.4.110.0080.00816.35
7.4.100.0120.01216.25
7.4.90.0060.01216.37
7.4.80.0070.01619.39
7.4.70.0070.01116.34
7.4.60.0100.00616.40
7.4.50.0060.00916.39
7.4.40.0100.00716.47
7.4.30.0160.00016.30
7.4.00.0010.01314.89
7.3.330.0000.00512.95
7.3.320.0030.00312.99
7.3.310.0030.00316.16
7.3.300.0030.00316.10
7.3.290.0120.00616.19
7.3.280.0100.00816.19
7.3.270.0090.01517.40
7.3.260.0090.01116.34
7.3.250.0090.00916.18
7.3.240.0080.01016.26
7.3.230.0130.00316.50
7.3.210.0030.01416.32
7.3.200.0030.01516.25
7.3.190.0060.00916.34
7.3.180.0110.00616.43
7.3.170.0000.01616.32
7.3.160.0060.01116.20
7.3.120.0040.01414.48
7.3.110.0150.00414.64
7.3.100.0100.01014.82
7.3.90.0060.01214.40
7.3.80.0060.00614.74
7.3.70.0040.01214.48
7.3.60.0120.00414.73
7.3.50.0100.00314.52
7.3.40.0030.01014.34
7.3.30.0030.01014.80
7.3.20.0060.00616.29
7.3.10.0040.00716.54
7.3.00.0030.00916.74
7.2.330.0090.00916.50
7.2.320.0120.00416.47
7.2.310.0070.01116.49
7.2.300.0110.00816.28
7.2.290.0170.00016.45
7.2.250.0100.01014.64
7.2.240.0090.00915.07
7.2.230.0110.00414.80
7.2.220.0030.00615.11
7.2.210.0070.00714.91
7.2.200.0070.01114.59
7.2.190.0100.00314.86
7.2.180.0090.00514.90
7.2.170.0070.01014.85
7.2.60.0030.01016.46
7.1.330.0030.01015.90
7.1.320.0030.00915.83
7.1.310.0060.01315.83
7.1.300.0070.00715.59
7.1.290.0060.00915.60
7.1.280.0120.00015.39
7.1.270.0070.00715.64
7.1.260.0000.01115.70
7.1.200.0060.00615.90
7.1.110.0150.00916.05
7.1.100.0160.01016.34
7.1.90.0160.01016.27
7.1.80.0160.01316.03
7.1.70.0830.00615.43
7.1.60.0340.00733.32
7.1.50.0380.01732.84
7.1.40.0330.01032.54
7.1.30.0330.01232.59
7.1.20.0270.01532.73
7.1.10.0170.00814.72
7.1.00.0160.01314.86
7.0.250.0180.00716.00
7.0.240.0240.00315.83
7.0.230.0160.01115.64
7.0.220.0150.01215.81
7.0.210.0070.01014.63
7.0.200.0280.01214.81
7.0.190.0250.00314.85
7.0.180.0370.00614.57
7.0.170.0250.00614.42
7.0.160.0130.01314.27
7.0.150.0230.00314.28
7.0.140.0190.00614.55
7.0.130.0180.01214.68
7.0.120.0120.01214.77
7.0.110.0200.01114.63
7.0.100.0210.00614.48
7.0.90.0570.01114.34
7.0.80.0140.01714.40
7.0.70.0060.00914.49
7.0.60.0250.00614.40
7.0.50.0270.00014.58
7.0.40.0320.00314.56
7.0.30.0260.00014.79
7.0.20.0210.00714.35
7.0.10.0250.01114.60
7.0.00.0260.00914.52

preferences:
52.78 ms | 401 KiB | 5 Q