3v4l.org

run code in 300+ PHP versions simultaneously
<?php function so_validate_date( $date, $format ) { $d = DateTime::createFromFormat( "!$format", $date ); return $d && $d->format( $format ) == $date; } echo so_validate_date('2011-02', 'Y-m') ? 'true' : 'false';

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.5.10.0130.00519.04
8.5.00.0180.00420.14
8.4.160.0120.01123.96
8.4.150.0090.00516.72
8.4.140.0170.00417.75
8.4.130.0140.00618.02
8.4.120.0120.00720.51
8.4.110.0100.01018.93
8.4.100.0110.00918.01
8.4.90.0070.00218.76
8.4.80.0070.00218.00
8.4.70.0060.00218.13
8.4.60.0090.01018.94
8.4.50.0090.01318.04
8.4.40.0070.01319.62
8.4.30.0080.01120.31
8.4.20.0060.00317.89
8.4.10.0030.00619.64
8.3.280.0080.00616.27
8.3.270.0130.00716.10
8.3.260.0090.00516.56
8.3.250.0110.00818.81
8.3.240.0040.00416.45
8.3.230.0120.01016.92
8.3.220.0110.00717.22
8.3.210.0030.00416.73
8.3.200.0040.00516.62
8.3.190.0040.00419.12
8.3.180.0100.00618.32
8.3.170.0120.00619.23
8.3.160.0040.01316.66
8.3.150.0150.00317.08
8.3.140.0080.00016.46
8.3.130.0040.00416.90
8.3.120.0090.00618.93
8.3.110.0040.00416.50
8.3.100.0030.00618.27
8.3.90.0000.00826.77
8.3.80.0060.00319.36
8.3.70.0160.00618.39
8.3.60.0130.00718.31
8.3.50.0140.00323.65
8.3.40.0120.00318.98
8.3.30.0180.00018.96
8.3.20.0040.00420.86
8.3.10.0060.00321.97
8.3.00.0030.00621.89
8.2.290.0110.00820.44
8.2.280.0110.00918.23
8.2.270.0120.00617.06
8.2.260.0030.00616.92
8.2.250.0080.00018.70
8.2.240.0070.01016.64
8.2.230.0070.01320.94
8.2.220.0090.00024.06
8.2.210.0070.01126.77
8.2.200.0050.00518.88
8.2.190.0120.00916.75
8.2.180.0160.00618.66
8.2.170.0110.00422.96
8.2.160.0100.01022.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00719.46
8.2.110.0060.00321.04
8.2.100.0080.00417.97
8.2.90.0060.00317.88
8.2.80.0070.00319.04
8.2.70.0060.00317.75
8.2.60.0060.00317.92
8.2.50.0030.00618.07
8.2.40.0040.00417.97
8.2.30.0080.00018.06
8.2.20.0050.00318.09
8.2.10.0000.00719.23
8.2.00.0050.00319.32
8.1.330.0120.00721.92
8.1.320.0130.00516.17
8.1.310.0040.01116.63
8.1.300.0130.00616.16
8.1.290.0100.00030.84
8.1.280.0030.01725.92
8.1.270.0000.00720.67
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00317.48
8.1.230.0070.00417.89
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0090.00017.35
8.1.180.0030.00518.10
8.1.170.0030.00518.69
8.1.160.0000.00718.98
8.1.150.0000.00719.09
8.1.140.0040.00420.84
8.1.130.0000.00720.15
8.1.120.0030.00517.52
8.1.110.0000.00917.54
8.1.100.0000.00717.64
8.1.90.0030.00417.54
8.1.80.0070.00317.53
8.1.70.0070.00017.62
8.1.60.0050.00317.60
8.1.50.0030.00717.57
8.1.40.0000.00817.52
8.1.30.0000.00717.61
8.1.20.0000.00817.66
8.1.10.0050.00317.61
8.1.00.0000.00817.70
8.0.300.0070.00018.78
8.0.290.0000.00716.88
8.0.280.0040.00418.46
8.0.270.0040.00418.21
8.0.260.0000.00620.15
8.0.250.0000.00717.18
8.0.240.0040.00417.04
8.0.230.0050.00317.14
8.0.220.0070.00017.14
8.0.210.0070.00017.15
8.0.200.0000.00717.20
8.0.190.0000.00917.16
8.0.180.0040.00417.01
8.0.170.0060.00617.14
8.0.160.0080.00017.07
8.0.150.0020.00517.01
8.0.140.0000.00817.05
8.0.130.0000.00513.43
8.0.120.0040.00417.12
8.0.110.0040.00417.09
8.0.100.0000.00716.97
8.0.90.0060.00317.16
8.0.80.0110.00717.07
8.0.70.0030.00516.99
8.0.60.0000.00716.98
8.0.50.0000.00717.04
8.0.30.0160.00017.33
8.0.20.0120.00617.36
8.0.10.0000.00717.11
8.0.00.0140.00316.98
7.4.330.0030.00316.76
7.4.320.0060.00016.60
7.4.300.0000.00716.69
7.4.290.0080.00016.72
7.4.280.0070.00016.52
7.4.270.0050.00216.59
7.4.260.0000.00513.32
7.4.250.0000.00716.44
7.4.240.0030.00316.58
7.4.230.0070.00016.47
7.4.220.0020.00516.59
7.4.210.0080.00916.64
7.4.200.0000.00716.69
7.4.130.0100.00716.56
7.4.120.0100.00616.71
7.4.110.0030.01316.74
7.4.100.0070.01416.80
7.4.90.0030.01416.63
7.4.80.0080.00819.39
7.4.70.0100.00716.68
7.4.60.0040.01716.63
7.4.50.0090.00616.42
7.4.40.0090.00916.74
7.4.10.0090.00814.76
7.4.00.0060.00615.05
7.3.330.0000.00716.47
7.3.320.0060.00013.45
7.3.310.0040.00416.34
7.3.300.0030.00316.44
7.3.290.0080.00916.46
7.3.280.0070.01116.45
7.3.260.0110.00716.67
7.3.230.0090.00816.70
7.3.210.0100.00716.68
7.3.200.0100.00716.59
7.3.190.0130.00816.61
7.3.180.0030.01316.45
7.3.170.0100.00716.45
7.3.160.0120.00316.70
7.3.130.0150.00614.88
7.3.120.0110.00714.64
7.3.110.0150.00314.95
7.3.100.0180.00615.11
7.3.90.0120.00814.73
7.3.80.0060.01315.11
7.3.70.0130.00914.86
7.3.60.0130.00814.86
7.3.50.0070.01315.07
7.3.40.0180.00614.86
7.3.30.0180.00914.71
7.3.20.0090.01015.11
7.3.10.0080.01214.89
7.3.00.0200.00214.91
7.2.330.0060.01216.64
7.2.320.0110.01116.74
7.2.310.0080.00816.64
7.2.300.0110.01116.81
7.2.290.0110.00916.48
7.2.260.0070.01314.87
7.2.250.0110.00814.89
7.2.240.0060.01615.16
7.2.230.0190.00514.69
7.2.220.0100.01015.18
7.2.210.0150.00615.04
7.2.200.0160.00815.18
7.2.190.0100.01414.64
7.2.180.0090.01315.15
7.2.170.0210.00414.97
7.2.160.0180.00515.19
7.2.150.0130.00915.21
7.2.140.0140.00715.04
7.2.130.0070.01515.40
7.2.120.0110.01015.13
7.2.110.0140.00715.27
7.2.100.0050.01515.01
7.2.90.0110.00715.00
7.2.80.0150.00615.21
7.2.70.0120.00614.98
7.2.60.0100.01014.93
7.2.50.0160.00515.13
7.2.40.0140.01115.15
7.2.30.0160.00715.08
7.2.20.0110.00815.04
7.2.10.0180.00314.98
7.2.00.0060.00914.99
5.6.330.0070.00419.49

preferences:
177.43 ms | 403 KiB | 5 Q