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'=>'a', '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.60.0080.00816.50
8.3.50.0090.01121.89
8.3.40.0110.00418.83
8.3.30.0130.00319.21
8.3.20.0070.00020.34
8.3.10.0000.00823.66
8.3.00.0040.00419.26
8.2.180.0100.00718.16
8.2.170.0070.00722.96
8.2.160.0090.00618.95
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.83
8.2.110.0030.00622.13
8.2.100.0090.00319.57
8.2.90.0080.00019.39
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0090.00017.93
8.2.50.0030.00618.07
8.2.40.0040.00420.10
8.2.30.0000.00818.39
8.2.20.0020.00517.84
8.2.10.0040.00417.99
8.2.00.0000.00917.70
8.1.280.0030.01025.92
8.1.270.0050.01423.82
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00623.79
8.1.230.0110.00019.23
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0060.00517.10
8.1.180.0040.00418.10
8.1.170.0050.00818.48
8.1.160.0050.00522.08
8.1.150.0000.00718.70
8.1.140.0040.00417.37
8.1.130.0070.00017.85
8.1.120.0000.00717.49
8.1.110.0000.00817.49
8.1.100.0040.00417.40
8.1.90.0030.00717.50
8.1.80.0040.00417.47
8.1.70.0000.00717.28
8.1.60.0000.00817.63
8.1.50.0080.00017.44
8.1.40.0040.00417.56
8.1.30.0030.00617.63
8.1.20.0000.00817.57
8.1.10.0050.00217.51
8.1.00.0080.00017.41
8.0.300.0000.00718.77
8.0.290.0000.00817.15
8.0.280.0000.00718.42
8.0.270.0000.00717.23
8.0.260.0040.00417.15
8.0.250.0070.00017.01
8.0.240.0070.00016.96
8.0.230.0000.00716.93
8.0.220.0030.00616.97
8.0.210.0050.00216.94
8.0.200.0000.00817.07
8.0.190.0000.00717.02
8.0.180.0000.00716.91
8.0.170.0040.00417.03
8.0.160.0030.00317.09
8.0.150.0000.00716.75
8.0.140.0090.00316.84
8.0.130.0030.00313.45
8.0.120.0040.00416.91
8.0.110.0000.00716.89
8.0.100.0040.00417.01
8.0.90.0070.00016.80
8.0.80.0160.00316.86
8.0.70.0040.00417.04
8.0.60.0000.00716.91
8.0.50.0000.00717.01
8.0.30.0110.00817.05
8.0.20.0060.01417.40
8.0.10.0040.00417.18
8.0.00.0080.01016.84
7.4.330.0020.00215.05
7.4.320.0000.00716.54
7.4.300.0060.00016.53
7.4.290.0070.00016.51
7.4.280.0070.00316.59
7.4.270.0070.00016.53
7.4.260.0040.00816.49
7.4.250.0000.00816.46
7.4.240.0020.00616.53
7.4.230.0070.00016.57
7.4.220.0090.00616.56
7.4.210.0060.00916.59
7.4.200.0040.00416.34
7.4.190.0000.00716.71
7.4.160.0150.00316.63
7.4.150.0130.00317.40
7.4.140.0100.00717.86
7.4.130.0050.01216.46
7.4.120.0100.00616.65
7.4.110.0150.00716.64
7.4.100.0130.00716.63
7.4.90.0050.01216.47
7.4.80.0170.00019.39
7.4.70.0130.00316.55
7.4.60.0090.00916.52
7.4.50.0030.00616.22
7.4.40.0080.00816.54
7.4.30.0100.00516.44
7.4.00.0030.00714.89
7.3.330.0030.00313.32
7.3.320.0030.00313.30
7.3.310.0030.00316.42
7.3.300.0030.00316.23
7.3.290.0120.00316.28
7.3.280.0100.00916.30
7.3.270.0040.01317.40
7.3.260.0080.00816.68
7.3.250.0030.01416.54
7.3.240.0070.01016.42
7.3.230.0070.01116.40
7.3.210.0070.01016.43
7.3.200.0150.00619.39
7.3.190.0060.01516.58
7.3.180.0130.00316.59
7.3.170.0160.00016.56
7.3.160.0100.00616.48
7.3.120.0030.01014.82
7.3.00.0070.00316.23
7.2.330.0090.01416.78
7.2.320.0140.00316.71
7.2.310.0100.00616.44
7.2.300.0070.01116.86
7.2.290.0100.00716.60
7.2.130.0060.00816.43
7.2.120.0040.00716.94
7.2.110.0100.00316.96
7.2.100.0030.00616.41
7.2.90.0070.00716.67
7.2.80.0030.01016.79
7.2.70.0040.00716.81
7.2.60.0070.00316.65
7.2.50.0060.00617.02
7.2.40.0000.00816.90
7.2.30.0100.00316.68
7.2.20.0120.00316.80
7.2.10.0060.00716.66
7.2.00.0040.00618.24
7.1.250.0040.00815.59
7.1.240.0070.00315.72
7.1.230.0040.00715.66
7.1.220.0030.00615.66
7.1.210.0040.00815.57
7.1.200.0060.00615.43
7.1.190.0040.00815.92
7.1.180.0050.00315.84
7.1.170.0030.00715.65
7.1.160.0050.00515.91
7.1.150.0080.00015.37
7.1.140.0030.01015.68
7.1.130.0000.01415.84
7.1.120.0030.00515.64
7.1.110.0070.00315.62
7.1.100.0050.01217.02
7.1.90.0090.00015.77
7.1.80.0030.00915.61
7.1.70.0060.01116.50
7.1.60.0000.01517.61
7.1.50.0080.00716.37
7.1.40.0040.00815.55
7.1.30.0030.00715.56
7.1.20.0080.00315.75
7.1.10.0030.00915.84
7.1.00.0050.04219.09
7.0.330.0030.00315.38
7.0.320.0090.00615.45
7.0.310.0030.00615.25
7.0.300.0040.00814.90
7.0.290.0000.01115.15
7.0.280.0030.00615.29
7.0.270.0040.01115.24
7.0.260.0030.01015.27
7.0.250.0000.01315.28
7.0.240.0040.00815.16
7.0.230.0030.01015.34
7.0.220.0030.00615.02
7.0.210.0050.00515.08
7.0.200.0020.00916.14
7.0.190.0040.00715.22
7.0.180.0060.00615.05
7.0.170.0100.00315.40
7.0.160.0060.00615.28
7.0.150.0000.01215.18
7.0.140.0070.03818.67
7.0.130.0090.00315.25
7.0.120.0070.00715.16
7.0.110.0060.00615.13
7.0.100.0070.00715.32
7.0.90.0070.01015.42
7.0.80.0030.01015.43
7.0.70.0050.03718.56
7.0.60.0080.04518.39
7.0.50.0020.02518.62
7.0.40.0090.04116.69
7.0.30.0080.03816.63
7.0.20.0060.04316.74
7.0.10.0070.04716.74
7.0.00.0100.04216.59
5.6.380.0000.00714.00
5.6.370.0070.00414.62
5.6.360.0000.01514.25
5.6.350.0000.00914.29
5.6.340.0030.00914.52
5.6.330.0030.00514.59
5.6.320.0080.00014.30
5.6.310.0030.01314.65
5.6.300.0040.00814.63
5.6.290.0030.01014.44
5.6.280.0060.03717.70
5.6.270.0120.00414.54
5.6.260.0030.00614.61
5.6.250.0060.00314.56
5.6.240.0060.00614.55
5.6.230.0120.00314.45
5.6.220.0030.03317.52
5.6.210.0140.03517.37
5.6.200.0080.04817.78
5.6.190.0030.02617.69
5.6.180.0030.03717.64
5.6.170.0110.03317.62
5.6.160.0030.03117.68
5.6.150.0070.03217.72
5.6.140.0070.02717.69
5.6.130.0080.04017.82
5.6.120.0050.04617.63
5.6.110.0100.04417.83
5.6.100.0030.03317.72
5.6.90.0050.02717.75
5.6.80.0070.03217.35
5.6.70.0070.04217.30
5.6.60.0090.04517.33
5.6.50.0050.03017.30
5.6.40.0050.04617.41
5.6.30.0060.03317.29
5.6.20.0060.02417.44
5.6.10.0070.04217.31
5.6.00.0070.04017.32
5.5.380.0000.01011.26
5.5.370.0050.00211.44
5.5.360.0080.04215.80
5.5.350.0050.03515.90
5.5.340.0050.02315.97
5.5.330.0050.04516.12
5.5.320.0050.03016.10
5.5.310.0100.03516.09
5.5.300.0100.03016.16
5.5.290.0080.04216.15
5.5.280.0050.04516.15
5.5.270.0120.03316.09
5.5.260.0130.04016.01
5.5.250.0100.04015.96
5.5.240.0080.03715.81
5.5.230.0070.04215.82
5.5.220.0100.02515.72
5.5.210.0030.04315.74
5.5.200.0080.04015.72
5.5.190.0060.04415.63
5.5.180.0030.02415.75
5.5.170.0030.00311.18
5.5.160.0050.04615.72
5.5.150.0090.04215.68
5.5.140.0100.02315.68
5.5.130.0060.03815.82
5.5.120.0050.03515.71
5.5.110.0050.03515.70
5.5.100.0070.03315.63
5.5.90.0080.02615.72
5.5.80.0050.03615.66
5.5.70.0120.03315.78
5.5.60.0080.04015.66
5.5.50.0030.04015.65
5.5.40.0080.04015.65
5.5.30.0070.03115.79
5.5.20.0130.03015.63
5.5.10.0050.03015.78
5.5.00.0040.03815.61
5.4.450.0070.04015.27
5.4.440.0050.03915.20
5.4.430.0050.04015.20
5.4.420.0070.04215.27
5.4.410.0030.03615.25
5.4.400.0050.04015.15
5.4.390.0060.04315.21
5.4.380.0010.04615.18
5.4.370.0120.02815.04
5.4.360.0090.02715.12
5.4.350.0070.04215.00
5.4.340.0070.02315.21
5.4.330.0000.00711.20
5.4.320.0030.02915.21
5.4.310.0030.04015.16
5.4.300.0050.04115.11
5.4.290.0070.03815.16
5.4.280.0060.04015.26
5.4.270.0070.02615.15
5.4.260.0040.04415.06
5.4.250.0070.03815.01
5.4.240.0050.02815.18
5.4.230.0100.03815.15
5.4.220.0080.03215.16
5.4.210.0070.02315.10
5.4.200.0030.04315.18
5.4.190.0050.03315.19
5.4.180.0040.02715.21
5.4.170.0040.03115.17
5.4.160.0060.03315.16
5.4.150.0080.03115.13
5.4.140.0050.04213.79
5.4.130.0000.04713.79
5.4.120.0030.04213.79
5.4.110.0030.03313.75
5.4.100.0060.03913.80
5.4.90.0040.02513.78
5.4.80.0080.03513.82
5.4.70.0080.04013.75
5.4.60.0110.02313.77
5.4.50.0080.03713.83
5.4.40.0050.03713.77
5.4.30.0030.02613.78
5.4.20.0090.02313.77
5.4.10.0100.03513.77
5.4.00.0030.03613.54
5.3.290.0010.04212.98
5.3.280.0030.04412.90
5.3.270.0050.03312.96
5.3.260.0050.03712.86
5.3.250.0060.03012.94
5.3.240.0050.04112.88
5.3.230.0030.04712.96
5.3.220.0040.04012.90
5.3.210.0070.03712.88
5.3.200.0030.04412.84
5.3.190.0020.02312.95
5.3.180.0070.03712.87
5.3.170.0070.03812.93
5.3.160.0000.04212.93
5.3.150.0030.04212.94
5.3.140.0060.03112.85
5.3.130.0040.04712.92
5.3.120.0050.03812.94
5.3.110.0050.02812.90
5.3.100.0000.02912.64
5.3.90.0020.03012.66
5.3.80.0070.02312.67
5.3.70.0050.03712.60
5.3.60.0060.02912.64
5.3.50.0070.03712.57
5.3.40.0050.03812.52
5.3.30.0070.02512.61
5.3.20.0050.03512.39
5.3.10.0050.03512.49
5.3.00.0050.03612.46
5.2.170.0020.02611.71
5.2.160.0050.02011.71
5.2.150.0030.01811.71
5.2.140.0060.03311.71
5.2.130.0060.03111.71
5.2.120.0020.03411.71
5.2.110.0050.03111.71
5.2.100.0090.02711.71
5.2.90.0100.02211.71
5.2.80.0030.03511.71
5.2.70.0030.02911.71
5.2.60.0050.02011.71
5.2.50.0030.03311.71
5.2.40.0000.03811.71
5.2.30.0050.01711.71
5.2.20.0020.03511.71
5.2.10.0030.03011.71
5.2.00.0030.03111.71
5.1.60.0020.02511.71
5.1.50.0020.02911.71
5.1.40.0050.02011.71
5.1.30.0060.02711.71
5.1.20.0080.02711.71
5.1.10.0030.03111.71
5.1.00.0020.03211.71
5.0.50.0050.02411.71
5.0.40.0000.02511.71
5.0.30.0020.03611.71
5.0.20.0030.01311.71
5.0.10.0040.02111.71
5.0.00.0030.03311.71
4.4.90.0020.01311.71
4.4.80.0050.01911.71
4.4.70.0010.02011.71
4.4.60.0000.02011.71
4.4.50.0060.01311.71
4.4.40.0040.02411.71
4.4.30.0000.02111.71
4.4.20.0040.01711.71
4.4.10.0030.01611.71
4.4.00.0010.02811.71
4.3.110.0000.02211.71
4.3.100.0020.01711.71
4.3.90.0020.01811.71
4.3.80.0020.02711.71
4.3.70.0020.02011.71
4.3.60.0020.01511.71
4.3.50.0020.01911.71
4.3.40.0030.02811.71
4.3.30.0030.01711.71
4.3.20.0000.02011.71
4.3.10.0010.01611.71
4.3.00.0040.01211.71

preferences:
42.5 ms | 401 KiB | 5 Q