3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = ';'; $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(substr($arrvalidrules[0], $intsignpos)); } else if (($intsignpos = strpos($arrvalidrules[0], '-')) !== false) { $intyearstart -= intval(substr($arrvalidrules[0], $intsignpos)); } } 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.60.0170.00016.63
8.3.50.0120.00922.04
8.3.40.0100.01018.84
8.3.30.0150.00019.22
8.3.20.0030.01020.15
8.3.10.0040.00421.92
8.3.00.0080.00022.45
8.2.180.0100.01316.63
8.2.170.0040.01122.96
8.2.160.0090.00620.41
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00319.36
8.2.110.0060.00322.16
8.2.100.0060.00617.84
8.2.90.0060.00319.17
8.2.80.0050.00319.66
8.2.70.0000.01017.74
8.2.60.0050.00318.16
8.2.50.0040.00418.07
8.2.40.0000.00918.22
8.2.30.0030.00618.22
8.2.20.0040.00417.76
8.2.10.0000.00817.64
8.2.00.0000.00717.77
8.1.280.0060.01225.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0090.00928.09
8.1.240.0150.00623.89
8.1.230.0080.00418.86
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.39
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0000.00721.91
8.1.150.0000.01018.59
8.1.140.0040.00417.41
8.1.130.0050.00317.72
8.1.120.0000.00717.52
8.1.110.0030.00617.45
8.1.100.0000.00717.38
8.1.90.0000.00717.43
8.1.80.0040.00417.47
8.1.70.0050.00217.45
8.1.60.0000.00917.61
8.1.50.0030.00617.56
8.1.40.0080.00017.43
8.1.30.0030.00517.66
8.1.20.0050.00317.62
8.1.10.0000.00817.61
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0000.00818.45
8.0.270.0070.00017.35
8.0.260.0000.00818.52
8.0.250.0040.00417.02
8.0.240.0030.00616.99
8.0.230.0030.00316.88
8.0.220.0070.00016.88
8.0.210.0000.00716.94
8.0.200.0000.00616.86
8.0.190.0040.00416.94
8.0.180.0060.00616.87
8.0.170.0050.00216.86
8.0.160.0040.00416.89
8.0.150.0030.00516.88
8.0.140.0000.00816.78
8.0.130.0030.00413.39
8.0.120.0040.00416.77
8.0.110.0020.00516.87
8.0.100.0050.00516.75
8.0.90.0000.00716.87
8.0.80.0060.00916.96
8.0.70.0000.00816.90
8.0.60.0020.00516.91
8.0.50.0000.00816.74
8.0.30.0110.01016.90
8.0.20.0160.00817.40
8.0.10.0000.00816.82
8.0.00.0080.01116.86
7.4.330.0050.00015.08
7.4.320.0000.00616.68
7.4.300.0000.00716.68
7.4.290.0080.00016.43
7.4.280.0030.00616.59
7.4.270.0030.00316.64
7.4.260.0030.00316.53
7.4.250.0040.00416.40
7.4.240.0030.00516.41
7.4.230.0030.00316.34
7.4.220.0100.00716.61
7.4.210.0080.00816.57
7.4.200.0070.00016.64
7.4.190.0040.00416.48
7.4.160.0000.01516.50
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0100.01016.51
7.4.120.0100.00716.48
7.4.110.0040.01416.26
7.4.100.0030.01316.63
7.4.90.0070.01116.68
7.4.80.0130.00616.66
7.4.70.0100.00716.54
7.4.60.0090.00616.59
7.4.50.0040.00416.71
7.4.40.0040.00722.77
7.4.30.0080.00816.41
7.4.00.0060.00614.80
7.3.330.0020.00213.29
7.3.320.0050.00013.25
7.3.310.0030.00316.43
7.3.300.0030.00316.37
7.3.290.0080.00816.29
7.3.280.0130.00516.29
7.3.270.0100.00717.40
7.3.260.0170.00616.59
7.3.250.0110.00716.35
7.3.240.0070.01116.48
7.3.230.0090.00916.39
7.3.210.0130.00316.42
7.3.200.0110.00719.39
7.3.190.0160.00016.25
7.3.180.0030.01216.39
7.3.170.0030.01216.35
7.3.160.0100.00716.38
7.3.120.0060.00614.70
7.3.10.0080.00716.70
7.3.00.0090.00916.63
7.2.330.0160.00616.78
7.2.320.0150.00816.91
7.2.310.0100.00616.73
7.2.300.0120.00416.79
7.2.290.0130.00316.78
7.2.130.0090.01016.82
7.2.120.0100.00716.95
7.2.110.0060.00616.75
7.2.100.0080.00816.92
7.2.90.0140.00616.84
7.2.80.0030.01217.02
7.2.70.0060.00816.91
7.2.60.0080.00716.91
7.2.50.0070.00716.93
7.2.40.0050.00716.90
7.2.30.0060.00716.85
7.2.20.0040.01016.96
7.2.10.0040.00817.05
7.2.00.0050.00917.53
7.1.250.0090.00615.98
7.1.240.0000.01515.81
7.1.230.0000.01415.83
7.1.220.0040.01115.95
7.1.210.0040.01115.66
7.1.200.0090.00315.88
7.1.190.0070.01015.79
7.1.180.0090.00615.78
7.1.170.0000.01115.84
7.1.160.0030.00915.94
7.1.150.0000.01515.74
7.1.140.0070.00715.91
7.1.130.0070.00715.79
7.1.120.0040.01115.79
7.1.110.0040.01115.69
7.1.100.0020.00917.04
7.1.90.0030.00715.89
7.1.80.0040.00715.79
7.1.70.0020.00816.53
7.1.60.0080.01217.75
7.1.50.0080.00716.42
7.1.40.0000.01515.86
7.1.30.0120.00015.86
7.1.20.0070.00315.77
7.1.10.0070.00715.48
7.1.00.0050.04119.10
7.0.330.0080.00015.55
7.0.320.0090.00015.16
7.0.310.0030.01015.56
7.0.300.0090.00315.35
7.0.290.0080.00315.46
7.0.280.0070.00715.29
7.0.270.0070.00715.54
7.0.260.0030.01015.18
7.0.250.0040.00715.17
7.0.240.0060.01015.48
7.0.230.0040.00815.54
7.0.220.0090.00415.55
7.0.210.0060.00615.50
7.0.200.0030.00815.96
7.0.190.0100.00315.28
7.0.180.0060.00315.55
7.0.170.0080.00015.41
7.0.160.0060.00915.42
7.0.150.0100.00315.52
7.0.140.0050.03718.88
7.0.130.0090.00315.30
7.0.120.0030.01015.33
7.0.110.0060.00315.26
7.0.100.0130.00315.56
7.0.90.0090.04017.74
7.0.80.0080.02517.65
7.0.70.0070.04717.59
7.0.60.0280.02717.62
7.0.50.0120.03817.95
7.0.40.0070.04216.80
7.0.30.0080.04116.83
7.0.20.0060.04916.69
7.0.10.0090.03516.71
7.0.00.0080.03916.68
5.6.380.0070.00714.17
5.6.370.0000.00914.74
5.6.360.0040.00814.53
5.6.350.0080.00314.21
5.6.340.0040.00414.49
5.6.330.0030.01214.57
5.6.320.0070.00314.64
5.6.310.0070.00414.54
5.6.300.0040.00913.92
5.6.290.0090.00614.45
5.6.280.0060.04817.73
5.6.270.0060.00914.22
5.6.260.0110.00414.11
5.6.250.0090.00614.42
5.6.240.0030.03417.59
5.6.230.0070.04717.66
5.6.220.0050.04517.43
5.6.210.0080.04317.43
5.6.200.0020.05017.71
5.6.190.0060.03817.72
5.6.180.0060.02517.64
5.6.170.0030.04517.84
5.6.160.0080.04517.63
5.6.150.0020.03117.88
5.6.140.0060.02617.69
5.6.130.0050.03217.59
5.6.120.0060.04117.73
5.6.110.0140.04117.78
5.6.100.0070.03817.61
5.6.90.0070.04017.67
5.6.80.0030.04717.43
5.6.70.0080.04117.23
5.6.60.0060.04017.43
5.6.50.0050.03917.42
5.6.40.0060.04017.22
5.6.30.0040.02317.39
5.6.20.0030.04517.27
5.6.10.0130.03917.34
5.6.00.0110.04017.21
5.5.380.0050.02515.82
5.5.370.0060.03815.81
5.5.360.0030.04115.55
5.5.350.0050.02815.70
5.5.340.0060.04316.01
5.5.330.0070.04015.84
5.5.320.0070.03715.96
5.5.310.0100.04215.88
5.5.300.0040.04815.96
5.5.290.0050.04515.87
5.5.280.0030.04615.87
5.5.270.0050.03016.05
5.5.260.0050.02916.08
5.5.250.0080.04015.80
5.5.240.0050.04615.51
5.5.230.0030.02315.45
5.5.220.0080.04015.53
5.5.210.0100.03115.67
5.5.200.0070.03715.69
5.5.190.0070.04515.58
5.5.180.0080.04015.50
5.5.170.0030.00711.08
5.5.160.0030.03215.55
5.5.150.0070.04215.61
5.5.140.0050.04015.60
5.5.130.0050.04115.65
5.5.120.0050.03015.67
5.5.110.0040.02615.72
5.5.100.0020.04015.56
5.5.90.0070.04015.36
5.5.80.0070.04215.47
5.5.70.0040.04215.50
5.5.60.0030.04215.56
5.5.50.0050.02915.50
5.5.40.0100.03015.49
5.5.30.0080.03815.40
5.5.20.0120.03315.47
5.5.10.0050.03915.52
5.5.00.0080.04015.47
5.4.450.0070.03415.08
5.4.440.0110.04015.07
5.4.430.0080.02615.32
5.4.420.0080.04115.22
5.4.410.0050.04015.12
5.4.400.0080.03115.05
5.4.390.0030.02715.02
5.4.380.0050.03415.02
5.4.370.0060.01814.86
5.4.360.0050.04614.95
5.4.350.0030.04215.09
5.4.340.0050.02515.21
5.4.330.0000.01010.93
5.4.320.0050.02515.00
5.4.310.0060.03815.02
5.4.300.0030.04314.99
5.4.290.0050.04015.00
5.4.280.0060.03914.86
5.4.270.0080.03714.82
5.4.260.0070.04014.95
5.4.250.0050.04115.01
5.4.240.0090.03814.86
5.4.230.0080.03314.93
5.4.220.0050.03414.89
5.4.210.0070.03715.15
5.4.200.0070.04515.07
5.4.190.0030.02915.00
5.4.180.0080.03615.03
5.4.170.0080.03514.96
5.4.160.0050.02815.09
5.4.150.0100.01814.94
5.4.140.0040.02213.41
5.4.130.0120.03513.69
5.4.120.0050.02613.59
5.4.110.0030.04313.57
5.4.100.0020.04313.46
5.4.90.0050.02313.66
5.4.80.0040.02213.75
5.4.70.0080.01813.54
5.4.60.0070.03713.47
5.4.50.0130.03213.59
5.4.40.0040.02413.58
5.4.30.0030.02313.73
5.4.20.0060.03913.53
5.4.10.0110.02313.67
5.4.00.0050.02313.36
5.3.290.0070.02312.58
5.3.280.0050.03312.49
5.3.270.0030.04512.58
5.3.260.0030.03912.58
5.3.250.0050.02612.42
5.3.240.0060.03712.39
5.3.230.0040.04112.52
5.3.220.0050.04112.48
5.3.210.0020.04412.41
5.3.200.0070.03912.40
5.3.190.0040.03112.40
5.3.180.0050.03012.54
5.3.170.0050.02212.51
5.3.160.0080.03912.47
5.3.150.0050.03312.37
5.3.140.0070.04012.53
5.3.130.0030.03712.47
5.3.120.0090.04012.48
5.3.110.0050.04012.46
5.3.100.0070.01912.18
5.3.90.0060.03512.18
5.3.80.0050.04012.13
5.3.70.0080.02012.16
5.3.60.0050.03212.30
5.3.50.0000.02712.17
5.3.40.0100.03312.08
5.3.30.0070.02112.20
5.3.20.0030.02311.97
5.3.10.0070.02411.95
5.3.00.0050.02811.90
5.2.170.0020.03610.67
5.2.160.0070.03110.67
5.2.150.0050.01710.62
5.2.140.0000.02310.65
5.2.130.0020.02010.69
5.2.120.0020.03510.70
5.2.110.0080.02510.60
5.2.100.0030.02310.60
5.2.90.0020.02410.65
5.2.80.0060.02810.67
5.2.70.0000.02010.64
5.2.60.0000.02510.64
5.2.50.0020.02810.53
5.2.40.0020.03010.52
5.2.30.0010.02610.57
5.2.20.0050.01510.60
5.2.10.0050.01510.57
5.2.00.0070.02810.55
5.1.60.0060.02510.30
5.1.50.0050.01310.30
5.1.40.0050.02710.30
5.1.30.0020.02510.31
5.1.20.0030.03510.33
5.1.10.0040.01810.30
5.1.00.0020.02610.30
5.0.50.0020.02510.30
5.0.40.0010.01310.30
5.0.30.0060.02810.30
5.0.20.0040.02410.30
5.0.10.0020.02310.30
5.0.00.0070.02510.30
4.4.90.0020.01010.30
4.4.80.0000.01510.30
4.4.70.0000.01010.30
4.4.60.0050.01210.30
4.4.50.0030.01810.30
4.4.40.0020.01510.30
4.4.30.0010.02110.30
4.4.20.0020.01810.30
4.4.10.0060.01710.30
4.4.00.0030.02810.30
4.3.110.0020.01210.30
4.3.100.0020.01710.30
4.3.90.0030.01010.30
4.3.80.0010.01510.30
4.3.70.0020.01710.30
4.3.60.0030.01810.30
4.3.50.0030.01910.30
4.3.40.0020.02210.30
4.3.30.0050.01810.30
4.3.20.0000.02010.30
4.3.10.0020.01910.30
4.3.00.0030.01810.30

preferences:
36.1 ms | 400 KiB | 5 Q