3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '2014-05-01'; $a = explode('-',$input); $result = strftime("%m",mktime(0,0,0,$a[0])).' '.intval($a[1]); echo $result;

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.0070.00718.68
8.3.50.0140.00016.64
8.3.40.0110.00419.09
8.3.30.0080.01218.84
8.3.20.0050.00319.02
8.3.10.0070.00021.85
8.3.00.0040.00419.50
8.2.180.0070.01118.66
8.2.170.0170.00322.96
8.2.160.0060.01019.34
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0060.00320.53
8.2.100.0000.01118.09
8.2.90.0050.00318.20
8.2.80.0000.00817.97
8.2.70.0100.00017.79
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0070.00020.42
8.2.30.0040.00419.34
8.2.20.0040.00418.06
8.2.10.0000.00718.17
8.2.00.0000.00718.29
8.1.280.0090.00925.92
8.1.270.0070.00421.83
8.1.260.0090.00026.35
8.1.250.0000.00928.09
8.1.240.0030.00623.55
8.1.230.0000.01120.90
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0030.00517.13
8.1.180.0080.00018.10
8.1.170.0030.00618.66
8.1.160.0040.00419.00
8.1.150.0000.00718.88
8.1.140.0030.00319.03
8.1.130.0000.00719.11
8.1.120.0040.00417.51
8.1.110.0060.00317.63
8.1.100.0040.00417.61
8.1.90.0040.00417.53
8.1.80.0060.00317.62
8.1.70.0000.00717.61
8.1.60.0000.00917.55
8.1.50.0060.00317.48
8.1.40.0050.00317.46
8.1.30.0040.00417.73
8.1.20.0000.00717.73
8.1.10.0000.00717.55
8.1.00.0040.00417.61
8.0.300.0000.00719.98
8.0.290.0090.00016.88
8.0.280.0000.00718.59
8.0.270.0040.00417.33
8.0.260.0030.00316.97
8.0.250.0040.00417.14
8.0.240.0030.00316.96
8.0.230.0030.00317.08
8.0.220.0000.00717.08
8.0.210.0000.00716.99
8.0.200.0080.00017.09
8.0.190.0000.00717.09
8.0.180.0030.00317.00
8.0.170.0030.00617.05
8.0.160.0030.00317.07
8.0.150.0000.00716.83
8.0.140.0030.00517.02
8.0.130.0000.00613.46
8.0.120.0000.00716.98
8.0.110.0040.00416.87
8.0.100.0000.00716.96
8.0.90.0000.00717.05
8.0.80.0120.00417.00
8.0.70.0040.00417.02
8.0.60.0040.00416.93
8.0.50.0040.00417.04
8.0.30.0080.00917.04
8.0.20.0110.00817.42
8.0.10.0000.00717.11
8.0.00.0030.01416.87
7.4.330.0000.00515.55
7.4.320.0070.00016.53
7.4.300.0030.00316.69
7.4.290.0000.00716.66
7.4.280.0050.00316.66
7.4.270.0040.00416.47
7.4.260.0040.00416.60
7.4.250.0000.00716.65
7.4.240.0030.00316.69
7.4.230.0070.00016.70
7.4.220.0070.00016.55
7.4.210.0070.01016.60
7.4.200.0000.00716.65
7.4.160.0130.00416.63
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0120.01316.49
7.4.120.0100.01116.59
7.4.110.0040.01616.66
7.4.100.0120.00616.55
7.4.90.0070.01416.72
7.4.80.0060.01319.39
7.4.70.0150.00316.68
7.4.60.0090.01316.60
7.4.50.0040.01516.57
7.4.40.0030.01416.40
7.4.10.0040.01615.00
7.4.00.0080.00715.12
7.3.330.0000.00613.14
7.3.320.0000.00613.13
7.3.310.0000.00716.39
7.3.300.0000.00716.38
7.3.290.0030.00316.35
7.3.280.0040.01216.39
7.3.270.0040.01417.40
7.3.260.0120.00516.54
7.3.250.0100.00916.46
7.3.240.0110.00616.53
7.3.230.0060.00916.50
7.3.210.0070.01116.54
7.3.200.0090.00916.68
7.3.190.0060.01016.74
7.3.180.0040.01116.36
7.3.170.0130.00316.57
7.3.160.0100.00716.49
7.3.130.0090.00615.07
7.3.120.0070.01115.07
7.3.110.0050.01315.09
7.3.100.0050.01014.83
7.3.90.0060.00714.90
7.3.80.0090.00514.97
7.3.70.0050.00714.72
7.3.60.0060.00615.06
7.3.50.0040.00714.86
7.3.40.0080.00514.79
7.3.30.0060.00914.88
7.3.20.0070.00716.79
7.3.10.0040.00616.82
7.3.00.0050.00816.70
7.2.330.0030.01416.60
7.2.320.0140.00316.42
7.2.310.0100.00616.51
7.2.300.0030.01816.59
7.2.290.0100.00716.84
7.2.260.0110.00715.11
7.2.250.0030.01515.18
7.2.240.0070.01214.97
7.2.230.0060.00715.16
7.2.220.0050.00615.24
7.2.210.0040.01115.29
7.2.200.0060.00615.12
7.2.190.0060.00415.13
7.2.180.0080.00715.15
7.2.170.0030.00815.09
7.2.160.0030.00715.03
7.2.150.0110.00417.11
7.2.140.0160.00016.83
7.2.130.0060.01017.17
7.2.120.0030.00917.18
7.2.110.0030.01316.91
7.2.100.0120.00317.14
7.2.90.0030.01317.04
7.2.80.0080.00817.02
7.2.70.0000.01316.98
7.2.60.0080.00816.95
7.2.50.0030.01316.95
7.2.40.0060.00817.09
7.2.30.0030.01217.19
7.2.20.0000.01317.05
7.2.10.0040.01218.60
7.2.00.0070.01318.52
7.1.330.0050.00915.91
7.1.320.0030.00815.80
7.1.310.0050.00815.80
7.1.300.0050.00915.77
7.1.290.0050.00915.75
7.1.280.0060.00715.94
7.1.270.0050.00615.67
7.1.260.0010.00815.93
7.1.250.0030.00715.88
7.1.240.0060.00615.93
7.1.230.0090.00615.99
7.1.220.0060.00915.79
7.1.210.0130.00315.92
7.1.200.0090.00315.98
7.1.190.0110.00716.06
7.1.180.0040.00815.93
7.1.170.0060.01015.71
7.1.160.0030.01315.91
7.1.150.0040.01115.76
7.1.140.0040.01115.93
7.1.130.0050.00617.37
7.1.120.0080.01017.22
7.1.110.0070.01217.22
7.1.100.0040.00717.07
7.1.90.0030.01216.83
7.1.80.0050.00917.03
7.1.70.0100.00516.56
7.1.60.0150.00925.44
7.1.50.0120.01625.33
7.1.40.0090.01625.17
7.1.30.0150.01325.20
7.1.20.0080.01225.21
7.1.10.0030.00916.46
7.1.00.0050.00916.34
7.0.330.0070.00315.63
7.0.320.0080.00815.63
7.0.310.0060.00915.47
7.0.300.0030.01315.38
7.0.290.0060.00815.30
7.0.280.0080.00415.52
7.0.270.0070.00715.40
7.0.260.0080.00615.56
7.0.250.0040.00415.52
7.0.240.0090.00315.71
7.0.230.0070.00715.68
7.0.220.0030.00915.62
7.0.210.0000.00815.68
7.0.200.0080.00415.70
7.0.190.0080.00815.57
7.0.180.0090.00315.50
7.0.170.0070.00315.61
7.0.160.0000.01315.52
7.0.150.0030.01015.29
7.0.140.0030.00515.61
7.0.130.0050.00315.14
7.0.120.0030.00715.69
7.0.110.0060.00615.65
7.0.100.0090.00315.49
7.0.90.0030.01015.32
7.0.80.0040.01215.58
7.0.70.0110.00415.33
7.0.60.0070.01115.64
7.0.50.0060.00615.66
7.0.40.0030.00713.70
7.0.30.0000.01313.47
7.0.20.0130.00313.50
7.0.10.0000.01213.24
7.0.00.0060.00613.38
5.6.400.0110.00414.63
5.6.390.0060.00614.57
5.6.380.0040.01514.66
5.6.370.0070.00714.48
5.6.360.0080.00814.40
5.6.350.0030.01314.52
5.6.340.0060.00614.39
5.6.330.0110.00314.77
5.6.320.0060.00314.56
5.6.310.0070.00714.35
5.6.300.0040.00414.32
5.6.290.0000.01514.23
5.6.280.0000.01414.41
5.6.270.0120.00014.58
5.6.260.0030.00614.40
5.6.250.0030.01414.36
5.6.240.0030.01714.70
5.6.230.0090.00614.52
5.6.220.0120.00014.33
5.6.210.0040.00814.77
5.6.200.0060.00614.55
5.6.190.0070.00714.51
5.6.180.0090.00614.49
5.6.170.0060.00314.52
5.6.160.0030.00914.37
5.6.150.0040.01214.43
5.6.140.0070.00414.47
5.6.130.0050.00514.54
5.6.120.0070.00714.61
5.6.110.0000.01214.62
5.6.100.0000.01114.36
5.6.90.0130.00314.47
5.6.80.0000.01214.30
5.6.70.0030.01014.11
5.6.60.0000.01714.56
5.6.50.0110.00414.11
5.6.40.0070.00314.66
5.6.30.0070.00714.36
5.6.20.0060.00614.48
5.6.10.0070.00714.36
5.6.00.0000.01114.48

preferences:
58.88 ms | 401 KiB | 5 Q