3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/^([0-9]{3})([0-9]{3})([0-9]{4})([0-9]*)$/', '8045551234', $matches); array_shift($matches); var_dump($matches); preg_match('/^([0-9]{3})([0-9]{3})([0-9]{4})([0-9]*)$/', '8045551234987', $matches); array_shift($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.0070.01116.63
8.3.50.0060.01518.28
8.3.40.0120.00318.84
8.3.30.0060.00918.91
8.3.20.0070.00021.71
8.3.10.0040.00421.80
8.3.00.0080.00022.02
8.2.180.0120.00916.63
8.2.170.0150.00322.96
8.2.160.0090.00622.23
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00019.39
8.2.120.0060.00326.35
8.2.110.0160.00621.03
8.2.100.0110.00017.84
8.2.90.0080.00019.01
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0000.00817.78
8.2.50.0000.00818.10
8.2.40.0030.00620.46
8.2.30.0040.00419.05
8.2.20.0040.00417.84
8.2.10.0040.00418.07
8.2.00.0000.00817.62
8.1.280.0120.00925.92
8.1.270.0080.00023.88
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00022.20
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.25
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0070.00018.80
8.1.150.0030.00320.24
8.1.140.0000.00819.39
8.1.130.0050.00519.03
8.1.120.0030.00417.45
8.1.110.0050.00317.35
8.1.100.0040.00417.48
8.1.90.0080.00017.47
8.1.80.0040.00417.41
8.1.70.0000.00717.45
8.1.60.0040.00417.64
8.1.50.0000.00817.43
8.1.40.0090.00017.55
8.1.30.0040.00417.66
8.1.20.0000.00817.57
8.1.10.0000.00817.58
8.1.00.0000.00817.54
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.24
8.0.270.0040.00417.14
8.0.260.0030.00317.16
8.0.250.0000.00716.96
8.0.240.0030.00516.90
8.0.230.0000.00716.94
8.0.220.0000.00816.81
8.0.210.0070.00316.95
8.0.200.0030.00316.88
8.0.190.0050.00317.01
8.0.180.0080.00016.96
8.0.170.0040.00416.95
8.0.160.0040.00416.89
8.0.150.0050.00216.82
8.0.140.0040.00416.91
8.0.130.0000.00613.33
8.0.120.0020.00516.86
8.0.110.0070.00016.88
8.0.100.0000.00816.89
8.0.90.0040.00416.78
8.0.80.0100.00616.78
8.0.70.0040.00416.70
8.0.60.0040.00416.80
8.0.50.0070.00016.95
8.0.30.0120.00617.10
8.0.20.0140.00717.41
8.0.10.0000.00717.07
8.0.00.0030.01516.81
7.4.330.0000.00515.55
7.4.320.0000.00716.59
7.4.300.0000.00716.72
7.4.290.0000.00716.59
7.4.280.0050.00316.72
7.4.270.0000.00716.71
7.4.260.0040.00416.55
7.4.250.0050.00316.65
7.4.240.0000.00816.70
7.4.230.0000.00716.57
7.4.220.0100.01016.52
7.4.210.0030.01216.55
7.4.200.0070.00016.75
7.4.160.0090.00616.49
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0150.00816.56
7.4.120.0080.01016.48
7.4.110.0120.00616.64
7.4.100.0140.00916.48
7.4.90.0070.01116.65
7.4.80.0030.01319.39
7.4.70.0070.01016.84
7.4.60.0100.01016.51
7.4.50.0070.01016.65
7.4.40.0040.01316.63
7.4.30.0080.00916.50
7.4.10.0120.00315.18
7.4.00.0080.00915.16
7.3.330.0030.00313.04
7.3.320.0030.00313.02
7.3.310.0000.00716.31
7.3.300.0000.00816.34
7.3.290.0070.00916.33
7.3.280.0070.01016.27
7.3.270.0190.00717.40
7.3.260.0120.00516.47
7.3.250.0100.00816.44
7.3.240.0110.00716.32
7.3.230.0040.01216.53
7.3.210.0080.00816.52
7.3.200.0120.00916.53
7.3.190.0130.01016.24
7.3.180.0090.00916.36
7.3.170.0060.01816.52
7.3.160.0150.00616.60
7.3.130.0070.01314.68
7.3.120.0060.01214.82
7.3.110.0080.01214.66
7.3.100.0060.00915.11
7.3.90.0050.01014.81
7.3.80.0030.00714.76
7.3.70.0030.01214.88
7.3.60.0000.00914.89
7.3.50.0040.01115.04
7.3.40.0030.01014.69
7.3.30.0000.01714.54
7.3.20.0040.01516.76
7.3.10.0040.01116.66
7.3.00.0060.00516.74
7.2.330.0070.01116.70
7.2.320.0090.00916.64
7.2.310.0110.01116.53
7.2.300.0040.01816.45
7.2.290.0070.01016.54
7.2.260.0030.01615.18
7.2.250.0040.01414.95
7.2.240.0000.01415.03
7.2.230.0030.01315.00
7.2.220.0090.00915.16
7.2.210.0090.00014.88
7.2.200.0000.01014.93
7.2.190.0030.01415.18
7.2.180.0140.00315.13
7.2.170.0040.01115.16
7.2.160.0100.00614.98
7.2.150.0070.01116.93
7.2.140.0040.01116.62
7.2.130.0030.01016.74
7.2.120.0070.00716.81
7.2.110.0010.01116.85
7.2.100.0040.01016.99
7.2.90.0050.01016.91
7.2.80.0060.01016.97
7.2.70.0040.01116.90
7.2.60.0050.00916.88
7.2.50.0060.00716.80
7.2.40.0060.00916.78
7.2.30.0060.00916.93
7.2.20.0080.00517.02
7.2.10.0020.01116.88
7.2.00.0070.00716.76
7.1.330.0070.00715.98
7.1.320.0090.00315.93
7.1.310.0080.00615.82
7.1.300.0040.00815.93
7.1.290.0060.00615.71
7.1.280.0030.01315.77
7.1.270.0040.01115.94
7.1.260.0000.01516.07
7.1.250.0050.00915.74
7.1.240.0070.00315.93
7.1.230.0080.00315.84
7.1.220.0050.00815.87
7.1.210.0060.00515.94
7.1.200.0050.01015.92
7.1.190.0070.00715.92
7.1.180.0070.00715.89
7.1.170.0050.00515.94
7.1.160.0030.00815.59
7.1.150.0070.00715.96
7.1.140.0060.00515.73
7.1.130.0030.01115.88
7.1.120.0050.00315.96
7.1.110.0030.01115.70
7.1.100.0060.00815.96
7.1.90.0050.00715.64
7.1.80.0060.00915.93
7.1.70.0100.00316.36
7.1.60.0040.00616.33
7.1.50.0070.00715.84
7.1.40.0040.00815.76
7.1.30.0070.00515.78
7.1.20.0030.00615.85
7.1.10.0080.02317.86
7.1.00.0060.02618.12
7.0.330.0080.00615.39
7.0.320.0060.00515.55
7.0.310.0020.00815.69
7.0.300.0050.00915.53
7.0.290.0090.00715.39
7.0.280.0070.01015.50
7.0.270.0090.00215.31
7.0.260.0020.01015.51
7.0.250.0030.00715.36
7.0.240.0060.00515.59
7.0.230.0050.00715.42
7.0.220.0050.00815.56
7.0.210.0080.00315.50
7.0.200.0010.01115.94
7.0.190.0090.00315.64
7.0.180.0070.00715.38
7.0.170.0090.00615.40
7.0.160.0070.00915.50
7.0.150.0100.02117.60
7.0.140.0060.02517.61
7.0.130.0080.02317.61
7.0.120.0070.02217.63
7.0.110.0090.02317.56
7.0.100.0050.03017.63
7.0.90.0080.02317.67
7.0.80.0080.02517.56
7.0.70.0220.02517.59
7.0.60.0130.01717.60
7.0.50.0040.02817.67
7.0.40.0090.01816.38
7.0.30.0060.02216.35
7.0.20.0060.02516.26
7.0.10.0060.02516.41
7.0.00.0070.02416.37
5.6.400.0070.00714.67
5.6.390.0070.00714.54
5.6.380.0030.00814.37
5.6.370.0130.00314.29
5.6.360.0060.00314.25
5.6.350.0140.00414.00
5.6.340.0030.00614.30
5.6.330.0140.00014.09
5.6.320.0110.00014.06
5.6.310.0040.01114.47
5.6.300.0000.01314.47
5.6.290.0060.01014.26
5.6.280.0060.01314.29
5.6.270.0040.01114.08
5.6.260.0000.01414.45
5.6.250.0070.00714.52
5.6.240.0030.00714.07
5.6.230.0040.01214.00
5.6.220.0090.00314.25
5.6.210.0030.01014.02
5.6.200.0040.00814.15
5.6.190.0040.01114.02
5.6.180.0080.00814.11
5.6.170.0030.01014.31
5.6.160.0030.00914.26
5.6.150.0040.00814.22
5.6.140.0030.00714.09
5.6.130.0080.00414.43
5.6.120.0130.00314.11
5.6.110.0030.01114.23
5.6.100.0030.01014.46
5.6.90.0110.00414.25
5.6.80.0070.00314.18
5.6.70.0120.00314.33
5.6.60.0070.01014.16
5.6.50.0130.00314.18
5.6.40.0150.00013.95
5.6.30.0090.00614.05
5.6.20.0080.00414.19
5.6.10.0000.01014.04
5.6.00.0090.00013.97

preferences:
48.55 ms | 400 KiB | 5 Q