3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{\n \"long_format\":{\n \"date\":\"DD/MM/YYYY\",\n \"time\":\"H:mm:ss\",\n \"date_time\":\"DD/MM/YYYY H:mm:ss\"\n },\n \"short_format\":{\n \"date\":\"DD/MM/YY\",\n \"time\":\"hh:mm:ss A\",\n \"date_time\":\"DD/MM/YY hh:mm:ss A\"\n }\n}'; $string = preg_replace(array('/\\\\n\s+/m','/\\\\n/m','/\\\\"/m'), array('','','"'), $string); print_r(json_decode($string,true));

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.5.10.0100.00720.26
8.5.00.0120.00920.18
8.4.150.0030.00014.05
8.4.140.0170.01617.41
8.4.130.0110.01018.55
8.4.120.0120.00824.01
8.4.110.0140.00718.86
8.4.100.0140.00617.71
8.4.90.0130.00918.15
8.4.80.0050.01120.90
8.4.70.0070.00818.02
8.4.60.0110.01017.77
8.4.50.0130.00817.93
8.4.40.0070.01017.88
8.4.30.0150.00420.29
8.4.20.0170.00317.70
8.4.10.0040.00419.51
8.3.280.0100.01020.25
8.3.270.0140.01016.69
8.3.260.0050.00516.61
8.3.250.0100.00918.66
8.3.240.0100.00917.27
8.3.230.0140.00516.59
8.3.220.0060.00817.23
8.3.210.0090.00816.77
8.3.200.0150.00516.79
8.3.190.0090.01116.56
8.3.180.0110.00718.61
8.3.170.0120.00617.18
8.3.160.0180.00018.28
8.3.150.0090.00920.59
8.3.140.0080.00017.18
8.3.130.0030.00618.27
8.3.120.0090.00020.83
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0110.00326.77
8.3.80.0090.00017.97
8.3.70.0080.00816.48
8.3.60.0110.01116.46
8.3.50.0120.00318.39
8.3.40.0030.01121.90
8.3.30.0120.00318.71
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.290.0090.01018.88
8.2.280.0070.00218.53
8.2.270.0130.00617.29
8.2.260.0060.00316.73
8.2.250.0030.00516.95
8.2.240.0090.00516.78
8.2.230.0040.00422.58
8.2.220.0130.00637.54
8.2.210.0080.00026.77
8.2.200.0070.00318.41
8.2.190.0130.00316.73
8.2.180.0120.00616.88
8.2.170.0090.01218.89
8.2.160.0110.00322.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0100.00020.14
8.2.100.0000.01017.84
8.2.90.0060.00317.50
8.2.80.0050.00318.96
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00518.03
8.2.30.0000.00717.89
8.2.20.0040.00420.39
8.2.10.0040.00417.84
8.2.00.0040.00419.27
8.1.330.0100.00821.89
8.1.320.0110.01116.26
8.1.310.0040.01416.75
8.1.300.0040.00420.38
8.1.290.0090.00030.84
8.1.280.0060.00925.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00322.00
8.1.230.0000.01122.15
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00018.65
8.1.160.0000.00718.80
8.1.150.0050.00218.61
8.1.140.0000.00717.59
8.1.130.0000.00718.80
8.1.120.0000.00717.55
8.1.110.0040.00417.52
8.1.100.0070.00017.50
8.1.90.0080.00017.59
8.1.80.0000.01017.50
8.1.70.0030.00317.46
8.1.60.0090.00017.68
8.1.50.0040.00417.63
8.1.40.0060.00317.62
8.1.30.0000.00817.76
8.1.20.0040.00417.60
8.1.10.0060.00717.54
8.1.00.0140.00517.47
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0060.00320.08
8.0.270.0000.00718.08
8.0.260.0060.00018.36
8.0.250.0080.00017.00
8.0.240.0030.00316.94
8.0.230.0040.00417.02
8.0.220.0000.00716.99
8.0.210.0000.00716.87
8.0.200.0030.00317.01
8.0.190.0040.00416.95
8.0.180.0050.00216.91
8.0.170.0040.00417.03
8.0.160.0000.00716.96
8.0.150.0000.00716.90
8.0.140.0080.01216.88
8.0.130.0160.00316.76
8.0.120.0120.00716.92
8.0.110.0190.00016.82
8.0.100.0170.00316.90
8.0.90.0120.00816.98
8.0.80.0170.00316.95
8.0.70.0170.00316.87
8.0.60.0190.00316.90
8.0.50.0220.00016.89
8.0.30.0150.00216.75
8.0.20.0110.00316.94
8.0.10.0140.00316.97
8.0.00.0090.00317.01
7.4.330.0030.00315.55
7.4.320.0040.00416.52
7.4.300.0050.00316.84
7.4.290.0060.00316.50
7.4.280.0040.00416.63
7.4.270.0190.00316.44
7.4.260.0080.00816.71
7.4.250.0060.00416.68
7.4.240.0140.00016.77
7.4.230.0180.00016.70
7.4.220.0180.00016.72
7.4.210.0100.00216.76
7.4.200.0090.00616.51
7.4.190.0130.00316.77
7.4.180.0160.00316.77
7.4.160.0110.00916.75
7.4.150.0160.00216.58
7.4.140.0090.00916.63
7.4.130.0110.00816.49
7.4.120.0090.00916.50
7.4.110.0150.00316.46
7.4.100.0180.00016.53
7.4.90.0070.00716.50
7.4.80.0070.00716.61
7.4.70.0150.00016.49
7.4.60.0100.00716.57
7.4.50.0060.00916.51
7.4.40.0120.00316.54
7.4.30.0090.00416.57
7.4.20.0040.00716.08
7.4.10.0130.00316.37
7.4.00.0130.00316.44
7.3.330.0110.00816.10
7.3.320.0200.00016.25
7.3.310.0120.00416.35
7.3.300.0140.00516.07
7.3.290.0120.00816.34
7.3.280.0110.00216.34
7.3.270.0140.00316.06
7.3.260.0110.00816.37
7.3.250.0100.00316.37
7.3.240.0130.00016.41
7.3.230.0170.00216.36
7.3.220.0060.00616.29
7.3.210.0100.00016.14
7.3.200.0080.00016.13
7.3.190.0100.00316.18
7.3.180.0120.00516.32
7.3.170.0150.00416.26
7.3.160.0110.00816.16
7.3.150.0110.00716.23
7.3.140.0170.00316.12
7.3.130.0140.00716.02
5.6.400.0210.00516.05

preferences:
40.82 ms | 403 KiB | 5 Q