3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array(); preg_match('/^\(?[0-9]{3}\)?-?[0-9]{4}/',"(765)4389",$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.0110.00418.30
8.3.50.0120.00622.15
8.3.40.0100.00718.88
8.3.30.0100.00318.92
8.3.20.0050.00220.16
8.3.10.0080.00020.48
8.3.00.0080.00019.26
8.2.180.0140.00416.75
8.2.170.0070.01422.96
8.2.160.0110.00420.27
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0090.00022.24
8.2.100.0110.00017.78
8.2.90.0030.00519.05
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0000.00719.13
8.2.20.0070.00017.82
8.2.10.0050.00217.88
8.2.00.0040.00417.66
8.1.280.0070.00725.92
8.1.270.0050.00323.84
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00724.01
8.1.230.0110.00019.16
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00917.38
8.1.190.0050.00317.22
8.1.180.0000.01118.10
8.1.170.0040.00418.58
8.1.160.0050.00221.96
8.1.150.0000.00718.79
8.1.140.0050.00317.40
8.1.130.0030.00317.84
8.1.120.0040.00417.58
8.1.110.0000.00817.52
8.1.100.0030.00417.55
8.1.90.0000.00717.57
8.1.80.0020.00517.57
8.1.70.0030.00317.50
8.1.60.0000.00817.54
8.1.50.0030.00517.57
8.1.40.0090.00017.48
8.1.30.0060.00317.72
8.1.20.0060.00317.66
8.1.10.0080.00017.61
8.1.00.0050.00217.57
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.24
8.0.270.0040.00417.20
8.0.260.0030.00317.19
8.0.250.0000.00717.04
8.0.240.0030.00316.89
8.0.230.0000.00716.98
8.0.220.0000.00716.84
8.0.210.0030.00316.84
8.0.200.0030.00316.99
8.0.190.0000.00716.91
8.0.180.0070.00016.97
8.0.170.0040.00417.02
8.0.160.0040.00416.90
8.0.150.0000.00716.78
8.0.140.0000.00716.84
8.0.130.0000.00713.35
8.0.120.0000.00816.81
8.0.110.0020.00516.95
8.0.100.0070.00016.88
8.0.90.0050.00217.01
8.0.80.0040.01816.93
8.0.70.0050.00317.03
8.0.60.0030.00316.74
8.0.50.0000.00716.78
8.0.30.0130.00717.03
8.0.20.0120.00617.44
8.0.10.0040.00416.93
8.0.00.0070.01016.86
7.4.330.0050.00015.00
7.4.320.0040.00416.64
7.4.300.0030.00316.54
7.4.290.0040.00416.67
7.4.280.0140.00016.66
7.4.270.0040.00416.59
7.4.260.0000.00716.75
7.4.250.0040.00416.61
7.4.240.0050.00316.69
7.4.230.0030.00316.65
7.4.220.0030.01516.77
7.4.210.0070.00716.68
7.4.200.0030.00516.78
7.4.160.0120.00316.66
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0110.00516.60
7.4.120.0080.01116.57
7.4.110.0130.00316.55
7.4.100.0100.00716.71
7.4.90.0100.00716.48
7.4.80.0160.00319.37
7.4.70.0030.01316.75
7.4.60.0150.00316.45
7.4.50.0040.00416.61
7.4.40.0120.00616.57
7.4.30.0130.01016.68
7.4.00.0090.00914.91
7.3.330.0050.00012.98
7.3.320.0020.00213.09
7.3.310.0000.00716.27
7.3.300.0070.00016.27
7.3.290.0070.00716.31
7.3.280.0070.01016.33
7.3.270.0120.00617.40
7.3.260.0110.01116.31
7.3.250.0120.00516.42
7.3.240.0150.00016.36
7.3.230.0060.01116.48
7.3.210.0090.00916.48
7.3.200.0090.00919.39
7.3.190.0060.01316.52
7.3.180.0040.01216.41
7.3.170.0030.01216.29
7.3.160.0120.00416.23
7.3.120.0040.00715.13
7.3.110.0030.01314.83
7.3.100.0110.00414.96
7.3.90.0040.01414.92
7.3.80.0000.01514.83
7.3.70.0100.00714.67
7.3.60.0040.01114.52
7.3.50.0100.00714.68
7.3.40.0120.00314.87
7.3.30.0000.01514.75
7.3.20.0030.00716.79
7.3.10.0040.00716.49
7.3.00.0030.01316.46
7.2.330.0130.01016.50
7.2.320.0100.00716.41
7.2.310.0040.01216.67
7.2.300.0150.00616.54
7.2.290.0070.01016.41
7.2.250.0120.00614.74
7.2.240.0060.01315.06
7.2.230.0070.00314.88
7.2.220.0030.00914.99
7.2.210.0040.00815.01
7.2.200.0100.00315.11
7.2.190.0030.00915.00
7.2.180.0120.00315.15
7.2.170.0110.00315.04
7.2.60.0000.01116.89
7.2.00.0030.01019.59
7.1.330.0080.00816.04
7.1.320.0000.00915.89
7.1.310.0060.00915.92
7.1.300.0070.00715.66
7.1.290.0030.00915.99
7.1.280.0060.00315.78
7.1.270.0030.01315.93
7.1.260.0060.00915.97
7.1.200.0100.00316.06
7.1.100.0450.01018.14
7.1.70.0000.01017.34
7.1.60.0070.01719.32
7.1.50.0030.01717.09
7.1.00.0030.07722.38
7.0.200.0260.00614.91
7.0.140.0000.07321.93
7.0.60.0130.07319.86
7.0.50.0100.08717.92
7.0.40.0030.06020.05
7.0.30.0570.06320.04
7.0.20.0370.08020.03
7.0.10.0100.08320.24
7.0.00.0130.06020.34
5.6.280.0030.07321.14
5.6.210.0100.08320.72
5.6.200.0130.08018.16
5.6.190.0100.08020.48
5.6.180.0430.06720.29
5.6.170.0270.04320.62
5.6.160.0070.04320.61
5.6.150.0030.04018.19
5.6.140.0070.03718.20
5.6.130.0030.08318.11
5.6.120.0030.06320.93
5.6.110.0000.09020.94
5.6.100.0170.04721.03
5.6.90.0100.08320.98
5.6.80.0170.07020.48
5.5.350.0230.07720.52
5.5.340.0070.08718.00
5.5.330.0070.04720.23
5.5.320.0370.05020.24
5.5.310.0200.04020.34
5.5.300.0030.08317.91
5.5.290.0000.05318.00
5.5.280.0030.09020.87
5.5.270.0100.07720.72
5.5.260.0000.04720.79
5.5.250.0070.06320.57
5.5.240.0270.07020.25
5.4.450.0170.04319.42
5.4.440.1100.05019.45
5.4.430.0770.06019.27
5.4.420.0700.00019.33
5.4.410.0770.00019.41
5.4.400.0700.00019.16
5.4.390.0830.00019.16
5.4.380.0730.00019.26
5.4.370.0630.00019.05
5.4.360.0800.00019.18
5.4.350.0670.00018.96
5.4.340.0730.00019.13
5.4.320.0050.03712.45
5.4.310.0060.03812.45
5.4.300.0120.03012.45
5.4.290.0030.04212.45
5.4.280.0080.03312.35
5.4.270.0040.03812.34
5.4.260.0060.03712.34
5.4.250.0050.03812.35
5.4.240.0100.04612.34
5.4.230.0020.04212.34
5.4.220.0070.03512.34
5.4.210.0070.03312.34
5.4.200.0070.03512.34
5.4.190.0070.03412.34
5.4.180.0030.03812.34
5.4.170.0070.03412.34
5.4.160.0070.03412.34
5.4.150.0040.03812.34
5.4.140.0060.03512.02
5.4.130.0050.03712.01
5.4.120.0060.03411.96
5.4.110.0050.03611.96
5.4.100.0070.03411.96
5.4.90.0050.03711.96
5.4.80.0050.03711.96
5.4.70.0100.03011.96
5.4.60.0070.03311.96
5.4.50.0070.03411.96
5.4.40.0070.03311.95
5.4.30.0060.03511.95
5.4.20.0070.03511.95
5.4.10.0070.03311.94
5.4.00.0030.04011.43
5.3.290.0050.04112.80
5.3.280.0030.04112.71
5.3.270.0060.03912.73
5.3.260.0090.03612.72
5.3.250.0030.04212.72
5.3.240.0120.03512.72
5.3.230.0090.03612.71
5.3.220.0040.04612.68
5.3.210.0090.03812.68
5.3.200.0060.03812.68
5.3.190.0060.03912.68
5.3.180.0040.03912.68
5.3.170.0050.03812.67
5.3.160.0040.03912.67
5.3.150.0070.03612.68
5.3.140.0100.03212.66
5.3.130.0040.04012.66
5.3.120.0040.04012.66
5.3.110.0020.04212.65
5.3.100.0060.03612.12
5.3.90.0060.03612.09
5.3.80.0070.03612.07
5.3.70.0050.03612.08
5.3.60.0040.04112.07
5.3.50.0100.03212.00
5.3.40.0060.03612.00
5.3.30.0080.03311.94
5.3.20.0100.03111.72
5.3.10.0080.03211.69
5.3.00.0070.03511.68
5.2.170.0060.0299.18
5.2.160.0050.0299.18
5.2.150.0040.0319.18
5.2.140.0030.0329.17
5.2.130.0070.0269.13
5.2.120.0030.0309.14
5.2.110.0040.0299.14
5.2.100.0040.0299.13
5.2.90.0060.0289.13
5.2.80.0030.0329.13
5.2.70.0020.0329.13
5.2.60.0050.0309.08
5.2.50.0090.0309.05
5.2.40.0060.0379.03
5.2.30.0110.0359.01
5.2.20.0040.0319.00
5.2.10.0060.0278.92
5.2.00.0030.0308.77
5.1.60.0060.0218.06
5.1.50.0030.0258.05
5.1.40.0040.0268.04
5.1.30.0070.0308.39
5.1.20.0050.0268.41
5.1.10.0060.0258.13
5.1.00.0040.0268.14
5.0.50.0090.0236.61
5.0.40.0050.0186.47
5.0.30.0030.0336.29
5.0.20.0050.0176.26
5.0.10.0030.0206.23
5.0.00.0040.0306.23
4.4.90.0030.0164.78
4.4.80.0060.0134.75
4.4.70.0080.0104.75
4.4.60.0040.0154.75
4.4.50.0040.0174.77
4.4.40.0030.0264.71
4.4.30.0010.0184.76
4.4.20.0030.0164.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0040.0154.67
4.3.100.0050.0134.67
4.3.90.0020.0154.64
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0050.0134.63
4.3.50.0010.0174.63
4.3.40.0030.0234.54
4.3.30.0010.0173.28
4.3.20.0020.0163.25
4.3.10.0010.0173.22
4.3.00.0070.0207.96

preferences:
39.87 ms | 401 KiB | 5 Q