3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theDate = '21 June, 2016'; $dt = new DateTime( $theDate ); $myDate = $dt->format('Y-m-d'); var_dump( json_decode($myDate, true) ); json_last_error_msg();

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.41
8.3.50.0050.01322.83
8.3.40.0150.00318.57
8.3.30.0110.00418.71
8.3.20.0070.00020.16
8.3.10.0000.00923.59
8.3.00.0000.00820.82
8.2.180.0110.00418.30
8.2.170.0070.00722.96
8.2.160.0090.00922.08
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00521.02
8.2.110.0130.00720.57
8.2.100.0080.00417.91
8.2.90.0030.00618.98
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00519.02
8.2.50.0000.00918.10
8.2.40.0040.00420.45
8.2.30.0050.00219.12
8.2.20.0070.00017.79
8.2.10.0040.00418.12
8.2.00.0060.00318.09
8.1.280.0120.00325.92
8.1.270.0060.00323.97
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0060.00323.78
8.1.230.0070.00423.89
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0130.00017.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0030.00318.95
8.1.150.0070.00018.99
8.1.140.0000.00719.62
8.1.130.0040.00417.48
8.1.120.0000.00717.62
8.1.110.0000.00817.56
8.1.100.0000.00717.65
8.1.90.0000.00817.57
8.1.80.0070.00017.57
8.1.70.0040.00417.64
8.1.60.0040.00417.64
8.1.50.0040.00417.61
8.1.40.0000.00817.57
8.1.30.0100.00017.75
8.1.20.0070.00017.72
8.1.10.0050.00317.61
8.1.00.0040.00417.51
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0040.00417.27
8.0.260.0000.00716.86
8.0.250.0040.00417.03
8.0.240.0030.00617.19
8.0.230.0040.00417.07
8.0.220.0070.00016.91
8.0.210.0000.00716.96
8.0.200.0030.00317.02
8.0.190.0040.00417.11
8.0.180.0040.00417.06
8.0.170.0000.00817.05
8.0.160.0000.00816.97
8.0.150.0040.00316.96
8.0.140.0000.00716.95
8.0.130.0030.00313.36
8.0.120.0050.00316.88
8.0.110.0060.00317.04
8.0.100.0040.00416.80
8.0.90.0000.00816.80
8.0.80.0070.00717.02
8.0.70.0040.00417.09
8.0.60.0040.00417.07
8.0.50.0050.00216.89
8.0.30.0080.01017.04
8.0.20.0080.01017.41
8.0.10.0040.00317.21
8.0.00.0100.00716.80
7.4.330.0050.00015.08
7.4.320.0040.00416.72
7.4.300.0030.00316.64
7.4.290.0000.00716.57
7.4.280.0000.00716.49
7.4.270.0070.00016.68
7.4.260.0080.00016.57
7.4.250.0070.00016.40
7.4.240.0040.00416.72
7.4.230.0040.00416.76
7.4.220.0090.01316.74
7.4.210.0090.00916.79
7.4.200.0030.00316.62
7.4.160.0140.00316.65
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0060.01116.58
7.4.120.0140.00516.47
7.4.110.0070.01016.54
7.4.100.0100.01016.56
7.4.90.0100.00716.62
7.4.80.0130.00319.39
7.4.70.0000.01816.56
7.4.60.0100.00716.73
7.4.50.0100.00516.28
7.4.40.0070.01016.57
7.4.30.0130.00316.62
7.4.10.0030.01314.93
7.4.00.0070.00815.09
7.3.330.0070.00013.22
7.3.320.0050.00013.00
7.3.310.0000.00716.12
7.3.300.0070.00016.26
7.3.290.0050.01116.29
7.3.280.0090.00916.26
7.3.270.0090.00917.40
7.3.260.0060.01016.37
7.3.250.0080.00916.40
7.3.240.0060.01116.49
7.3.230.0080.00816.50
7.3.210.0170.00016.30
7.3.200.0160.00016.17
7.3.190.0100.00716.51
7.3.180.0090.01116.45
7.3.170.0120.00816.29
7.3.160.0070.01016.47
7.3.130.0030.01414.85
7.3.120.0090.00614.59
7.3.110.0070.01014.83
7.3.100.0070.01014.83
7.3.90.0100.00714.68
7.3.80.0120.00014.87
7.3.70.0070.00714.80
7.3.60.0100.01014.90
7.3.50.0070.01314.48
7.3.40.0030.01014.71
7.3.30.0070.00714.54
7.3.20.0040.01416.41
7.3.10.0060.00816.56
7.3.00.0080.00416.72
7.2.330.0030.01516.53
7.2.320.0170.00716.46
7.2.310.0140.00416.75
7.2.300.0060.01616.84
7.2.290.0090.00616.71
7.2.260.0120.00614.74
7.2.250.0060.00914.78
7.2.240.0000.01315.00
7.2.230.0070.01115.20
7.2.220.0080.01115.31
7.2.210.0000.01315.00
7.2.200.0030.01015.20
7.2.190.0170.00314.76
7.2.180.0120.00615.04
7.2.170.0060.00615.10
7.2.160.0100.00314.63
7.2.150.0070.00716.82
7.2.140.0040.01117.03
7.2.130.0020.01316.92
7.2.120.0030.01116.91
7.2.110.0040.00817.03
7.2.100.0040.01316.66
7.2.90.0060.00716.82
7.2.80.0080.00516.98
7.2.70.0060.00616.80
7.2.60.0070.00616.95
7.2.50.0090.00416.98
7.2.40.0060.00517.02
7.2.30.0030.01016.81
7.2.20.0030.01116.78
7.2.10.0030.01216.82
7.2.00.0060.00617.77
7.1.330.0060.01215.89
7.1.320.0100.00715.50
7.1.310.0060.00315.84
7.1.300.0060.01215.95
7.1.290.0110.00015.63
7.1.280.0060.00615.62
7.1.270.0050.00515.80
7.1.260.0080.00416.02
7.1.250.0100.00315.85
7.1.240.0150.00015.98
7.1.230.0000.01415.64
7.1.220.0070.01015.75
7.1.210.0100.00015.70
7.1.200.0030.01015.77
7.1.190.0000.01115.39
7.1.180.0030.00615.74
7.1.170.0080.00015.55
7.1.160.0030.01315.86
7.1.150.0070.00715.76
7.1.140.0000.00915.83
7.1.130.0000.01215.81
7.1.120.0000.01315.88
7.1.110.0090.00615.48
7.1.100.0080.00516.95
7.1.90.0040.00815.57
7.1.80.0060.00615.96
7.1.70.0040.00416.62
7.1.60.0050.01417.87
7.1.50.0050.01416.29
7.1.40.0070.00315.92
7.1.30.0030.01015.71
7.1.20.0030.00715.93
7.1.10.0030.01315.85
7.1.00.0080.03819.09
7.0.330.0000.00815.45
7.0.320.0000.00815.59
7.0.310.0030.01015.59
7.0.300.0000.01115.41
7.0.290.0030.01215.40
7.0.280.0030.01015.53
7.0.270.0070.00715.45
7.0.260.0090.00315.44
7.0.250.0030.01315.18
7.0.240.0000.01215.42
7.0.230.0000.01315.61
7.0.220.0000.00915.34
7.0.210.0030.00715.65
7.0.200.0250.01114.93
7.0.190.0000.00815.51
7.0.180.0070.00715.43
7.0.170.0090.00015.35
7.0.160.0130.00315.50
7.0.150.0000.01615.69
7.0.140.0140.00415.28
7.0.130.0080.00415.40
7.0.120.0080.00015.48
7.0.110.0070.00315.31
7.0.100.0080.00415.45
7.0.90.0040.01115.52
7.0.80.0040.00815.14
7.0.70.0190.02517.64
7.0.60.0160.02617.56
7.0.50.1100.03317.75
7.0.40.0960.03516.80
7.0.30.0260.03816.81
7.0.20.0780.04116.97
7.0.10.0200.03216.97
7.0.00.0660.03016.92
5.6.400.0030.00614.57
5.6.390.0060.00314.60
5.6.380.0040.01114.14
5.6.370.0030.01014.46
5.6.360.0090.00614.48
5.6.350.0000.00914.51
5.6.340.0040.01114.64
5.6.330.0100.00614.41
5.6.320.0000.00814.24
5.6.310.0070.00714.42
5.6.300.0100.00314.34
5.6.290.0070.00714.44
5.6.280.0010.03817.46
5.6.270.0000.01014.48
5.6.260.0030.01314.45
5.6.250.0060.00914.61
5.6.240.0120.00014.39
5.6.230.0060.00614.18
5.6.220.0100.02917.43
5.6.210.0080.03517.50
5.6.200.0790.03217.70
5.6.190.1120.02517.65
5.6.180.0650.04417.64
5.6.170.0460.03817.74
5.6.160.0530.04117.67
5.6.150.0500.03417.62
5.6.140.0760.03117.73
5.6.130.0980.03317.88
5.6.120.0180.04017.78
5.6.110.0330.04417.75
5.6.100.0200.03517.84
5.6.90.0410.02817.73
5.6.80.0220.03517.46
5.6.70.0350.03817.46
5.6.60.0130.02817.33
5.6.50.0130.03517.43
5.6.40.0230.02817.35
5.6.30.0100.03217.25
5.6.20.0200.03217.33
5.6.10.0080.03217.40
5.6.00.0130.03017.29
5.5.380.0070.00713.90
5.5.370.0090.00314.18
5.5.360.0100.03517.47
5.5.350.0480.03817.29
5.5.340.0760.03017.46
5.5.330.0970.03417.48
5.5.320.0650.03217.66
5.5.310.0390.02717.57
5.5.300.0400.02817.62
5.5.290.1000.03517.50
5.5.280.0170.03717.56
5.5.270.0300.02717.67
5.5.260.0220.03617.61
5.5.250.0360.03117.53
5.5.240.0210.03417.36
5.5.230.0150.02717.26
5.5.220.0240.02517.21
5.5.210.0350.02717.15
5.5.200.0140.02717.33
5.5.190.0240.03017.20
5.5.180.0260.03317.24
5.5.170.0040.01414.14
5.5.160.0130.03117.19
5.5.150.0330.03017.07
5.5.140.0200.02817.18
5.5.130.0200.03117.30
5.5.120.0340.03617.36
5.5.110.0370.04117.35
5.5.100.0270.02817.26
5.5.90.0270.03717.18
5.5.80.0200.03517.23
5.5.70.0230.03417.11
5.5.60.0270.03117.19
5.5.50.0230.03217.13
5.5.40.0180.03317.13
5.5.30.0930.03317.27
5.5.20.0720.03517.27
5.5.10.0550.04017.09
5.5.00.0160.04817.36

preferences:
38.31 ms | 401 KiB | 5 Q