3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_regex = '/(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20)\d\d/'; $test_date = '03/22/2010'; if(preg_match($date_regex, $test_date)) { echo 'this date is formatted correctly'; } else { echo 'this date is not formatted correctly'; }

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.0170.00018.43
8.3.50.0130.00316.24
8.3.40.0100.00718.88
8.3.30.0070.00718.91
8.3.20.0040.00419.37
8.3.10.0060.00321.90
8.3.00.0080.00019.69
8.2.180.0100.00718.55
8.2.170.0120.00322.96
8.2.160.0090.00619.08
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.24
8.2.120.0050.00326.35
8.2.110.0070.00322.23
8.2.100.0120.00017.97
8.2.90.0000.00819.34
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0000.00820.34
8.2.30.0000.00719.28
8.2.20.0040.00418.05
8.2.10.0000.00817.96
8.2.00.0060.00318.25
8.1.280.0040.01125.92
8.1.270.0110.00422.13
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00322.00
8.1.230.0080.00419.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.50
8.1.190.0050.00317.25
8.1.180.0070.00018.10
8.1.170.0060.00318.62
8.1.160.0050.00218.89
8.1.150.0080.00020.12
8.1.140.0070.00019.60
8.1.130.0050.00318.97
8.1.120.0070.00017.57
8.1.110.0030.00517.50
8.1.100.0040.00417.50
8.1.90.0030.00517.55
8.1.80.0030.00517.55
8.1.70.0030.00317.54
8.1.60.0040.00417.59
8.1.50.0070.00317.53
8.1.40.0000.00717.59
8.1.30.0070.00017.78
8.1.20.0000.00817.77
8.1.10.0080.00017.73
8.1.00.0040.00417.64
8.0.300.0040.00420.03
8.0.290.0000.00716.88
8.0.280.0000.00718.47
8.0.270.0000.00717.27
8.0.260.0000.00719.02
8.0.250.0070.00016.95
8.0.240.0040.00417.09
8.0.230.0030.00317.02
8.0.220.0070.00017.05
8.0.210.0030.00517.04
8.0.200.0000.00717.00
8.0.190.0000.00816.93
8.0.180.0040.00417.02
8.0.170.0000.00816.89
8.0.160.0070.00016.96
8.0.150.0070.00016.91
8.0.140.0070.00016.99
8.0.130.0030.00313.36
8.0.120.0040.00416.92
8.0.110.0030.00316.89
8.0.100.0040.00416.82
8.0.90.0000.00716.88
8.0.80.0180.00616.99
8.0.70.0000.00716.95
8.0.60.0000.00716.93
8.0.50.0000.00816.91
8.0.30.0080.01017.09
8.0.20.0090.00917.40
8.0.10.0020.00517.06
8.0.00.0100.00917.00
7.4.330.0000.00615.55
7.4.320.0000.00716.70
7.4.300.0050.00216.81
7.4.290.0000.00716.80
7.4.280.0030.00516.75
7.4.270.0070.00016.71
7.4.260.0000.00716.79
7.4.250.0070.00016.67
7.4.240.0000.00716.70
7.4.230.0030.00316.91
7.4.220.0140.01116.73
7.4.210.0060.01216.77
7.4.200.0000.00716.74
7.4.160.0080.00816.62
7.4.150.0060.01817.40
7.4.140.0080.01217.86
7.4.130.0060.01516.59
7.4.120.0130.00916.73
7.4.110.0090.01416.78
7.4.100.0100.00716.73
7.4.90.0110.00716.66
7.4.80.0100.01319.39
7.4.70.0100.00716.66
7.4.60.0030.01316.57
7.4.50.0060.00616.52
7.4.40.0070.01016.50
7.4.30.0050.01316.78
7.4.00.0160.00014.88
7.3.330.0000.00613.20
7.3.320.0030.00213.11
7.3.310.0000.00716.15
7.3.300.0070.00016.30
7.3.290.0000.00716.18
7.3.280.0080.00916.31
7.3.270.0090.00917.40
7.3.260.0090.00816.45
7.3.240.0100.00816.40
7.3.230.0030.01316.25
7.3.210.0060.01016.61
7.3.200.0100.00616.59
7.3.190.0160.00616.19
7.3.180.0120.00316.54
7.3.170.0060.00916.48
7.3.160.0100.01016.25
7.3.10.0040.01116.67
7.3.00.0080.00616.57
7.2.330.0120.00616.73
7.2.320.0000.01816.57
7.2.310.0030.01316.75
7.2.300.0100.00716.70
7.2.290.0100.01016.70
7.2.130.0050.01216.83
7.2.120.0050.00716.89
7.2.110.0080.00816.97
7.2.100.0060.00816.97
7.2.90.0050.01416.88
7.2.80.0040.01216.88
7.2.70.0110.00716.91
7.2.60.0050.01016.98
7.2.50.0100.01216.99
7.2.40.0090.00816.81
7.2.30.0040.01017.00
7.2.20.0080.00916.84
7.2.10.0100.00716.70
7.2.00.0050.01116.64
7.1.250.0080.00915.87
7.1.240.0090.00615.94
7.1.230.0080.00815.79
7.1.220.0080.00815.67
7.1.210.0140.00515.97
7.1.200.0060.00815.94
7.1.190.0070.00715.43
7.1.180.0140.00015.78
7.1.170.0130.00915.50
7.1.160.0110.00815.91
7.1.150.0190.00015.87
7.1.140.0180.00015.89
7.1.130.0060.00915.77
7.1.120.0070.00715.91
7.1.110.0100.00715.57
7.1.100.0100.00715.80
7.1.90.0030.01215.95
7.1.80.0110.01115.89
7.1.70.0040.00716.51
7.1.60.0100.00416.44
7.1.50.0050.01525.18
7.1.40.0140.01225.04
7.1.30.0100.01025.20
7.1.20.0100.01425.24
7.1.10.0050.01016.27
7.1.00.0080.01015.99
7.0.330.0060.00615.51
7.0.320.0060.01015.63
7.0.310.0130.00715.37
7.0.300.0040.01115.48
7.0.290.0100.01015.21
7.0.280.0080.00815.44
7.0.270.0150.00015.46
7.0.260.0110.00415.49
7.0.250.0040.00915.58
7.0.240.0100.00315.36
7.0.230.0130.00715.39
7.0.220.0070.01015.41
7.0.210.0070.00715.52
7.0.200.0060.01216.11
7.0.190.0100.00715.24
7.0.180.0050.01016.03
7.0.170.0000.01315.78
7.0.160.0080.00715.89
7.0.150.0090.00615.77
7.0.140.0050.00715.86
7.0.130.0060.00715.90
7.0.120.0090.00715.75
7.0.110.0060.00815.78
7.0.100.0020.01215.74
7.0.90.0120.00415.74
7.0.80.0020.01215.88
7.0.70.0080.00615.86
7.0.60.0050.01215.74
7.0.50.0070.00715.86
7.0.40.0080.00714.89
7.0.30.0080.01014.93
7.0.20.0060.01014.87
7.0.10.0070.00914.92
7.0.00.0090.00714.98
5.6.380.0070.01014.49

preferences:
34.12 ms | 400 KiB | 5 Q