3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'Y - 1d0;'; $arrvalidrules = explode(';', $value); // On vérifie qu'il n'y bien que deux valeurs. if (count($arrvalidrules) == 2) { $intyearend = null; if ($arrvalidrules[0]!='') { if (is_numeric($arrvalidrules[0])) { $intyearstart=intval($arrvalidrules[0]); } else if (strpos($arrvalidrules[0], 'Y') === 0) { $intyearstart = date('Y'); if (($intsignpos = strpos($arrvalidrules[0], '+')) !== false) { $intyearstart += intval(trim(substr($arrvalidrules[0], $intsignpos+1))); } else if (($intsignpos = strpos($arrvalidrules[0], '-')) !== false) { $intyearstart -= intval(trim(substr($arrvalidrules[0], $intsignpos+1))); } } else { $intyearstart = false; } } else { $intyearstart = 0; } } echo 'Date : '.$intyearstart.' - '.$intyearend;

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.00719.11
8.3.30.0070.00719.25
8.3.20.0070.00020.21
8.3.10.0050.00323.53
8.3.00.0080.00019.38
8.2.170.0030.01022.96
8.2.160.0140.00320.18
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0000.00722.27
8.2.110.0030.00722.20
8.2.100.0040.00718.16
8.2.90.0050.00319.40
8.2.80.0000.00818.16
8.2.70.0000.00817.75
8.2.60.0080.00018.16
8.2.50.0000.00818.07
8.2.40.0060.00318.47
8.2.30.0000.00718.28
8.2.20.0040.00417.83
8.2.10.0000.00818.20
8.2.00.0050.00317.88
8.1.270.0060.00322.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0090.00319.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0040.00417.54
8.1.180.0040.00418.10
8.1.170.0030.00618.69
8.1.160.0070.00021.98
8.1.150.0000.00718.72
8.1.140.0040.00417.59
8.1.130.0070.00017.89
8.1.120.0000.00717.66
8.1.110.0070.00017.60
8.1.100.0040.00417.53
8.1.90.0000.00717.60
8.1.80.0060.00317.64
8.1.70.0030.00317.62
8.1.60.0040.00417.59
8.1.50.0040.00417.51
8.1.40.0040.00417.50
8.1.30.0000.00817.55
8.1.20.0090.00017.74
8.1.10.0000.00817.64
8.1.00.0000.00817.63
8.0.300.0040.00418.77
8.0.290.0040.00417.28
8.0.280.0030.00318.45
8.0.270.0000.00717.27
8.0.260.0000.00616.98
8.0.250.0070.00017.09
8.0.240.0000.00717.14
8.0.230.0050.00217.00
8.0.220.0000.00717.08
8.0.210.0030.00417.04
8.0.200.0000.00717.02
8.0.190.0040.00417.07
8.0.180.0000.00717.06
8.0.170.0000.00916.99
8.0.160.0040.00417.09
8.0.150.0070.00016.94
8.0.140.0060.00316.92
8.0.130.0050.00013.36
8.0.120.0040.00417.00
8.0.110.0000.00716.99
8.0.100.0040.00416.99
8.0.90.0040.00416.95
8.0.80.0100.00716.93
8.0.70.0070.00017.02
8.0.60.0000.00716.86
8.0.50.0040.00416.86
8.0.30.0080.01117.14
8.0.20.0070.01117.40
8.0.10.0040.00417.04
8.0.00.0090.00916.93
7.4.330.0000.00515.24
7.4.320.0040.00416.63
7.4.300.0000.00616.57
7.4.290.0030.00316.71
7.4.280.0000.00716.60
7.4.270.0070.00016.68
7.4.260.0000.00716.65
7.4.250.0040.00416.61
7.4.240.0030.00416.58
7.4.230.0000.00616.71
7.4.220.0000.01916.80
7.4.210.0070.00916.69
7.4.200.0000.00716.70
7.4.190.0040.00416.55
7.4.160.0080.00816.59
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0140.00816.56
7.4.120.0080.01316.53
7.4.110.0100.00716.58
7.4.100.0160.00616.60
7.4.90.0070.01016.49
7.4.80.0110.00619.39
7.4.70.0030.01316.78
7.4.60.0140.00616.54
7.4.50.0090.00016.61
7.4.40.0030.01322.77
7.4.30.0070.01416.49
7.4.00.0120.00314.86
7.3.330.0000.00613.28
7.3.320.0000.00613.13
7.3.310.0040.00416.49
7.3.300.0000.00716.43
7.3.290.0030.01116.30
7.3.280.0050.01416.35
7.3.270.0130.00317.40
7.3.260.0090.01216.55
7.3.250.0100.00816.58
7.3.240.0060.01316.63
7.3.230.0100.00716.54
7.3.210.0100.00716.56
7.3.200.0130.00519.39
7.3.190.0110.00816.53
7.3.180.0100.00716.61
7.3.170.0080.00816.62
7.3.160.0030.01416.48
7.3.120.0030.01015.09
7.3.00.0070.00716.75
7.2.330.0130.00616.83
7.2.320.0060.01116.85
7.2.310.0070.01016.92
7.2.300.0100.00616.94
7.2.290.0100.00716.73
7.2.130.0000.01417.25
7.2.120.0040.00417.16
7.2.110.0040.00817.04
7.2.100.0030.00917.06
7.2.90.0070.00717.00
7.2.80.0050.00917.26
7.2.70.0000.01816.72
7.2.60.0110.00316.97
7.2.50.0030.00716.98
7.2.40.0060.01016.77
7.2.30.0060.00617.09
7.2.20.0060.00617.25
7.2.10.0060.00617.10
7.2.00.0040.00818.37
7.1.250.0090.00915.75
7.1.240.0030.00516.01
7.1.230.0060.00616.03
7.1.220.0100.00015.77
7.1.210.0030.01015.77
7.1.200.0070.00715.98
7.1.190.0030.01215.69
7.1.180.0030.01015.60
7.1.170.0070.01115.93
7.1.160.0030.01215.91
7.1.150.0030.01015.91
7.1.140.0040.01115.67
7.1.130.0000.01215.63
7.1.120.0060.00915.58
7.1.110.0070.00715.84
7.1.100.0050.01017.00
7.1.90.0030.01215.73
7.1.80.0030.00616.05
7.1.70.0040.00616.73
7.1.60.0100.00717.62
7.1.50.0080.00616.54
7.1.40.0000.00915.69
7.1.30.0140.00016.09
7.1.20.0040.00715.89
7.1.10.0000.01115.87
7.1.00.0050.04219.11
7.0.330.0060.01015.48
7.0.320.0120.00315.44
7.0.310.0040.00415.41
7.0.300.0030.00715.48
7.0.290.0050.00515.35
7.0.280.0060.00615.58
7.0.270.0000.01415.66
7.0.260.0040.00415.18
7.0.250.0080.00415.46
7.0.240.0040.01115.41
7.0.230.0070.00415.48
7.0.220.0100.00315.66
7.0.210.0080.00815.31
7.0.200.0060.00416.23
7.0.190.0090.00315.31
7.0.180.0040.01115.48
7.0.170.0040.00915.62
7.0.160.0030.01315.63
7.0.150.0000.00715.61
7.0.140.0030.04218.76
7.0.130.0110.00415.77
7.0.120.0080.00315.34
7.0.110.0060.00915.36
7.0.100.0050.02117.71
7.0.90.0050.02417.72
7.0.80.0020.02317.71
7.0.70.0020.02317.79
7.0.60.0030.03817.78
7.0.50.0230.03817.98
7.0.40.0060.04016.90
7.0.30.0040.04516.81
7.0.20.0070.04716.85
7.0.10.0020.04816.69
7.0.00.0120.03916.71
5.6.380.0030.01314.35
5.6.370.0100.00614.70
5.6.360.0130.00014.20
5.6.350.0160.00014.76
5.6.340.0030.00914.63
5.6.330.0030.01314.84
5.6.320.0040.01114.59
5.6.310.0000.01514.30
5.6.300.0060.01014.88
5.6.290.0040.00414.29
5.6.280.0130.03317.78
5.6.270.0060.00614.43
5.6.260.0030.01014.75
5.6.250.0030.02717.40
5.6.240.0020.02717.71
5.6.230.0050.02417.46
5.6.220.0020.05017.48
5.6.210.0110.04017.64
5.6.200.0120.02217.77
5.6.190.0100.02717.63
5.6.180.0030.04117.94
5.6.170.0110.03617.62
5.6.160.0110.02517.68
5.6.150.0100.03817.70
5.6.140.0090.04517.69
5.6.130.0090.02617.66
5.6.120.0080.04517.72
5.6.110.0080.02717.69
5.6.100.0050.04517.74
5.6.90.0080.04717.81
5.6.80.0080.03817.35
5.6.70.0050.04417.46
5.6.60.0100.03717.61
5.6.50.0080.04017.54
5.6.40.0020.02717.48
5.6.30.0040.03017.43
5.6.20.0030.04317.44
5.6.10.0080.04317.17
5.6.00.0050.04117.40
5.5.380.0030.02215.90
5.5.370.0060.02115.77
5.5.360.0050.03815.86
5.5.350.0040.04415.85
5.5.340.0120.03316.04
5.5.330.0100.03616.05
5.5.320.0020.03716.03
5.5.310.0100.04016.04
5.5.300.0060.02616.03
5.5.290.0060.04516.08
5.5.280.0050.04315.91
5.5.270.0060.02616.15
5.5.260.0050.03115.95
5.5.250.0050.02515.93
5.5.240.0100.04015.67
5.5.230.0080.03715.67
5.5.220.0060.03615.75
5.5.210.0080.03115.68
5.5.200.0080.04015.79
5.5.190.0080.03715.68
5.5.180.0080.01815.69
5.5.170.0040.00711.27
5.5.160.0060.04315.71
5.5.150.0080.04015.65
5.5.140.0020.04015.69
5.5.130.0020.04215.63
5.5.120.0050.02215.66
5.5.110.0060.04015.74
5.5.100.0030.04115.65
5.5.90.0050.01815.66
5.5.80.0080.04115.63
5.5.70.0040.03915.72
5.5.60.0040.04115.67
5.5.50.0070.03715.78
5.5.40.0100.03915.63
5.5.30.0080.03515.72
5.5.20.0050.04015.60
5.5.10.0010.04815.74
5.5.00.0060.02515.71
5.4.450.0080.02715.39
5.4.440.0030.04215.16
5.4.430.0020.03215.30
5.4.420.0070.02915.26
5.4.410.0050.03915.16
5.4.400.0080.03915.04
5.4.390.0050.04115.12
5.4.380.0100.03815.04
5.4.370.0030.04314.98
5.4.360.0070.04015.13
5.4.350.0070.04014.99
5.4.340.0050.02515.20
5.4.330.0030.00711.18
5.4.320.0040.04215.21
5.4.310.0100.03215.11
5.4.300.0050.04315.04
5.4.290.0060.03815.11
5.4.280.0030.04214.98
5.4.270.0030.02315.04
5.4.260.0120.03315.06
5.4.250.0070.03915.11
5.4.240.0070.03115.16
5.4.230.0040.02515.05
5.4.220.0040.02915.10
5.4.210.0100.02714.99
5.4.200.0050.04215.12
5.4.190.0070.04015.18
5.4.180.0050.04215.11
5.4.170.0050.03615.03
5.4.160.0030.04315.10
5.4.150.0090.03815.12
5.4.140.0040.02913.77
5.4.130.0020.04313.77
5.4.120.0050.02713.77
5.4.110.0050.03813.78
5.4.100.0080.02813.75
5.4.90.0080.01813.84
5.4.80.0140.03013.83
5.4.70.0100.03613.83
5.4.60.0030.03513.82
5.4.50.0030.03313.79
5.4.40.0070.03613.81
5.4.30.0030.03013.72
5.4.20.0050.02313.72
5.4.10.0070.03713.78
5.4.00.0000.03913.49
5.3.290.0060.03813.00
5.3.280.0020.02813.00
5.3.270.0040.02313.00
5.3.260.0000.02813.00
5.3.250.0000.04213.00
5.3.240.0050.03813.00
5.3.230.0110.04013.00
5.3.220.0050.02213.00
5.3.210.0050.02413.00
5.3.200.0050.04113.00
5.3.190.0070.03013.00
5.3.180.0050.04113.00
5.3.170.0050.02913.00
5.3.160.0070.02113.00
5.3.150.0100.03513.00
5.3.140.0060.03513.00
5.3.130.0020.03813.00
5.3.120.0100.03513.00
5.3.110.0080.02513.00
5.3.100.0060.02313.00
5.3.90.0050.02913.00
5.3.80.0060.03813.00
5.3.70.0110.01813.00
5.3.60.0090.02213.00
5.3.50.0050.04013.00
5.3.40.0020.04213.00
5.3.30.0030.03913.00
5.3.20.0030.04013.00
5.3.10.0070.02013.00
5.3.00.0040.04113.00
5.2.170.0030.03513.00
5.2.160.0050.02013.00
5.2.150.0040.02113.00
5.2.140.0060.02013.00
5.2.130.0050.02813.00
5.2.120.0060.02513.00
5.2.110.0090.02713.00
5.2.100.0050.03113.00
5.2.90.0050.03013.00
5.2.80.0030.02413.00
5.2.70.0050.03213.00
5.2.60.0000.03813.00
5.2.50.0030.01813.00
5.2.40.0100.02713.00
5.2.30.0050.02213.00
5.2.20.0050.01513.00
5.2.10.0070.01713.00
5.2.00.0030.01813.00
5.1.60.0040.02113.00
5.1.50.0030.01813.00
5.1.40.0050.02913.00
5.1.30.0030.03013.00
5.1.20.0020.02113.00
5.1.10.0030.01713.00
5.1.00.0060.01413.00
5.0.50.0030.02013.00
5.0.40.0020.02313.00
5.0.30.0060.02013.00
5.0.20.0020.01313.00
5.0.10.0060.01313.00
5.0.00.0030.03413.00
4.4.90.0020.02013.00
4.4.80.0030.01713.00
4.4.70.0020.01213.00
4.4.60.0050.01713.00
4.4.50.0000.01613.00
4.4.40.0010.03113.00
4.4.30.0020.02013.00
4.4.20.0000.01313.00
4.4.10.0040.01713.00
4.4.00.0030.03013.00
4.3.110.0030.01313.00
4.3.100.0030.01013.00
4.3.90.0030.01813.00
4.3.80.0010.02813.00
4.3.70.0040.01713.00
4.3.60.0030.01513.00
4.3.50.0030.01013.00
4.3.40.0020.02913.00
4.3.30.0000.02013.00
4.3.20.0030.01313.00
4.3.10.0040.02013.00
4.3.00.0020.01013.00

preferences:
39.58 ms | 400 KiB | 5 Q