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'),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.60.0150.00018.43
8.3.50.0140.00517.17
8.3.40.0120.00918.89
8.3.30.0110.00718.61
8.3.20.0030.00618.79
8.3.10.0090.00020.36
8.3.00.0030.00519.38
8.2.180.0100.01016.88
8.2.170.0170.00322.96
8.2.160.0000.01518.91
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00318.85
8.2.110.0000.01021.12
8.2.100.0080.00417.84
8.2.90.0070.00419.33
8.2.80.0040.00419.46
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0030.00618.22
8.2.30.0040.00418.00
8.2.20.0030.00619.52
8.2.10.0040.00417.75
8.2.00.0080.00017.70
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0110.00022.54
8.1.230.0080.00421.05
8.1.220.0030.00617.74
8.1.210.0040.00719.00
8.1.200.0070.00317.35
8.1.190.0000.00717.66
8.1.180.0040.00418.10
8.1.170.0040.00418.96
8.1.160.0030.00518.95
8.1.150.0040.00418.56
8.1.140.0040.00417.51
8.1.130.0030.00317.75
8.1.120.0030.00517.39
8.1.110.0040.00417.45
8.1.100.0040.00417.52
8.1.90.0000.00717.47
8.1.80.0040.00417.51
8.1.70.0070.00017.36
8.1.60.0030.00517.58
8.1.50.0030.00517.50
8.1.40.0000.00817.39
8.1.30.0000.00817.64
8.1.20.0000.00717.57
8.1.10.0040.00417.57
8.1.00.0000.00717.59
8.0.300.0000.00819.98
8.0.290.0040.00416.75
8.0.280.0000.00818.43
8.0.270.0080.00017.28
8.0.260.0030.00316.80
8.0.250.0040.00416.86
8.0.240.0000.00816.81
8.0.230.0050.00216.98
8.0.220.0030.00316.95
8.0.210.0070.00016.82
8.0.200.0000.00916.98
8.0.190.0060.00316.86
8.0.180.0040.00416.95
8.0.170.0040.00416.86
8.0.160.0000.00716.76
8.0.150.0000.00816.93
8.0.140.0100.00016.93
8.0.130.0000.00513.40
8.0.120.0040.00416.89
8.0.110.0030.00516.93
8.0.100.0030.00516.80
8.0.90.0000.00716.82
8.0.80.0040.01216.87
8.0.70.0040.00416.89
8.0.60.0040.00416.76
8.0.50.0050.00317.02
8.0.30.0000.01617.21
8.0.20.0120.00617.25
8.0.10.0030.00517.10
8.0.00.0100.00916.74
7.4.330.0050.00012.99
7.4.320.0050.00216.53
7.4.300.0000.00616.58
7.4.290.0070.00016.57
7.4.280.0040.00416.52
7.4.270.0000.00716.61
7.4.260.0060.00013.28
7.4.250.0030.00616.55
7.4.240.0040.00416.39
7.4.230.0000.00716.67
7.4.220.0030.01516.54
7.4.210.0030.01616.54
7.4.200.0030.00316.62
7.4.190.0030.00316.71
7.4.160.0000.01516.54
7.4.150.0040.01416.58
7.4.140.0090.00916.71
7.4.130.0100.00716.48
7.4.120.0100.00816.43
7.4.110.0100.00716.60
7.4.100.0130.00316.58
7.4.90.0070.01116.40
7.4.80.0130.00419.39
7.4.70.0040.01216.69
7.4.60.0000.01616.41
7.4.50.0000.00716.48
7.4.40.0060.00616.57
7.4.30.0100.00616.50
7.4.00.0040.01214.67
7.3.330.0060.00013.21
7.3.320.0000.00613.22
7.3.310.0040.00416.40
7.3.300.0000.00716.25
7.3.290.0050.00916.30
7.3.280.0070.00716.32
7.3.270.0110.00516.57
7.3.260.0170.00316.36
7.3.250.0090.01016.53
7.3.240.0000.01616.38
7.3.230.0130.00316.32
7.3.210.0060.01216.40
7.3.200.0030.01516.62
7.3.190.0100.00716.33
7.3.180.0120.00316.61
7.3.170.0160.00016.30
7.3.160.0130.01016.32
7.3.120.0030.01015.02
7.3.10.0210.00816.45
7.3.00.0170.00916.67
7.2.330.0100.00716.68
7.2.320.0070.01416.60
7.2.310.0030.02916.33
7.2.300.0120.01216.32
7.2.290.0080.00816.44
7.2.130.0150.01116.38
7.2.120.0240.00516.29
7.2.110.0180.00916.24
7.2.100.0190.00516.51
7.2.90.0160.01016.36
7.2.80.0150.01016.30
7.2.70.0170.01416.99
7.2.60.0160.01216.53
7.2.50.0120.01216.39
7.2.40.0140.01616.42
7.2.30.0120.01516.23
7.2.20.0180.00416.18
7.2.10.0150.01116.67
7.2.00.0140.00716.54
7.1.250.0100.01015.60
7.1.70.0050.00316.78
7.1.60.0090.01519.30
7.1.50.0080.00316.83
7.1.00.0000.03722.50
7.0.200.0030.00316.71
7.0.140.0100.06722.07
7.0.120.0070.06021.96
7.0.100.0200.05320.08
7.0.90.0030.04320.15
7.0.80.0230.06720.02
7.0.70.0370.04719.92
7.0.60.0130.06720.08
7.0.50.0100.06720.34
7.0.40.0030.06020.04
7.0.30.0130.06720.10
7.0.20.0070.08320.11
7.0.10.0000.08020.03
7.0.00.0130.06719.95
5.6.280.0100.06720.93
5.6.250.0070.06720.61
5.6.240.0070.05020.56
5.6.230.0070.04320.66
5.6.220.0070.04720.57
5.6.210.0170.05320.76
5.6.200.0030.04321.05
5.6.190.0100.07321.07
5.6.180.0100.07321.05
5.6.170.0030.08321.10
5.6.160.0070.04321.18
5.6.150.0130.04720.96
5.6.140.0070.08721.09
5.6.130.0030.06021.03
5.6.120.0030.05320.95
5.6.110.0030.04321.11
5.6.100.0230.06321.03
5.6.90.0100.06720.94
5.6.80.0130.05720.50
5.6.70.0070.05720.35
5.6.60.0130.03320.41
5.6.50.0100.08320.48
5.6.40.0130.03720.53
5.6.30.0170.07020.32
5.6.20.0070.04320.41
5.6.10.0070.07320.32
5.6.00.0100.04320.45
5.5.380.0130.08320.37
5.5.370.0000.05020.43
5.5.360.0070.08020.36
5.5.350.0070.05020.41
5.5.340.0030.04020.85
5.5.330.0170.03720.88
5.5.320.0100.07320.88
5.5.310.0100.07020.88
5.5.300.0070.04320.87
5.5.290.0100.05720.84
5.5.280.0070.05020.93
5.5.270.0070.03720.87
5.5.260.0100.08320.83
5.5.250.0100.06320.69
5.5.240.0100.06720.29
5.5.230.0070.03720.22
5.5.220.0030.05320.20
5.5.210.0030.05320.07
5.5.200.0030.06320.17
5.5.190.0070.05320.24
5.5.180.0030.04320.00
5.5.160.0000.06320.14
5.5.150.0070.05020.14
5.5.140.0070.04720.14
5.5.130.0100.04020.28
5.5.120.0030.04020.12
5.5.110.0070.04320.13
5.5.100.0070.04320.07
5.5.90.0070.03720.08
5.5.80.0030.04020.08
5.5.70.0100.03020.16
5.5.60.0070.03719.95
5.5.50.0030.04019.95
5.5.40.0070.05720.11
5.5.30.0170.06020.14
5.5.20.0030.04720.06
5.5.10.0070.03719.97
5.5.00.0030.04020.13
5.4.450.0130.04019.45
5.4.440.0070.03319.50
5.4.430.0100.06719.45
5.4.420.0100.07319.48
5.4.410.0030.08019.05
5.4.400.0000.06018.95
5.4.390.0100.03718.85
5.4.380.0070.06719.23
5.4.370.0100.07319.16
5.4.360.0100.04019.23
5.4.350.0070.08018.90
5.4.340.0030.05018.86
5.4.320.0030.07319.09
5.4.310.0100.03719.03
5.4.300.0070.03718.90
5.4.290.0000.07019.21
5.4.280.0030.04019.03
5.4.270.0030.04719.12
5.4.260.0000.05019.04
5.4.250.0070.04719.12
5.4.240.0070.07319.18
5.4.230.0000.04719.23
5.4.220.0000.04318.91
5.4.210.0070.05019.04
5.4.200.0030.05319.02
5.4.190.0100.03318.89
5.4.180.0070.03719.17
5.4.170.0030.04019.11
5.4.160.0070.03718.88
5.4.150.0100.03019.15
5.4.140.0000.04316.41
5.4.130.0100.03316.42
5.4.120.0000.05016.48
5.4.110.0070.03716.46
5.4.100.0070.03016.38
5.4.90.0070.03716.50
5.4.80.0030.06316.36
5.4.70.0000.04016.47
5.4.60.0030.07316.54
5.4.50.0000.05316.44
5.4.40.0030.04016.45
5.4.30.0170.06016.45
5.4.20.0000.03716.32
5.4.10.0070.04016.47
5.4.00.0030.05315.64
5.3.290.0130.06014.79
5.3.280.0070.07014.59
5.3.270.0030.04014.68
5.3.260.0000.04014.58
5.3.250.0000.04014.64
5.3.240.0070.03314.54
5.3.230.0070.03314.68
5.3.220.0030.04714.57
5.3.210.0070.06714.55
5.3.200.0030.04014.55
5.3.190.0000.03714.58
5.3.180.0030.03714.51
5.3.170.0100.06714.55
5.3.160.0000.04714.63
5.3.150.0030.05714.66
5.3.140.0030.07714.55
5.3.130.0030.04714.62
5.3.120.0000.04714.53
5.3.110.0030.03714.64
5.3.100.0030.04314.11
5.3.90.0030.05314.13
5.3.80.0000.04013.93
5.3.70.0030.03313.93
5.3.60.0130.05314.10
5.3.50.0070.05013.91
5.3.40.0000.05014.08
5.3.30.0130.05714.04
5.3.20.0000.08313.84
5.3.10.0130.04713.79
5.3.00.0030.06013.74
5.2.170.0000.06711.28
5.2.160.0070.04711.26
5.2.150.0070.06311.21
5.2.140.0000.04011.09
5.2.130.0000.06311.22
5.2.120.0030.03311.21
5.2.110.0000.03711.04
5.2.100.0030.06711.02
5.2.90.0000.04711.13
5.2.80.0070.02711.17
5.2.70.0000.06710.99
5.2.60.0030.02711.06
5.2.50.0030.05311.12
5.2.40.0070.05711.13
5.2.30.0070.05711.02
5.2.20.0030.05710.88
5.2.10.0070.05310.80
5.2.00.0070.05710.84
5.1.60.0030.02010.43
5.1.50.0000.05710.43
5.1.40.0000.04310.43
5.1.30.0100.04310.43
5.1.20.0000.02710.43
5.1.10.0030.02310.43
5.1.00.0070.02010.43
5.0.50.0070.01310.43
5.0.40.0070.04010.43
5.0.30.0000.03010.43
5.0.20.0000.04710.43
5.0.10.0070.04010.43
5.0.00.0000.04710.43
4.4.90.0000.02310.43
4.4.80.0000.03310.43
4.4.70.0130.02310.43
4.4.60.0070.00710.43
4.4.50.0030.01710.43
4.4.40.0030.03010.43
4.4.30.0030.03710.43
4.4.20.0070.01310.43
4.4.10.0000.01710.43
4.4.00.0000.02710.43
4.3.110.0000.03310.43
4.3.100.0000.01310.43
4.3.90.0000.01710.43
4.3.80.0000.04710.43
4.3.70.0030.03310.43
4.3.60.0030.03010.43
4.3.50.0070.03310.43
4.3.40.0070.03310.43
4.3.30.0000.01310.43
4.3.20.0030.01310.43
4.3.10.0000.01310.43
4.3.00.0000.03310.43

preferences:
35.78 ms | 401 KiB | 5 Q