3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/([-]{1,2})(\\w+)/'; $str = "--argument"; preg_match($re, $str, $matches); var_dump($matches); echo $matches[1] === '--';

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.0090.01316.50
8.3.50.0110.00821.28
8.3.40.0070.01418.92
8.3.30.0100.00319.04
8.3.20.0000.00820.16
8.3.10.0040.00423.65
8.3.00.0040.00419.06
8.2.180.0170.00416.50
8.2.170.0140.00322.96
8.2.160.0060.00820.36
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.14
8.2.110.0030.00721.06
8.2.100.0040.00818.03
8.2.90.0080.00018.16
8.2.80.0030.00617.97
8.2.70.0030.00617.88
8.2.60.0000.00918.03
8.2.50.0070.00418.07
8.2.40.0040.00419.75
8.2.30.0040.00418.14
8.2.20.0040.00417.95
8.2.10.0070.00018.02
8.2.00.0000.00718.02
8.1.280.0100.00725.92
8.1.270.0000.00820.16
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0080.00321.03
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0000.00822.02
8.1.150.0000.01018.90
8.1.140.0040.00417.44
8.1.130.0030.00317.75
8.1.120.0070.00017.51
8.1.110.0070.00017.54
8.1.100.0040.00417.50
8.1.90.0000.00717.48
8.1.80.0070.00017.45
8.1.70.0000.00717.42
8.1.60.0060.00317.59
8.1.50.0080.00017.54
8.1.40.0000.00717.56
8.1.30.0050.00317.72
8.1.20.0040.00417.63
8.1.10.0000.00817.74
8.1.00.0000.00817.61
8.0.300.0060.00319.89
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0000.00717.28
8.0.260.0000.00617.33
8.0.250.0030.00317.09
8.0.240.0030.00316.98
8.0.230.0000.00816.96
8.0.220.0030.00316.94
8.0.210.0000.00716.89
8.0.200.0030.00317.01
8.0.190.0040.00416.99
8.0.180.0040.00416.88
8.0.170.0000.00716.89
8.0.160.0030.00516.97
8.0.150.0000.00816.95
8.0.140.0040.00416.96
8.0.130.0060.00013.40
8.0.120.0030.00516.94
8.0.110.0000.00716.87
8.0.100.0000.00816.92
8.0.90.0000.00816.84
8.0.80.0130.00316.84
8.0.70.0040.00416.93
8.0.60.0030.00516.97
8.0.50.0030.00516.84
8.0.30.0140.00417.28
8.0.20.0110.00817.40
8.0.10.0080.00017.11
8.0.00.0160.01516.90
7.4.330.0050.00015.04
7.4.320.0000.00616.65
7.4.300.0030.00316.80
7.4.290.0040.00416.80
7.4.280.0080.00016.69
7.4.270.0000.00716.69
7.4.260.0000.00716.75
7.4.250.0000.00716.72
7.4.240.0020.00616.76
7.4.230.0040.00416.91
7.4.220.0040.01216.79
7.4.210.0070.00716.86
7.4.200.0030.00516.65
7.4.160.0120.00316.53
7.4.150.0110.00817.40
7.4.140.0120.01217.86
7.4.130.0070.01116.55
7.4.120.0110.00716.66
7.4.110.0130.00616.55
7.4.100.0140.01017.00
7.4.90.0100.00716.77
7.4.80.0070.01319.39
7.4.70.0030.01316.75
7.4.60.0120.00416.40
7.4.50.0060.00316.48
7.4.40.0050.01116.63
7.4.30.0150.00416.83
7.4.00.0090.00615.15
7.3.330.0040.00413.32
7.3.320.0000.00513.31
7.3.310.0070.00016.26
7.3.300.0000.00716.43
7.3.290.0030.00316.20
7.3.280.0080.01116.33
7.3.270.0070.01017.40
7.3.260.0100.01416.34
7.3.250.0110.00616.43
7.3.240.0160.00316.46
7.3.230.0130.00316.53
7.3.210.0110.00616.41
7.3.200.0130.00519.39
7.3.190.0070.01016.44
7.3.180.0080.00916.69
7.3.170.0130.00316.51
7.3.160.0060.01016.44
7.2.330.0030.01516.61
7.2.320.0120.01516.70
7.2.310.0150.00316.68
7.2.300.0170.00616.84
7.2.290.0090.01516.78
7.2.60.0030.01117.11
7.2.00.0040.01119.49
7.1.200.0110.00315.77
7.1.100.0000.01118.54
7.1.70.0030.00517.22
7.1.60.0100.01619.48
7.1.50.0100.01617.13
7.1.00.0030.07322.37
7.0.200.0140.00616.96
7.0.60.0000.05719.86
7.0.50.0130.07017.79
7.0.40.0100.04020.26
7.0.30.0270.03320.04
7.0.20.0270.07020.43
7.0.10.0070.06720.05
7.0.00.0100.07020.10
5.6.280.0030.07320.99
5.6.210.0130.04320.47
5.6.200.0100.07718.22
5.6.190.0170.07720.56
5.6.180.0300.04720.41
5.6.170.0200.04320.47
5.6.160.0170.07020.41
5.6.150.0030.05318.20
5.6.140.0100.03318.07
5.6.130.0070.08318.10
5.6.120.0070.04320.97
5.6.110.0070.04321.13
5.6.100.0130.06721.12
5.6.90.0130.07720.96
5.6.80.0130.05720.34
5.5.350.0400.07320.48
5.5.340.0100.03318.01
5.5.330.0030.08720.21
5.5.320.0000.04320.31
5.5.310.0300.07720.17
5.5.300.0070.08017.91
5.5.290.0000.07317.91
5.5.280.0100.08320.79
5.5.270.0070.05720.77
5.5.260.0170.05720.71
5.5.250.0070.05020.61
5.5.240.0030.07020.06
5.4.450.0500.05019.12
5.4.440.0200.05719.65
5.4.430.0070.06019.66
5.4.420.0270.06319.15
5.4.410.0230.04719.37
5.4.400.0100.05319.13
5.4.390.0200.04719.05
5.4.380.0070.06019.15
5.4.370.0170.06018.95
5.4.360.0070.05719.05
5.4.350.0130.05318.92
5.4.340.0070.05719.05
5.4.320.0130.05318.96
5.4.310.0130.05019.06
5.4.300.0230.04018.96
5.4.290.0170.04719.08
5.4.280.0030.07719.11
5.4.270.0270.05719.13
5.4.260.0170.04719.04
5.4.250.0170.05018.99
5.4.240.0070.06018.91
5.4.230.0130.05719.04
5.4.220.0100.05718.96
5.4.210.0100.05318.92
5.4.200.0230.05016.76
5.4.190.0130.05018.98
5.4.180.0230.04018.96
5.4.170.0170.05319.16
5.4.160.0030.06018.89
5.4.150.0170.05319.11
5.4.140.0070.05316.42
5.4.130.0070.05316.56
5.4.120.0130.04316.41
5.4.110.0200.04016.34
5.4.100.0130.05316.37
5.4.90.0000.07716.41
5.4.80.0030.05716.46
5.4.70.0170.04316.49
5.4.60.0170.05016.31
5.4.50.0100.05016.36
5.4.40.0200.05016.38
5.4.30.0070.05316.30
5.4.20.0200.04016.34
5.4.10.0100.05316.38
5.4.00.0030.05315.79
5.3.290.0200.04314.64
5.3.280.0130.06714.71
5.3.270.0070.05714.52
5.3.260.0100.05314.60
5.3.250.0100.05314.50
5.3.240.0130.05314.56
5.3.230.0130.04714.44
5.3.220.0130.05314.64
5.3.210.0130.05314.52
5.3.200.0200.04014.65
5.3.190.0030.06014.57
5.3.180.0030.05714.52
5.3.170.0170.04314.51
5.3.160.0200.04014.50
5.3.150.0100.05014.48
5.3.140.0100.05314.45
5.3.130.0070.05714.45
5.3.120.0100.05314.39
5.3.110.0100.05314.61
5.3.100.0100.04713.97
5.3.90.0230.03714.06
5.3.80.0130.04713.82
5.3.70.0070.06014.04
5.3.60.0070.07313.94
5.3.50.0070.06314.01
5.3.40.0130.04714.01
5.3.30.0170.06014.00
5.3.20.0130.06013.60
5.3.10.0130.05313.59
5.3.00.0070.05713.68
5.2.170.0070.04311.06
5.2.160.0070.05311.25
5.2.150.0130.04011.11
5.2.140.0000.04711.26
5.2.130.0070.04711.26
5.2.120.0070.06311.25
5.2.110.0100.05711.24
5.2.100.0100.05711.17
5.2.90.0100.05711.06
5.2.80.0130.03711.10
5.2.70.0070.04311.09
5.2.60.0030.04710.96
5.2.50.0070.04310.99
5.2.40.0100.05010.98
5.2.30.0030.05310.88
5.2.20.0130.04311.02
5.2.10.0200.03010.80
5.2.00.0170.04710.69
5.1.60.0030.0479.91
5.1.50.0030.0479.83
5.1.40.0130.0409.87
5.1.30.0000.05710.38
5.1.20.0100.04010.20
5.1.10.0170.0239.96
5.1.00.0100.03310.06
5.0.50.0000.0408.64
5.0.40.0030.0278.39
5.0.30.0070.0478.29
5.0.20.0000.0308.19
5.0.10.0030.0308.10
5.0.00.0100.0378.32
4.4.90.0000.0235.81
4.4.80.0030.0205.83
4.4.70.0000.0235.82
4.4.60.0000.0235.88
4.4.50.0030.0275.75
4.4.40.0030.0335.87
4.4.30.0000.0235.89
4.4.20.0000.0235.90
4.4.10.0030.0205.95
4.4.00.0030.0375.91
4.3.110.0070.0205.68
4.3.100.0100.0235.77
4.3.90.0030.0205.76
4.3.80.0070.0305.79
4.3.70.0030.0205.73
4.3.60.0000.0275.65
4.3.50.0030.0305.75
4.3.40.0000.0405.64
4.3.30.0070.0204.58
4.3.20.0000.0234.52
4.3.10.0030.0204.43
4.3.00.0000.0236.34

preferences:
53.33 ms | 401 KiB | 5 Q