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'),1) ? '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.40.0070.00718.97
8.3.30.0070.00719.07
8.3.20.0080.00020.04
8.3.10.0050.00323.36
8.3.00.0080.00019.51
8.2.170.0090.00622.96
8.2.160.0110.00420.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.31
8.2.110.0040.00422.26
8.2.100.0040.00818.03
8.2.90.0000.00719.36
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0060.00318.02
8.2.30.0050.00218.28
8.2.20.0040.00417.79
8.2.10.0070.00018.02
8.2.00.0000.00817.86
8.1.270.0040.00424.02
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0060.00323.87
8.1.230.0040.00719.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00717.53
8.1.180.0030.00618.10
8.1.170.0060.00318.54
8.1.160.0000.00722.08
8.1.150.0000.00818.70
8.1.140.0000.00717.43
8.1.130.0030.00317.77
8.1.120.0000.00717.42
8.1.110.0000.00817.54
8.1.100.0020.00517.43
8.1.90.0030.00317.53
8.1.80.0040.00417.36
8.1.70.0040.00417.33
8.1.60.0030.00517.59
8.1.50.0070.00017.45
8.1.40.0000.00717.58
8.1.30.0000.00817.52
8.1.20.0040.00417.62
8.1.10.0000.00717.49
8.1.00.0040.00417.55
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0000.00718.38
8.0.270.0040.00417.27
8.0.260.0000.00716.91
8.0.250.0070.00017.02
8.0.240.0000.00716.94
8.0.230.0070.00017.04
8.0.220.0000.00716.98
8.0.210.0030.00316.97
8.0.200.0030.00316.96
8.0.190.0030.00517.05
8.0.180.0040.00417.06
8.0.170.0000.00916.99
8.0.160.0080.00016.87
8.0.150.0000.00716.83
8.0.140.0040.00416.93
8.0.130.0000.00613.45
8.0.120.0050.00316.83
8.0.110.0040.00416.89
8.0.100.0050.00316.77
8.0.90.0000.00716.89
8.0.80.0120.00416.96
8.0.70.0050.00316.96
8.0.60.0040.00417.03
8.0.50.0040.00416.89
8.0.30.0100.00917.07
8.0.20.0080.01317.41
8.0.10.0000.00816.96
8.0.00.0130.00816.79
7.4.330.0000.00515.17
7.4.320.0000.00616.64
7.4.300.0070.00016.62
7.4.290.0070.00016.64
7.4.280.0070.00016.61
7.4.270.0030.00316.48
7.4.260.0000.00716.60
7.4.250.0000.00716.58
7.4.240.0000.00716.62
7.4.230.0040.00416.63
7.4.220.0000.02116.55
7.4.210.0060.00816.48
7.4.200.0070.00016.64
7.4.190.0030.00316.56
7.4.160.0080.00816.54
7.4.150.0100.00717.40
7.4.140.0140.00617.86
7.4.130.0080.00916.55
7.4.120.0110.00716.68
7.4.110.0090.00916.65
7.4.100.0060.01516.46
7.4.90.0120.00616.64
7.4.80.0060.01219.39
7.4.70.0130.00316.56
7.4.60.0200.00016.61
7.4.50.0060.00316.55
7.4.40.0000.01122.77
7.4.30.0180.00416.63
7.4.00.0080.00514.79
7.3.330.0030.00313.39
7.3.320.0000.00513.24
7.3.310.0000.00716.40
7.3.300.0070.00016.34
7.3.290.0070.01016.34
7.3.280.0120.00516.29
7.3.270.0170.00717.40
7.3.260.0070.01016.54
7.3.250.0080.00916.55
7.3.240.0040.01716.29
7.3.230.0070.01016.47
7.3.210.0060.01016.45
7.3.200.0110.00719.39
7.3.190.0130.01016.51
7.3.180.0100.00616.29
7.3.170.0100.00716.35
7.3.160.0070.01716.25
7.3.120.0070.00714.82
7.3.10.0060.00616.62
7.3.00.0040.00716.46
7.2.330.0130.00616.75
7.2.320.0100.00616.50
7.2.310.0100.01316.85
7.2.300.0140.00316.84
7.2.290.0090.00916.78
7.2.130.0090.00917.01
7.2.120.0000.01216.91
7.2.110.0100.00317.07
7.2.100.0030.00616.81
7.2.90.0080.00416.83
7.2.80.0030.01017.07
7.2.70.0040.00816.63
7.2.60.0040.00816.68
7.2.50.0060.01017.08
7.2.40.0080.00417.01
7.2.30.0070.01117.06
7.2.20.0070.00717.05
7.2.10.0040.01216.98
7.2.00.0050.00818.21
7.1.250.0000.00815.73
7.1.100.0030.01017.83
7.1.70.0000.00717.45
7.1.60.0040.01519.33
7.1.50.0040.01417.08
7.1.00.0070.07322.35
7.0.200.0030.00316.89
7.0.140.0000.07022.15
7.0.100.0130.07019.98
7.0.90.0130.07320.00
7.0.80.0270.07719.83
7.0.70.0070.08319.88
7.0.60.0200.03719.96
7.0.50.0370.08720.29
7.0.40.0070.08720.18
7.0.30.0070.08320.18
7.0.20.0130.04320.10
7.0.10.0070.04719.95
7.0.00.0100.08320.09
5.6.280.0000.07721.12
5.6.250.0170.06320.59
5.6.240.0070.07320.50
5.6.230.0170.07020.52
5.6.220.0030.05020.61
5.6.210.0030.09320.50
5.6.200.0030.07321.10
5.6.190.0100.08321.13
5.6.180.0100.07721.06
5.6.170.0170.07021.18
5.6.160.0100.08021.04
5.6.150.0030.05721.03
5.6.140.0030.07021.03
5.6.130.0000.05721.13
5.6.120.0100.08321.05
5.6.110.0170.07321.09
5.6.100.0070.08721.14
5.6.90.0130.07720.93
5.6.80.0170.06020.45
5.6.70.0130.06320.41
5.6.60.0170.07020.29
5.6.50.0130.07020.35
5.6.40.0170.06320.45
5.6.30.0100.07720.49
5.6.20.0070.07020.39
5.6.10.0100.07020.44
5.6.00.0070.07720.43
5.5.380.0070.07320.46
5.5.370.0100.08020.51
5.5.360.0070.04720.35
5.5.350.0100.07720.47
5.5.340.0030.08720.95
5.5.330.0130.07320.61
5.5.320.0070.08020.82
5.5.310.0130.08020.80
5.5.300.0030.09320.93
5.5.290.0070.05020.82
5.5.280.0130.05020.74
5.5.270.0100.08020.93
5.5.260.0070.08020.85
5.5.250.0070.08720.71
5.5.240.0130.04320.32
5.5.230.0070.07720.13
5.5.220.0100.07720.21
5.5.210.0030.08320.16
5.5.200.0030.07720.23
5.5.190.0130.07720.20
5.5.180.0130.05320.10
5.5.160.0070.07720.25
5.5.150.0030.05020.27
5.5.140.0130.06020.16
5.5.130.0130.05720.28
5.5.120.0130.07020.25
5.5.110.0170.07319.96
5.5.100.0170.06720.18
5.5.90.0100.07020.08
5.5.80.0100.07720.10
5.5.70.0070.03720.07
5.5.60.0030.07720.13
5.5.50.0130.07020.02
5.5.40.0170.05020.13
5.5.30.0170.05720.01
5.5.20.0130.07319.97
5.5.10.0100.07020.14
5.5.00.0170.07020.13
5.4.450.0070.07319.42
5.4.440.0170.06019.55
5.4.430.0070.04719.41
5.4.420.0070.08319.46
5.4.410.0070.07319.34
5.4.400.0070.07719.20
5.4.390.0070.08019.09
5.4.380.0100.07719.05
5.4.370.0170.03719.21
5.4.360.0130.06719.03
5.4.350.0100.03719.16
5.4.340.0030.07019.05
5.4.320.0030.05019.04
5.4.310.0100.06718.90
5.4.300.0100.07319.13
5.4.290.0130.05319.05
5.4.280.0100.07019.14
5.4.270.0030.07318.90
5.4.260.0030.05719.05
5.4.250.0030.08019.13
5.4.240.0030.08719.13
5.4.230.0030.08018.84
5.4.220.0030.06319.08
5.4.210.0070.07318.87
5.4.200.0100.07319.13
5.4.190.0070.08718.89
5.4.180.0100.05719.02
5.4.170.0030.08319.13
5.4.160.0070.07319.02
5.4.150.0030.08319.08
5.4.140.0170.08016.41
5.4.130.0100.05316.43
5.4.120.0070.07016.41
5.4.110.0070.07316.39
5.4.100.0030.04716.35
5.4.90.0130.07016.42
5.4.80.0070.05316.48
5.4.70.0170.06316.50
5.4.60.0170.06316.27
5.4.50.0130.06316.36
5.4.40.0170.07016.40
5.4.30.0000.07016.33
5.4.20.0100.03716.27
5.4.10.0070.08016.50
5.4.00.0100.06315.86
5.3.290.0070.07314.71
5.3.280.0070.04014.59
5.3.270.0030.04714.59
5.3.260.0070.07714.55
5.3.250.0030.07314.60
5.3.240.0030.05014.72
5.3.230.0070.06714.67
5.3.220.0070.07014.60
5.3.210.0030.09014.67
5.3.200.0100.06014.63
5.3.190.0070.07314.60
5.3.180.0030.07714.55
5.3.170.0000.08714.50
5.3.160.0030.06014.69
5.3.150.0070.07314.64
5.3.140.0070.07014.55
5.3.130.0030.05314.62
5.3.120.0070.07314.59
5.3.110.0070.04014.62
5.3.100.0070.07314.14
5.3.90.0130.06713.99
5.3.80.0070.06013.96
5.3.70.0100.05314.06
5.3.60.0000.04714.02
5.3.50.0030.07714.03
5.3.40.0030.05714.07
5.3.30.0070.07013.84
5.3.20.0130.04713.78
5.3.10.0030.07713.79
5.3.00.0130.06013.58
5.2.170.0000.06311.22
5.2.160.0000.03711.14
5.2.150.0070.05011.02
5.2.140.0030.06011.02
5.2.130.0100.02711.25
5.2.120.0030.06310.98
5.2.110.0000.03711.14
5.2.100.0000.07011.03
5.2.90.0100.04311.23
5.2.80.0030.06711.02
5.2.70.0070.05011.14
5.2.60.0070.05711.20
5.2.50.0070.04311.05
5.2.40.0070.03011.00
5.2.30.0030.05310.90
5.2.20.0030.05310.84
5.2.10.0030.05310.94
5.2.00.0070.06010.82
5.1.60.0070.0509.84
5.1.50.0070.05310.08
5.1.40.0030.04710.07
5.1.30.0070.05310.37
5.1.20.0100.05010.50
5.1.10.0100.0209.93
5.1.00.0070.05310.12
5.0.50.0070.0408.81
5.0.40.0030.0338.81
5.0.30.0030.0678.81
5.0.20.0130.0308.81
5.0.10.0100.0408.81
5.0.00.0070.0538.81
4.4.90.0030.0338.81
4.4.80.0070.0278.81
4.4.70.0070.0278.81
4.4.60.0030.0338.81
4.4.50.0000.0308.81
4.4.40.0030.0378.81
4.4.30.0000.0378.81
4.4.20.0000.0208.81
4.4.10.0070.0308.81
4.4.00.0000.0478.81
4.3.110.0000.0378.81
4.3.100.0030.0338.81
4.3.90.0070.0278.81
4.3.80.0000.0538.81
4.3.70.0000.0208.81
4.3.60.0030.0278.81
4.3.50.0000.0338.81
4.3.40.0030.0338.81
4.3.30.0030.0308.81
4.3.20.0000.0378.81
4.3.10.0000.0338.81
4.3.00.0000.0378.81

preferences:
52.97 ms | 400 KiB | 5 Q