3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validBirthDate($fecha,$arrData,$params){ if (isset($arrData['fecha_nacimiento'])) { $month = isset($arrData['mes']) && is_numeric($arrData['mes']) && !strstr($arrData['mes'], '.') ? (int)$arrData['mes'] : 0; $day = isset($arrData['dia']) && is_numeric($arrData['dia']) && !strstr($arrData['dia'], '.') ? (int)$arrData['dia'] : 0; $year = isset($arrData['anio']) && is_numeric($arrData['anio']) && !strstr($arrData['anio'], '.') ? (int)$arrData['anio'] : 0; return checkdate($month, $day, $year); }else{ return false; } } echo validBirthDate('', array('fecha_nacimiento'=>'123', 'mes'=>'1', 'dia'=>'1', 'anio'=>'1', false)) ? 'valid' : 'invalid';

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.0100.00716.88
8.3.50.0120.01022.11
8.3.40.0110.01118.68
8.3.30.0070.00719.08
8.3.20.0040.00420.38
8.3.10.0000.00823.61
8.3.00.0110.00019.38
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0070.01320.34
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.22
8.2.110.0060.00322.04
8.2.100.0020.01017.72
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0040.00717.50
8.2.60.0080.00017.65
8.2.50.0040.00418.07
8.2.40.0060.00318.09
8.2.30.0050.00218.08
8.2.20.0050.00317.72
8.2.10.0000.00818.03
8.2.00.0090.00017.75
8.1.280.0060.00925.92
8.1.270.0040.00422.01
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.89
8.1.230.0080.00419.10
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0000.00817.43
8.1.180.0000.00918.10
8.1.170.0060.00318.50
8.1.160.0000.00721.95
8.1.150.0000.00718.55
8.1.140.0000.00717.23
8.1.130.0030.00317.67
8.1.120.0040.00417.25
8.1.110.0040.00417.34
8.1.100.0040.00417.25
8.1.90.0040.00417.38
8.1.80.0070.00017.35
8.1.70.0000.00617.34
8.1.60.0080.00017.43
8.1.50.0000.00817.49
8.1.40.0040.00417.43
8.1.30.0000.00817.57
8.1.20.0060.00317.64
8.1.10.0000.00717.39
8.1.00.0030.00617.38
8.0.300.0070.00018.77
8.0.290.0020.00516.93
8.0.280.0070.00018.37
8.0.270.0030.00317.22
8.0.260.0030.00317.22
8.0.250.0050.00217.01
8.0.240.0030.00617.01
8.0.230.0000.00716.99
8.0.220.0030.00316.91
8.0.210.0000.00716.80
8.0.200.0060.00016.89
8.0.190.0090.00016.89
8.0.180.0000.00716.96
8.0.170.0040.00416.95
8.0.160.0080.00016.93
8.0.150.0000.00716.75
8.0.140.0000.00716.93
8.0.130.0030.00313.31
8.0.120.0030.00516.86
8.0.110.0030.00616.95
8.0.100.0000.00716.78
8.0.90.0040.00416.87
8.0.80.0120.01216.86
8.0.70.0040.00416.96
8.0.60.0000.00716.86
8.0.50.0040.00416.75
8.0.30.0120.00617.04
8.0.20.0130.00517.40
8.0.10.0090.00016.80
8.0.00.0120.00816.88
7.4.330.0000.00615.00
7.4.320.0060.00016.52
7.4.300.0000.00716.46
7.4.290.0000.00716.38
7.4.280.0000.00716.59
7.4.270.0000.00816.46
7.4.260.0110.00016.54
7.4.250.0070.00016.53
7.4.240.0030.00316.54
7.4.230.0000.00716.45
7.4.220.0030.01416.59
7.4.210.0070.01016.52
7.4.200.0070.00016.63
7.4.190.0050.00216.71
7.4.160.0060.01316.51
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0060.00916.54
7.4.120.0050.01516.54
7.4.110.0120.00616.57
7.4.100.0180.01016.52
7.4.90.0080.01116.58
7.4.80.0120.00619.39
7.4.70.0030.01216.38
7.4.60.0100.00716.44
7.4.50.0060.00316.48
7.4.40.0070.01022.77
7.4.30.0040.01116.41
7.4.00.0090.00615.18
7.3.330.0000.00513.13
7.3.320.0000.00513.39
7.3.310.0000.00716.35
7.3.300.0030.00316.18
7.3.290.0000.01616.30
7.3.280.0080.00916.28
7.3.270.0000.02017.40
7.3.260.0190.00316.58
7.3.250.0130.00816.45
7.3.240.0160.00016.30
7.3.230.0070.01516.39
7.3.210.0090.00916.39
7.3.200.0120.00619.39
7.3.190.0130.00916.29
7.3.180.0090.00616.47
7.3.170.0030.01616.61
7.3.160.0050.01316.59
7.3.120.0060.00914.68
7.3.110.0060.01214.84
7.3.100.0070.01314.71
7.3.90.0120.00614.75
7.3.80.0040.01214.82
7.3.70.0030.00614.68
7.3.60.0040.01114.84
7.3.50.0140.00314.86
7.3.40.0080.00314.85
7.3.30.0090.00614.56
7.3.20.0070.00716.73
7.3.10.0040.01116.60
7.3.00.0030.00916.64
7.2.330.0100.00716.57
7.2.320.0100.00616.63
7.2.310.0100.00616.52
7.2.300.0060.00916.59
7.2.290.0060.01116.66
7.2.250.0100.01014.87
7.2.240.0100.00714.89
7.2.230.0060.01214.97
7.2.220.0110.00815.08
7.2.210.0040.01114.81
7.2.200.0060.00315.02
7.2.190.0060.00914.78
7.2.180.0080.00415.07
7.2.170.0040.00814.70
7.2.60.0040.01116.46
7.2.00.0030.00619.32
7.1.330.0100.00315.57
7.1.320.0030.00615.82
7.1.310.0100.00715.73
7.1.300.0090.00615.33
7.1.290.0030.00715.45
7.1.280.0060.00615.42
7.1.270.0090.00615.27
7.1.260.0070.00715.72
7.1.200.0030.01015.39
7.1.100.0120.00617.99
7.1.70.0040.00416.66
7.1.60.0100.00319.33
7.1.50.0100.00616.84
7.1.00.0100.07022.42
7.0.200.0720.00314.82
7.0.140.0000.07721.99
7.0.60.0130.07320.03
7.0.50.0130.08317.90
7.0.40.0130.06720.25
7.0.30.0270.06720.24
7.0.20.0270.04020.23
7.0.10.0070.08720.09
7.0.00.0100.03720.09
5.6.280.0030.07721.08
5.6.210.0130.08020.70
5.6.200.0030.04018.28
5.6.190.0100.08320.60
5.6.180.0300.05020.63
5.6.170.0270.07020.55
5.6.160.0100.05720.57
5.6.150.0070.04318.19
5.6.140.0170.07018.14
5.6.130.0030.05018.24
5.6.120.0100.05720.98
5.6.110.0130.07321.01
5.6.100.0200.08021.02
5.6.90.0030.04321.05
5.6.80.0030.04320.52
5.5.350.0070.07320.43
5.5.340.0100.07317.99
5.5.330.0130.04320.26
5.5.320.0400.07020.25
5.5.310.0170.04020.41
5.5.300.0070.04318.02
5.5.290.0000.06318.00
5.5.280.0100.08020.96
5.5.270.0070.08320.96
5.5.260.0030.05320.77
5.5.250.0200.07020.63
5.5.240.0200.07720.38
5.4.450.1900.04319.46
5.4.440.1430.04319.55
5.4.430.1830.04319.55
5.4.420.1900.03719.41
5.4.410.1830.04719.32
5.4.400.1700.03719.22
5.4.390.1500.04019.19
5.4.380.0670.05319.20
5.4.370.0000.04319.24
5.4.360.0030.03719.27
5.4.350.1400.05018.99
5.4.340.1530.03718.85
5.4.320.1570.03719.09
5.4.310.1500.03719.23
5.4.300.1770.04318.98
5.4.290.1870.04018.95
5.4.280.1700.03719.13
5.4.270.1900.04319.25
5.4.260.1870.04019.09
5.4.250.1930.05019.23
5.4.240.1870.03718.97
5.4.230.0830.04018.83
5.4.220.0070.03318.87
5.4.210.0070.04319.21
5.4.200.1530.03719.05
5.4.190.1600.03319.07
5.4.180.1830.05019.13
5.4.170.1670.02719.05
5.4.160.1730.03719.04
5.4.150.1870.05019.11
5.4.140.1730.04016.44
5.4.130.1730.04016.38
5.4.120.1530.04016.37
5.4.110.1900.04716.54
5.4.100.1600.03316.54
5.4.90.1870.04716.55
5.4.80.1630.03716.34
5.4.70.1300.04016.34
5.4.60.1970.04016.45
5.4.50.1770.05016.43
5.4.40.1570.03716.53
5.4.30.1800.04016.28
5.4.20.1700.03316.55
5.4.10.1830.04316.55
5.4.00.1500.03315.78
5.3.290.1670.04014.58
5.3.280.1670.04014.52
5.3.270.1000.05014.70
5.3.260.0030.07014.67
5.3.250.0030.08014.69
5.3.240.1470.03714.76
5.3.230.1470.04014.68
5.3.220.1730.04714.63
5.3.210.1770.04014.66
5.3.200.1800.04314.72
5.3.190.1570.03714.48
5.3.180.1570.03314.56
5.3.170.1770.04014.80
5.3.160.1770.04314.62
5.3.150.1770.04014.59
5.3.140.1530.04714.49
5.3.130.0900.05014.48
5.3.120.0100.07014.78
5.3.110.0070.06014.47
5.3.100.1630.04714.07
5.3.90.1830.03714.00
5.3.80.1700.04314.04
5.3.70.1830.03713.93
5.3.60.1700.04714.07
5.3.50.1770.04313.98
5.3.40.1500.03713.89
5.3.30.1530.04013.82
5.3.20.1800.03313.61
5.3.10.1730.05313.64
5.3.00.1500.03713.88
5.2.170.0700.03311.21
5.2.160.0100.05311.25
5.2.150.0130.05011.09
5.2.140.0200.03311.23
5.2.130.1530.03011.05
5.2.120.1330.02711.21
5.2.110.1570.03011.04
5.2.100.1470.05311.12
5.2.90.1500.03311.27
5.2.80.1500.03011.04
5.2.70.1500.03311.16
5.2.60.1270.02711.28
5.2.50.1430.03711.04
5.2.40.1030.03310.91
5.2.30.1300.03710.99
5.2.20.1170.03710.87
5.2.10.1070.03710.84
5.2.00.0770.03310.64
5.1.60.0100.0239.91
5.1.50.0000.02710.02
5.1.40.0030.0379.92
5.1.30.0400.02710.27
5.1.20.1170.02010.45
5.1.10.1170.02710.16
5.1.00.1100.0339.97
5.0.50.0030.0238.79
5.0.40.0000.0208.66
5.0.30.0000.0378.29
5.0.20.0000.0208.20
5.0.10.0070.0138.42
5.0.00.0030.0278.27
4.4.90.0030.0138.20
4.4.80.0130.0178.20
4.4.70.0670.0178.20
4.4.60.0530.0178.20
4.4.50.0530.0178.20
4.4.40.0570.0238.20
4.4.30.0300.0138.20
4.4.20.0570.0178.20
4.4.10.0300.0138.20
4.4.00.0530.0238.20
4.3.110.0600.0138.21
4.3.100.0530.0138.21
4.3.90.0530.0138.21
4.3.80.0570.0208.22
4.3.70.0570.0138.22
4.3.60.0530.0138.24
4.3.50.0400.0178.25
4.3.40.0000.0238.25
4.3.30.0000.0178.25
4.3.20.0000.0178.28
4.3.10.0000.0178.28
4.3.00.0030.0278.29

preferences:
44.99 ms | 401 KiB | 5 Q