3v4l.org

run code in 300+ PHP versions simultaneously
<?php $k = 201435; $str = strval($k); $year = intval(substr($str,0,4)); $month = intval(substr($str,4)); while($month>12){ $month = $month-12; $year++; } var_dump($month, $year);

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.00316.50
8.3.50.0110.00821.99
8.3.40.0040.01118.39
8.3.30.0070.00718.93
8.3.20.0040.00420.16
8.3.10.0040.00421.91
8.3.00.0060.00319.13
8.2.180.0100.01018.27
8.2.170.0140.00422.96
8.2.160.0030.01019.25
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00820.80
8.2.110.0100.00021.04
8.2.100.0110.00017.50
8.2.90.0000.00819.01
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0050.00518.03
8.2.30.0000.00817.95
8.2.20.0030.00617.52
8.2.10.0040.00418.09
8.2.00.0000.00717.91
8.1.280.0060.00925.92
8.1.270.0040.00420.22
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.83
8.1.230.0100.00317.54
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0000.00817.13
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0050.00221.93
8.1.150.0050.00318.82
8.1.140.0100.00017.37
8.1.130.0070.00017.68
8.1.120.0000.00817.40
8.1.110.0000.00717.44
8.1.100.0000.00717.41
8.1.90.0000.00717.41
8.1.80.0040.00417.48
8.1.70.0030.00317.50
8.1.60.0040.00417.55
8.1.50.0080.00017.41
8.1.40.0000.00817.37
8.1.30.0030.00517.69
8.1.20.0000.00817.63
8.1.10.0050.00317.51
8.1.00.0070.00017.27
8.0.300.0070.00019.05
8.0.290.0070.00016.63
8.0.280.0030.00318.39
8.0.270.0040.00417.23
8.0.260.0030.00317.11
8.0.250.0000.00716.91
8.0.240.0040.00416.80
8.0.230.0060.00016.90
8.0.220.0000.00816.70
8.0.210.0040.00416.85
8.0.200.0040.00416.95
8.0.190.0030.00316.80
8.0.180.0080.00016.85
8.0.170.0000.00816.89
8.0.160.0040.00316.75
8.0.150.0050.00316.61
8.0.140.0070.00016.80
8.0.130.0030.00313.23
8.0.120.0060.00316.68
8.0.110.0070.00016.76
8.0.100.0050.00316.86
8.0.90.0030.00316.71
8.0.80.0060.00916.78
8.0.70.0040.00416.66
8.0.60.0070.00016.67
8.0.50.0000.00816.77
8.0.30.0140.00716.89
8.0.20.0130.00617.40
8.0.10.0050.00316.98
8.0.00.0130.00616.77
7.4.330.0000.00515.04
7.4.320.0060.00016.58
7.4.300.0000.00616.62
7.4.290.0070.00016.39
7.4.280.0040.00416.43
7.4.270.0040.00416.64
7.4.260.0070.00016.61
7.4.250.0080.00016.31
7.4.240.0020.00516.50
7.4.230.0040.00416.49
7.4.220.0060.01316.50
7.4.210.0030.01316.70
7.4.200.0030.00416.51
7.4.160.0090.00616.32
7.4.150.0140.00317.40
7.4.140.0060.01517.86
7.4.130.0090.01216.49
7.4.120.0090.00916.47
7.4.110.0070.01016.54
7.4.100.0150.01016.36
7.4.90.0110.00716.34
7.4.80.0130.00319.39
7.4.70.0210.00316.45
7.4.60.0120.00316.27
7.4.50.0000.00816.26
7.4.40.0030.01316.58
7.4.30.0110.00716.50
7.4.00.0050.01014.80
7.3.330.0000.00613.19
7.3.320.0050.00013.10
7.3.310.0070.00016.25
7.3.300.0070.00016.16
7.3.290.0120.00616.24
7.3.280.0080.00716.23
7.3.270.0070.01017.40
7.3.260.0070.01016.53
7.3.250.0060.01416.38
7.3.240.0060.00916.28
7.3.230.0100.00716.44
7.3.210.0030.01316.45
7.3.200.0130.00819.39
7.3.190.0070.01016.58
7.3.180.0120.01016.45
7.3.170.0060.01016.32
7.3.160.0140.00316.23
7.3.120.0090.00615.07
7.3.110.0070.01014.96
7.3.100.0060.00914.69
7.3.90.0090.00614.42
7.3.80.0100.00714.78
7.3.70.0100.00314.61
7.3.60.0030.00614.89
7.3.50.0000.01714.89
7.3.40.0030.00614.94
7.3.30.0080.00014.78
7.3.20.0040.00716.79
7.3.10.0040.00716.59
7.3.00.0120.00316.70
7.2.330.0030.02116.77
7.2.320.0030.01716.75
7.2.310.0060.01716.27
7.2.300.0090.00616.36
7.2.290.0030.01516.46
7.2.250.0070.01114.87
7.2.240.0090.00914.83
7.2.230.0090.00615.26
7.2.220.0040.00714.60
7.2.210.0030.00914.90
7.2.200.0040.00714.89
7.2.190.0040.01414.97
7.2.180.0100.00314.71
7.2.170.0090.00415.13
7.1.330.0030.01315.72
7.1.320.0060.00315.79
7.1.310.0050.00515.61
7.1.300.0030.01416.03
7.1.290.0060.00315.97
7.1.280.0080.00615.77
7.1.270.0070.00715.79
7.1.260.0000.00915.86
7.1.70.0040.00416.98
7.1.60.0140.01019.59
7.1.50.0160.00616.95
7.1.00.0030.07722.40
7.0.200.0110.00016.54
7.0.60.0100.07720.00
7.0.50.0100.03717.90
7.0.40.0070.07719.90
7.0.30.0200.04320.04
7.0.20.0400.08020.12
7.0.10.0100.08020.16
7.0.00.0070.08720.16
5.6.280.0070.07021.15
5.6.210.0170.04320.63
5.6.200.0130.04718.22
5.6.190.0100.06020.61
5.6.180.0230.03720.67
5.6.170.0270.07020.67
5.6.160.0070.08320.52
5.6.150.0070.07318.12
5.6.140.0070.03718.20
5.6.130.0000.07318.20
5.6.120.0100.04321.03
5.6.110.0130.03021.14
5.6.100.0100.03721.10
5.6.90.0070.08320.97
5.6.80.0100.03320.37
5.5.350.4330.04320.38
5.5.340.0070.08317.98
5.5.330.0030.04720.25
5.5.320.0270.08020.17
5.5.310.0530.06020.32
5.5.300.0030.04017.91
5.5.290.0070.06017.91
5.5.280.0000.05720.77
5.5.270.0030.08720.86
5.5.260.0070.04320.87
5.5.250.0070.07020.68
5.5.240.0230.05020.28
5.4.450.0300.06719.55
5.4.440.0300.07019.26
5.4.430.0300.05719.42
5.4.420.0200.04319.14
5.4.410.0330.07019.07
5.4.400.0300.07019.24
5.4.390.0270.07719.08
5.4.380.0330.06319.23
5.4.370.0430.05318.81
5.4.360.0400.06019.09
5.4.350.0370.04319.06
5.4.340.0300.07019.07
5.4.320.0330.04319.09
5.4.310.0230.08019.05
5.4.300.0300.07319.08
5.4.290.0230.06319.08
5.4.280.0300.04319.21
5.4.270.0400.06019.23
5.4.260.0300.06019.25
5.4.250.0230.07018.89
5.4.240.0330.07019.16
5.4.230.0270.05719.11
5.4.220.0270.04719.09
5.4.210.0200.05018.91
5.4.200.0270.06318.92
5.4.190.0230.04018.74
5.4.180.0230.04018.94
5.4.170.0330.07019.04
5.4.160.0270.05719.12
5.4.150.0330.03019.14
5.4.140.0170.04316.25
5.4.130.0200.04716.34
5.4.120.0270.04316.16
5.4.110.0300.04316.38
5.4.100.0200.05016.39
5.4.90.0270.03316.41
5.4.80.0270.05716.21
5.4.70.0270.04016.21
5.4.60.0300.04316.18
5.4.50.0300.06716.47
5.4.40.0230.05716.47
5.4.30.0230.04016.38
5.4.20.0230.07016.18
5.4.10.0370.03016.19
5.4.00.0170.04715.99
5.3.290.0400.04314.52
5.3.280.0230.05014.62
5.3.270.0370.03014.55
5.3.260.0330.04014.46
5.3.250.0270.03714.63
5.3.240.0270.04314.47
5.3.230.0270.07014.47
5.3.220.0400.06014.52
5.3.210.0330.07014.52
5.3.200.0270.07714.61
5.3.190.0300.05714.51
5.3.180.0300.06714.39
5.3.170.0300.04314.49
5.3.160.0400.06314.40
5.3.150.0200.04314.40
5.3.140.0300.06714.64
5.3.130.0270.03714.42
5.3.120.0300.06714.49
5.3.110.0370.05314.59
5.3.100.0300.03314.12
5.3.90.0270.03313.85
5.3.80.0270.05313.92
5.3.70.0200.06013.84
5.3.60.0230.06713.95
5.3.50.0230.07013.78
5.3.40.0200.05013.82
5.3.30.0270.03713.89
5.3.20.0330.06313.59
5.3.10.0430.05313.51
5.3.00.0300.07013.47
5.2.170.0230.05011.09
5.2.160.0230.04311.21
5.2.150.0200.06011.16
5.2.140.0170.04310.97
5.2.130.0330.05010.99
5.2.120.0370.03011.15
5.2.110.0230.05310.93
5.2.100.0230.05310.95
5.2.90.0200.06311.27
5.2.80.0300.02711.02
5.2.70.0200.03710.94
5.2.60.0330.05011.20
5.2.50.0230.03011.17
5.2.40.0170.06010.85
5.2.30.0230.03710.91
5.2.20.0270.05010.89
5.2.10.0230.05010.83
5.2.00.0270.05710.87
5.1.60.0170.03310.51
5.1.50.0200.03710.51
5.1.40.0230.02710.51
5.1.30.0200.05010.51
5.1.20.0100.04310.51
5.1.10.0200.05010.51
5.1.00.0230.04710.51
5.0.50.0100.02310.51
5.0.40.0100.03310.51
5.0.30.0170.05310.51
5.0.20.0130.01710.51
5.0.10.0100.04710.51
5.0.00.0130.06310.51
4.4.90.0070.02710.51
4.4.80.0100.02010.51
4.4.70.0100.03010.51
4.4.60.0100.03010.51
4.4.50.0100.03310.51
4.4.40.0100.04010.51
4.4.30.0130.03010.51
4.4.20.0130.01310.51
4.4.10.0130.03310.51
4.4.00.0170.02710.51
4.3.110.0100.03710.51
4.3.100.0070.02010.51
4.3.90.0130.03010.51
4.3.80.0070.04310.51
4.3.70.0100.02710.51
4.3.60.0100.02710.51
4.3.50.0070.03310.51
4.3.40.0070.05310.51
4.3.30.0030.02710.51
4.3.20.0030.03710.51
4.3.10.0070.02310.51
4.3.00.0030.03010.51

preferences:
59.34 ms | 401 KiB | 5 Q