3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexp = '/foo( bar) (baz)?/'; preg_match($regexp, 'foo baz', $matches); print_r($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.0040.01218.51
8.3.50.0170.00122.13
8.3.40.0120.00318.67
8.3.30.0140.00718.70
8.3.20.0060.00320.01
8.3.10.0030.00623.48
8.3.00.0040.00419.04
8.2.180.0090.00918.20
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0080.00020.82
8.2.110.0100.00022.25
8.2.100.0080.00417.91
8.2.90.0030.00618.03
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0050.00317.91
8.2.50.0030.00518.07
8.2.40.0000.00819.75
8.2.30.0050.00218.09
8.2.20.0080.00017.64
8.2.10.0000.00717.89
8.2.00.0060.00317.63
8.1.280.0120.00825.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.53
8.1.230.0080.00421.03
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0030.00518.59
8.1.160.0040.00421.93
8.1.150.0040.00418.58
8.1.140.0100.00017.49
8.1.130.0000.00717.84
8.1.120.0000.00717.47
8.1.110.0000.00717.41
8.1.100.0030.00417.54
8.1.90.0080.00017.59
8.1.80.0040.00417.57
8.1.70.0030.00317.54
8.1.60.0000.00817.67
8.1.50.0000.00817.60
8.1.40.0000.01217.60
8.1.30.0060.00617.64
8.1.20.0000.01017.75
8.1.10.0050.00317.56
8.1.00.0020.00517.47
8.0.300.0040.00419.86
8.0.290.0000.00717.15
8.0.280.0030.00318.40
8.0.270.0070.00017.21
8.0.260.0030.00317.20
8.0.250.0030.00317.03
8.0.240.0000.00616.99
8.0.230.0070.00017.00
8.0.220.0030.00316.87
8.0.210.0070.00017.03
8.0.200.0040.00417.02
8.0.190.0030.00616.90
8.0.180.0000.00717.03
8.0.170.0050.00316.95
8.0.160.0040.00416.96
8.0.150.0070.00016.82
8.0.140.0040.00416.82
8.0.130.0060.00313.31
8.0.120.0030.00516.90
8.0.110.0070.00016.92
8.0.100.0040.00417.08
8.0.90.0040.00417.05
8.0.80.0030.01716.99
8.0.70.0000.00716.79
8.0.60.0000.00716.77
8.0.50.0030.00516.96
8.0.30.0080.01017.32
8.0.20.0110.01017.40
8.0.10.0000.00717.07
8.0.00.0100.00816.91
7.4.330.0050.00015.04
7.4.320.0060.00016.61
7.4.300.0030.00316.73
7.4.290.0030.00516.72
7.4.280.0040.00416.75
7.4.270.0000.00816.66
7.4.260.0000.00716.71
7.4.250.0040.00416.75
7.4.240.0040.00416.78
7.4.230.0000.00716.81
7.4.220.0000.01816.77
7.4.210.0070.00716.73
7.4.200.0030.00316.84
7.4.190.0040.00416.55
7.4.160.0100.00616.77
7.4.150.0070.01717.40
7.4.140.0130.00917.86
7.4.130.0120.00516.60
7.4.120.0070.01116.58
7.4.110.0030.01416.73
7.4.100.0110.00516.41
7.4.90.0130.00616.61
7.4.80.0040.01319.39
7.4.70.0040.01116.53
7.4.60.0060.01216.83
7.4.50.0030.00616.58
7.4.40.0120.00616.61
7.4.30.0090.00616.73
7.4.00.0030.01315.21
7.3.330.0030.00313.03
7.3.320.0050.00013.02
7.3.310.0040.00416.34
7.3.300.0060.00016.29
7.3.290.0090.00616.41
7.3.280.0040.01216.23
7.3.270.0040.01317.40
7.3.260.0090.00816.57
7.3.250.0080.00916.53
7.3.240.0140.00316.72
7.3.230.0130.00316.39
7.3.210.0100.00716.35
7.3.200.0120.00419.39
7.3.190.0040.01216.48
7.3.180.0150.00316.30
7.3.170.0030.01316.29
7.3.160.0080.00816.41
7.3.120.0070.00714.82
7.3.10.0040.00816.43
7.3.00.0100.00716.84
7.2.330.0210.00416.56
7.2.320.0100.00716.63
7.2.310.0110.00716.53
7.2.300.0210.00716.69
7.2.290.0070.01016.55
7.2.130.0040.00716.76
7.2.120.0100.00316.73
7.2.110.0040.00816.71
7.2.100.0040.01116.93
7.2.90.0080.00616.87
7.2.80.0070.00716.90
7.2.70.0110.00416.68
7.2.60.0060.00916.86
7.2.50.0000.01416.68
7.2.40.0140.00016.58
7.2.30.0070.01017.01
7.2.20.0070.01016.80
7.2.10.0110.00416.93
7.2.00.0040.01118.04
7.1.250.0100.00315.92
7.1.100.0000.01418.25
7.1.70.0000.00717.48
7.1.60.0110.01419.46
7.1.50.0100.01617.07
7.1.00.0000.07722.47
7.0.200.0030.00616.80
7.0.140.0030.07322.08
7.0.60.0100.07319.93
7.0.50.0170.05717.83
7.0.40.0000.05019.92
7.0.30.0270.05320.23
7.0.20.0230.04320.35
7.0.10.0000.09720.18
7.0.00.0070.09020.00
5.6.280.0000.07720.90
5.6.210.0130.07020.64
5.6.200.0070.06718.19
5.6.190.0100.08720.39
5.6.180.0270.04020.27
5.6.170.0270.04320.48
5.6.160.0000.04320.45
5.6.150.0070.06718.12
5.6.140.0030.06318.08
5.6.130.0070.05318.07
5.6.120.0130.04721.11
5.6.110.0130.07721.02
5.6.100.0170.07021.00
5.6.90.0000.06021.03
5.6.80.0030.04020.48
5.5.350.0230.08020.34
5.5.340.0100.08018.01
5.5.330.0000.06020.46
5.5.320.0200.07720.18
5.5.310.0230.06020.28
5.5.300.0030.07318.02
5.5.290.0030.06317.96
5.5.280.0100.08320.76
5.5.270.0070.06720.95
5.5.260.0130.05020.67
5.5.250.0170.07020.68
5.5.240.0070.04320.18
5.4.450.0200.04019.42
5.4.440.0230.07719.45
5.4.430.0170.04319.57
5.4.420.0500.03719.54
5.4.410.0230.04319.44
5.4.400.0070.05019.21
5.4.390.0270.03019.16
5.4.380.0200.03318.88
5.4.370.0200.03718.81
5.4.360.0170.05019.08
5.4.350.0170.03318.93
5.4.340.0200.03319.13
5.4.320.0230.03719.13
5.4.310.0130.03718.78
5.4.300.0200.03319.09
5.4.290.0200.04019.15
5.4.280.0000.04019.09
5.4.270.0030.04318.88
5.4.260.0700.04019.16
5.4.250.1630.04019.24
5.4.240.1700.04019.23
5.4.230.2130.04319.24
5.4.220.1900.03719.24
5.4.210.2200.04719.15
5.4.200.1770.03719.20
5.4.190.1870.03319.08
5.4.180.1870.03318.80
5.4.170.0730.03319.18
5.4.160.0100.03719.14
5.4.150.0070.03718.86
5.4.140.0200.04316.43
5.4.130.1770.03316.23
5.4.120.0330.04016.45
5.4.110.0000.04316.41
5.4.100.0130.04316.42
5.4.90.1770.03316.30
5.4.80.1770.03716.22
5.4.70.1800.03316.21
5.4.60.2000.03316.38
5.4.50.1770.03716.45
5.4.40.1770.03316.04
5.4.30.1770.03316.47
5.4.20.1770.03016.41
5.4.10.1470.03316.36
5.4.00.1730.03315.72
5.3.290.1600.03714.50
5.3.280.2030.05014.43
5.3.270.2070.04714.45
5.3.260.2070.03714.54
5.3.250.1700.04314.43
5.3.240.2070.04014.65
5.3.230.1800.03714.42
5.3.220.2170.03014.47
5.3.210.1870.03314.54
5.3.200.2070.04314.52
5.3.190.1900.03714.40
5.3.180.2100.03714.65
5.3.170.2000.04314.51
5.3.160.2070.04314.43
5.3.150.2130.04014.42
5.3.140.2070.04014.59
5.3.130.2070.04314.49
5.3.120.2000.04314.40
5.3.110.1800.03314.50
5.3.100.1800.03713.98
5.3.90.1770.03714.00
5.3.80.1770.04013.97
5.3.70.1830.03313.86
5.3.60.1800.04014.04
5.3.50.1830.04013.89
5.3.40.2200.04313.89
5.3.30.1930.03013.70
5.3.20.2200.03313.57
5.3.10.1930.03013.45
5.3.00.1830.03713.54
5.2.170.1530.03011.21
5.2.160.1500.03311.05
5.2.150.1500.03711.22
5.2.140.1630.03010.95
5.2.130.1500.03010.91
5.2.120.1600.02711.26
5.2.110.1570.03011.13
5.2.100.1770.03710.95
5.2.90.1670.02711.04
5.2.80.1870.03311.10
5.2.70.1670.02711.10
5.2.60.1730.03311.13
5.2.50.1630.02310.95
5.2.40.1200.03010.93
5.2.30.1200.02311.02
5.2.20.1370.03310.86
5.2.10.1430.04010.76
5.2.00.1430.03310.64
5.1.60.1430.03010.15
5.1.50.1470.0309.96
5.1.40.1500.03010.05
5.1.30.1330.03010.19
5.1.20.1200.02710.38
5.1.10.1400.03010.00
5.1.00.1200.0239.93
5.0.50.0830.0378.39
5.0.40.0700.0278.30
5.0.30.0730.0508.26
5.0.20.0630.0208.10
5.0.10.0630.0208.06
5.0.00.0600.0308.38
4.4.90.0630.0207.89
4.4.80.0730.0207.89
4.4.70.0700.0207.89
4.4.60.0670.0207.89
4.4.50.0730.0277.89
4.4.40.0800.0377.89
4.4.30.0770.0277.89
4.4.20.0570.0207.89
4.4.10.0630.0237.89
4.4.00.0830.0377.89
4.3.110.0770.0277.89
4.3.100.0670.0207.89
4.3.90.0730.0207.89
4.3.80.0670.0277.89
4.3.70.0800.0207.89
4.3.60.0630.0207.89
4.3.50.0670.0207.89
4.3.40.0700.0277.89
4.3.30.0370.0377.89
4.3.20.0400.0207.89
4.3.10.0300.0207.89
4.3.00.0400.0307.89

preferences:
34.56 ms | 401 KiB | 5 Q