3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currmonth = date('m', strtotime('-1 month')); echo $currmonth;

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.0140.00718.20
8.3.50.0030.01218.29
8.3.40.0120.00318.96
8.3.30.0000.01518.71
8.3.20.0000.00819.29
8.3.10.0060.00323.56
8.3.00.0090.00920.40
8.2.180.0040.01218.52
8.2.170.0080.00822.96
8.2.160.0030.01020.53
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00218.21
8.2.120.0000.00826.35
8.2.110.0100.00019.27
8.2.100.0070.00318.16
8.2.90.0080.00017.63
8.2.80.0050.00317.97
8.2.70.0040.00417.93
8.2.60.0030.00618.16
8.2.50.0000.00818.10
8.2.40.0040.00419.46
8.2.30.0000.00719.35
8.2.20.0000.00918.10
8.2.10.0080.00018.11
8.2.00.0000.00817.88
8.1.280.0130.01025.92
8.1.270.0040.01119.08
8.1.260.0030.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.53
8.1.230.0070.00317.76
8.1.220.0060.00317.91
8.1.210.0030.00518.77
8.1.200.0090.00017.47
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0040.00418.63
8.1.160.0000.00718.95
8.1.150.0040.00418.95
8.1.140.0040.00422.10
8.1.130.0000.00720.21
8.1.120.0000.00717.68
8.1.110.0040.00417.55
8.1.100.0000.00817.55
8.1.90.0030.00517.62
8.1.80.0000.00717.57
8.1.70.0000.00717.56
8.1.60.0040.00417.66
8.1.50.0040.00417.62
8.1.40.0040.00417.64
8.1.30.0060.00617.66
8.1.20.0000.00717.81
8.1.10.0000.00717.63
8.1.00.0070.00017.65
8.0.300.0000.00718.77
8.0.290.0030.00616.87
8.0.280.0070.00018.57
8.0.270.0030.00317.30
8.0.260.0000.00618.52
8.0.250.0030.00317.11
8.0.240.0070.00017.07
8.0.230.0060.00017.12
8.0.220.0060.00016.91
8.0.210.0030.00317.06
8.0.200.0030.00317.17
8.0.190.0040.00717.18
8.0.180.0050.00317.06
8.0.170.0030.00616.98
8.0.160.0000.00717.08
8.0.150.0070.00317.02
8.0.140.0040.00417.04
8.0.130.0050.00013.49
8.0.120.0040.00416.95
8.0.110.0000.00817.13
8.0.100.0040.00417.06
8.0.90.0000.00816.91
8.0.80.0100.00917.08
8.0.70.0040.00416.90
8.0.60.0050.00217.07
8.0.50.0040.00416.89
8.0.30.0090.00717.23
8.0.20.0160.00717.40
8.0.10.0040.00417.09
8.0.00.0080.01216.88
7.4.330.0050.00015.55
7.4.320.0030.00316.75
7.4.300.0040.00416.72
7.4.290.0000.00716.48
7.4.280.0000.00716.64
7.4.270.0090.00316.78
7.4.260.0030.00316.72
7.4.250.0000.00816.50
7.4.240.0000.00716.64
7.4.230.0000.00716.52
7.4.220.0040.00416.70
7.4.210.0130.00416.62
7.4.200.0000.00716.81
7.4.160.0130.00616.70
7.4.140.0130.00617.86
7.4.130.0060.01216.46
7.4.120.0080.01016.70
7.4.110.0120.01216.80
7.4.100.0160.00016.85
7.4.90.0030.01316.56
7.4.80.0090.00719.39
7.4.70.0070.01016.59
7.4.60.0040.01116.57
7.4.50.0060.00916.41
7.4.40.0090.01316.76
7.3.330.0020.00213.21
7.3.320.0000.00513.28
7.3.310.0060.00316.46
7.3.300.0000.00716.38
7.3.290.0000.00716.38
7.3.280.0120.00516.40
7.3.260.0130.00616.56
7.3.240.0090.00816.53
7.3.230.0080.00816.55
7.3.210.0060.01316.64
7.3.200.0140.00716.75
7.3.190.0110.00616.45
7.3.180.0130.00316.44
7.3.170.0030.01316.74
7.3.160.0030.01316.55
7.2.330.0110.00616.55
7.2.320.0120.00616.88
7.2.310.0110.00716.64
7.2.300.0080.01216.68
7.2.290.0090.00616.65

preferences:
58.85 ms | 401 KiB | 5 Q