3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'Y + 10;'; $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 += (int) (trim(substr($arrvalidrules[0], $intsignpos+1))); } else if (($intsignpos = strpos($arrvalidrules[0], '-')) !== false) { $intyearstart -= (int) (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.0090.00619.15
8.3.30.0070.01418.88
8.3.20.0050.00318.82
8.3.10.0000.01520.61
8.3.00.0030.00519.48
8.2.170.0090.00622.96
8.2.160.0080.00818.91
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.49
8.2.110.0030.00619.16
8.2.100.0040.00817.91
8.2.90.0070.00219.47
8.2.80.0050.00319.28
8.2.70.0000.00817.75
8.2.60.0090.00018.15
8.2.50.0050.00318.07
8.2.40.0040.00418.41
8.2.30.0070.00018.13
8.2.20.0050.00319.56
8.2.10.0050.00317.70
8.2.00.0050.00317.71
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.79
8.1.230.0060.00620.84
8.1.220.0090.00017.78
8.1.210.0000.00818.96
8.1.200.0000.00917.35
8.1.190.0080.00017.53
8.1.180.0060.00318.10
8.1.170.0060.00318.81
8.1.160.0030.00518.97
8.1.150.0040.00418.70
8.1.140.0040.00417.61
8.1.130.0050.00317.89
8.1.120.0040.00417.55
8.1.110.0000.00717.56
8.1.100.0040.00417.59
8.1.90.0040.00417.60
8.1.80.0000.00717.53
8.1.70.0070.00017.57
8.1.60.0000.00817.70
8.1.50.0080.00017.46
8.1.40.0040.00417.55
8.1.30.0030.00617.77
8.1.20.0000.00817.80
8.1.10.0040.00417.60
8.1.00.0040.00417.53
8.0.300.0000.00819.76
8.0.290.0070.00016.75
8.0.280.0000.00818.54
8.0.270.0000.00817.35
8.0.260.0060.00017.03
8.0.250.0090.00017.12
8.0.240.0060.00317.15
8.0.230.0030.00317.13
8.0.220.0040.00416.98
8.0.210.0040.00417.05
8.0.200.0000.00717.02
8.0.190.0000.00717.07
8.0.180.0040.00416.91
8.0.170.0040.00416.99
8.0.160.0040.00417.04
8.0.150.0000.01016.93
8.0.140.0080.00016.84
8.0.130.0070.00013.43
8.0.120.0000.00716.80
8.0.110.0040.00416.85
8.0.100.0020.00516.92
8.0.90.0000.00716.80
8.0.80.0090.00917.05
8.0.70.0000.00716.84
8.0.60.0040.00416.98
8.0.50.0080.00017.00
8.0.30.0140.00517.32
8.0.20.0100.01017.51
8.0.10.0070.00017.06
8.0.00.0110.00817.00
7.4.330.0060.00013.01
7.4.320.0030.00616.59
7.4.300.0000.00716.63
7.4.290.0030.00316.59
7.4.280.0000.00816.60
7.4.270.0000.00816.57
7.4.260.0030.00313.22
7.4.250.0000.00816.62
7.4.240.0070.00016.74
7.4.230.0070.00016.72
7.4.220.0130.01016.66
7.4.210.0080.00716.60
7.4.200.0000.00716.48
7.4.190.0070.00016.80
7.4.160.0090.00616.64
7.4.150.0130.00416.68
7.4.140.0130.00816.75
7.4.130.0070.01016.60
7.4.120.0140.00516.64
7.4.110.0100.00716.80
7.4.100.0040.01316.82
7.4.90.0170.00816.66
7.4.80.0120.01116.64
7.4.70.0030.01316.62
7.4.60.0050.01416.78
7.4.50.0000.00716.73
7.4.40.0090.00016.76
7.4.30.0110.00416.55
7.4.00.0070.00715.01
7.3.330.0040.00413.18
7.3.320.0050.00013.21
7.3.310.0070.00016.50
7.3.300.0030.00316.25
7.3.290.0100.00616.39
7.3.280.0050.01116.31
7.3.270.0130.01016.58
7.3.260.0080.00916.82
7.3.250.0150.00516.48
7.3.240.0130.00316.71
7.3.230.0090.01016.71
7.3.210.0150.00316.71
7.3.200.0100.01019.39
7.3.190.0090.01516.60
7.3.180.0110.00516.50
7.3.170.0030.01316.60
7.3.160.0090.01216.35
7.3.120.0110.00714.96
7.3.110.0030.00815.04
7.3.100.0040.01214.87
7.3.90.0040.01214.88
7.3.80.0110.00314.91
7.3.70.0120.00014.96
7.3.60.0040.01215.13
7.3.50.0100.00714.84
7.3.40.0000.01415.02
7.3.30.0030.01014.83
7.3.20.0060.00916.86
7.3.10.0000.01116.52
7.3.00.0130.01016.70
7.2.330.0090.00916.99
7.2.320.0100.01316.65
7.2.310.0090.01416.80
7.2.300.0100.00617.00
7.2.290.0160.00316.79
7.2.240.0040.01115.39
7.2.230.0110.00315.13
7.2.220.0090.00615.04
7.2.210.0100.00014.95
7.2.200.0060.00915.04
7.2.190.0070.00715.27
7.2.180.0120.00315.11
7.2.170.0030.00915.20
7.2.160.0000.01015.25
7.2.150.0070.01017.07
7.2.140.0120.00316.91
7.2.130.0100.00916.90
7.2.120.0110.00816.97
7.2.110.0100.00716.88
7.2.100.0080.00916.82
7.2.90.0120.00817.05
7.2.80.0100.00816.93
7.2.70.0080.00817.07
7.2.60.0130.00717.10
7.2.50.0090.01116.87
7.2.40.0080.00716.92
7.2.30.0040.00917.00
7.2.20.0050.01216.78
7.2.10.0150.00316.91
7.2.00.0070.00517.71
7.1.330.0030.00716.12
7.1.320.0070.00315.97
7.1.310.0040.00715.78
7.1.300.0090.00615.94
7.1.290.0070.00715.85
7.1.280.0140.00015.63
7.1.270.0000.01715.96
7.1.260.0030.00515.97
7.1.250.0120.00715.89
7.1.240.0130.00315.66
7.1.230.0110.01115.67
7.1.220.0070.01315.77
7.1.210.0120.00315.90
7.1.200.0100.00715.70
7.1.190.0090.00915.84
7.1.180.0190.00615.92
7.1.170.0120.01215.90
7.1.160.0120.00615.64
7.1.150.0110.00415.51
7.1.140.0040.01315.84
7.1.130.0130.00615.70
7.1.120.0150.00615.61
7.1.110.0100.00715.70
7.1.100.0070.00616.85
7.1.90.0100.00615.65
7.1.80.0120.00615.91
7.1.70.0150.00416.40
7.1.60.0110.00517.52
7.1.50.0100.00816.50
7.1.40.0110.00915.57
7.1.30.0040.01216.05
7.1.20.0100.00715.81
7.1.10.0140.00315.87
7.1.00.0050.04219.12
7.0.330.0130.00715.18
7.0.320.0100.00615.49
7.0.310.0230.00014.97
7.0.300.0190.00715.25
7.0.290.0030.01415.14
7.0.280.0090.00615.27
7.0.270.0100.00315.64
7.0.260.0130.00315.04
7.0.250.0150.00015.27
7.0.240.0030.01315.36
7.0.230.0100.00615.20
7.0.220.0060.00615.38
7.0.210.0040.00715.32
7.0.200.0170.00515.28
7.0.190.0160.00615.61
7.0.180.0110.00815.32
7.0.170.0150.00315.58
7.0.160.0120.00615.29
7.0.150.0070.01015.28
7.0.140.0070.04218.92
7.0.130.0090.00615.16
7.0.120.0070.03218.72
7.0.110.0100.00715.51
7.0.100.0110.01817.67
7.0.90.0060.04617.70
7.0.80.0080.04317.76
7.0.70.0050.03017.68
7.0.60.0110.03717.67
7.0.50.0100.04317.82
7.0.40.0070.04316.82
7.0.30.0030.02416.70
7.0.20.0060.04216.74
7.0.10.0060.04316.76
7.0.00.0050.03616.76
5.6.380.0100.00714.47
5.6.370.0090.00914.56
5.6.360.0130.00314.66
5.6.350.0000.01514.32
5.6.340.0000.01014.18
5.6.330.0070.00414.40
5.6.320.0080.00814.76
5.6.310.0090.00914.72
5.6.300.0000.01214.62
5.6.290.0000.01414.45
5.6.280.0100.03217.80
5.6.270.0070.01114.44
5.6.260.0060.00914.52
5.6.250.0030.02617.76
5.6.240.0050.02517.51
5.6.230.0090.04217.59
5.6.220.0060.04517.50
5.6.210.0080.04217.62
5.6.200.0070.04717.77
5.6.190.0100.04017.75
5.6.180.0070.04417.83
5.6.170.0030.04717.76
5.6.160.0100.03117.77
5.6.150.0050.04217.72
5.6.140.0070.02717.76
5.6.130.0030.03117.63
5.6.120.0090.04217.76
5.6.110.0080.04417.74
5.6.100.0080.02517.84
5.6.90.0050.03017.62
5.6.80.0070.03417.35
5.6.70.0080.03617.35
5.6.60.0030.04517.54
5.6.50.0120.03317.39
5.6.40.0090.04317.30
5.6.30.0080.02617.41
5.6.20.0030.03117.41
5.6.10.0070.02717.27
5.6.00.0050.04117.38
5.5.380.0070.02315.57
5.5.370.0040.03915.61
5.5.360.0030.04615.74
5.5.350.0050.04515.81
5.5.340.0000.04916.05
5.5.330.0060.03815.88
5.5.320.0050.02616.10
5.5.310.0050.04716.08
5.5.300.0050.02715.86
5.5.290.0050.03916.04
5.5.280.0110.03216.00
5.5.270.0070.04315.85
5.5.260.0060.04315.94
5.5.250.0070.03315.93
5.5.240.0110.01815.49
5.5.230.0060.02515.57
5.5.220.0020.02615.51
5.5.210.0090.02515.69
5.5.200.0050.04415.38
5.5.190.0030.04015.68
5.5.180.0050.04415.73
5.5.170.0060.00311.18
5.5.160.0080.03315.73
5.5.150.0110.03015.70
5.5.140.0050.03815.59
5.5.130.0080.03515.60
5.5.120.0070.03215.58
5.5.110.0070.03215.56
5.5.100.0090.03215.58
5.5.90.0090.03915.51
5.5.80.0090.03515.71
5.5.70.0050.03915.71
5.5.60.0060.02615.61
5.5.50.0140.02515.52
5.5.40.0100.03515.49
5.5.30.0050.02815.52
5.5.20.0070.03815.54
5.5.10.0100.03715.65
5.5.00.0090.02215.56
5.4.450.0070.03515.02
5.4.440.0080.03315.04
5.4.430.0050.03615.35
5.4.420.0120.01715.11
5.4.410.0050.04015.18
5.4.400.0060.03915.15
5.4.390.0050.04214.96
5.4.380.0020.03515.14
5.4.370.0050.03614.93
5.4.360.0060.03515.09
5.4.350.0080.03815.05
5.4.340.0070.03714.82
5.4.330.0030.00510.96
5.4.320.0020.03914.76
5.4.310.0030.04414.75
5.4.300.0080.02315.11
5.4.290.0030.04114.95
5.4.280.0020.03114.91
5.4.270.0050.02514.93
5.4.260.0030.03515.05
5.4.250.0100.02514.93
5.4.240.0090.03314.93
5.4.230.0100.03714.68
5.4.220.0040.03914.85
5.4.210.0150.03215.08
5.4.200.0030.02614.97
5.4.190.0090.02015.11
5.4.180.0050.03015.17
5.4.170.0080.03715.19
5.4.160.0030.04315.05
5.4.150.0080.02315.01
5.4.140.0070.02913.75
5.4.130.0020.03813.74
5.4.120.0070.03413.92
5.4.110.0050.03713.89
5.4.100.0030.04213.54
5.4.90.0060.03613.60
5.4.80.0000.02713.69
5.4.70.0050.01913.68
5.4.60.0000.04113.60
5.4.50.0030.03813.67
5.4.40.0060.03513.66
5.4.30.0040.03313.61
5.4.20.0050.03113.50
5.4.10.0060.03713.50
5.4.00.0080.02613.34
5.3.290.0070.03812.69
5.3.280.0050.04312.62
5.3.270.0030.02812.67
5.3.260.0050.04012.65
5.3.250.0050.04012.70
5.3.240.0040.02512.63
5.3.230.0120.03312.60
5.3.220.0030.03912.53
5.3.210.0030.02712.48
5.3.200.0070.03812.59
5.3.190.0070.02512.54
5.3.180.0080.03712.56
5.3.170.0090.02512.60
5.3.160.0100.03712.59
5.3.150.0070.02412.67
5.3.140.0080.03512.55
5.3.130.0070.04012.55
5.3.120.0060.03512.58
5.3.110.0020.02512.63
5.3.100.0050.03012.18
5.3.90.0100.03612.31
5.3.80.0030.04212.15
5.3.70.0020.02812.29
5.3.60.0080.03312.19
5.3.50.0090.03612.20
5.3.40.0060.04012.28
5.3.30.0030.04012.36
5.3.20.0070.02311.93
5.3.10.0070.03511.81
5.3.00.0070.03511.91
5.2.170.0020.01910.28
5.2.160.0040.03410.24
5.2.150.0020.03710.21
5.2.140.0020.03910.45
5.2.130.0040.03210.30
5.2.120.0030.03510.40
5.2.110.0050.03110.29
5.2.100.0050.03110.24
5.2.90.0030.02210.22
5.2.80.0050.02810.17
5.2.70.0060.01810.27
5.2.60.0020.02410.16
5.2.50.0030.02610.13
5.2.40.0080.02210.17
5.2.30.0020.03210.27
5.2.20.0080.02810.19
5.2.10.0050.02810.14
5.2.00.0030.02010.08
5.1.60.0020.0309.97
5.1.50.0000.0239.97
5.1.40.0050.0319.97
5.1.30.0020.0319.97
5.1.20.0030.0209.97
5.1.10.0030.0309.97
5.1.00.0080.0239.97
5.0.50.0090.0209.97
5.0.40.0090.0159.97
5.0.30.0030.0369.97
5.0.20.0040.0209.97
5.0.10.0030.0249.97
5.0.00.0030.0369.97
4.4.90.0030.0209.97
4.4.80.0050.0189.97
4.4.70.0000.0189.97
4.4.60.0020.0129.97
4.4.50.0020.0209.97
4.4.40.0070.0229.97
4.4.30.0020.0209.97
4.4.20.0070.0159.97
4.4.10.0020.0119.97
4.4.00.0000.0289.97
4.3.110.0030.0159.97
4.3.100.0050.0139.97
4.3.90.0030.0179.97
4.3.80.0060.0169.97
4.3.70.0020.0189.97
4.3.60.0020.0109.97
4.3.50.0060.0169.97
4.3.40.0020.0289.97
4.3.30.0030.0189.97
4.3.20.0060.0189.97
4.3.10.0020.0199.97
4.3.00.0030.0209.97

preferences:
46.32 ms | 400 KiB | 5 Q