3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{"id":41,"userId":9,"description":null,"updated_by":"Juan Dela Cruz","created_at":"2019-09-18 10:07:34","updated_at":"2019-09-18 10:07:34"}'; $b = '{"id":2,"userId":9,"description":null,"updated_by":null,"created_at":"2019-09-16 12:46:56","updated_at":"2019-09-16 12:46:56"}'; $arr1 = json_decode($a, true); $key1 = strtotime($arr1['created_at']); $arr[$key1] = $arr1; $arr2 = json_decode($b, true); $key2 = strtotime($arr2['created_at']); $arr[$key2] = $arr2; //print_r($arr); $key = max(array_keys($arr)); print_r($arr[$key]);

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.4.140.0150.00717.91
8.4.130.0100.00718.85
8.4.120.0090.00923.89
8.4.110.0130.00718.93
8.4.100.0140.00717.95
8.4.90.0110.01020.29
8.4.80.0030.00818.54
8.4.70.0080.00818.88
8.4.60.0080.00619.04
8.4.50.0130.00819.15
8.4.40.0150.00617.84
8.4.30.0030.01620.40
8.4.20.0070.01018.74
8.4.10.0090.00017.92
8.3.270.0110.00916.52
8.3.260.0150.00516.49
8.3.250.0130.00618.98
8.3.240.0090.01017.17
8.3.230.0120.00816.52
8.3.220.0060.00318.64
8.3.210.0100.00816.80
8.3.200.0070.00216.53
8.3.190.0060.00417.03
8.3.180.0130.00618.73
8.3.170.0110.00718.71
8.3.160.0150.00317.20
8.3.150.0130.00617.06
8.3.140.0060.00320.38
8.3.130.0000.00818.51
8.3.120.0050.00518.78
8.3.110.0120.00620.94
8.3.100.0030.01416.79
8.3.90.0030.00518.53
8.3.80.0030.00618.56
8.3.70.0120.00616.75
8.3.60.0150.00018.55
8.3.50.0120.00718.23
8.3.40.0040.01118.84
8.3.30.0110.00418.80
8.3.20.0070.00021.77
8.3.10.0040.00421.70
8.3.00.0080.00022.40
8.2.290.0080.00820.48
8.2.280.0120.01018.65
8.2.270.0190.00016.76
8.2.260.0070.01116.86
8.2.250.0040.00416.95
8.2.240.0030.00619.05
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0060.00318.29
8.2.190.0150.00316.63
8.2.180.0200.00016.63
8.2.170.0150.00022.96
8.2.160.0140.00019.43
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0060.00321.09
8.2.100.0040.00718.03
8.2.90.0000.00817.91
8.2.80.0030.00518.03
8.2.70.0050.00317.50
8.2.60.0040.00418.03
8.2.50.0050.00518.07
8.2.40.0040.00418.22
8.2.30.0040.00418.09
8.2.20.0040.00418.00
8.2.10.0000.00719.31
8.2.00.0040.00419.31
8.1.330.0080.01222.05
8.1.320.0050.00317.92
8.1.310.0030.00517.05
8.1.300.0150.00417.74
8.1.290.0040.00418.88
8.1.280.0170.00725.92
8.1.270.0040.00420.57
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0040.00720.82
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0060.00318.63
8.1.160.0000.00718.76
8.1.150.0030.00518.84
8.1.140.0070.00020.89
8.1.130.0000.00720.17
8.1.120.0040.00417.50
8.1.110.0030.00417.58
8.1.100.0050.00317.59
8.1.90.0040.00417.66
8.1.80.0040.00417.62
8.1.70.0030.00317.48
8.1.60.0030.00517.62
8.1.50.0000.00817.61
8.1.40.0050.00317.44
8.1.30.0030.00617.61
8.1.20.0070.00017.74
8.1.10.0070.00017.52
8.1.00.0040.00417.53
8.0.300.0040.00419.86
8.0.290.0040.00416.88
8.0.280.0030.00318.41
8.0.270.0070.00016.87
8.0.260.0030.00320.03
8.0.250.0030.00316.96
8.0.240.0030.00316.95
8.0.230.0050.00216.98
8.0.220.0070.00017.00
8.0.210.0070.00017.00
8.0.200.0040.00417.09
8.0.190.0030.00317.09
8.0.180.0000.00717.05
8.0.170.0040.00617.00
8.0.160.0040.00417.04
8.0.150.0030.00516.97
8.0.140.0050.00317.03
8.0.130.0030.00313.47
8.0.120.0040.00416.88
8.0.110.0000.00716.89
8.0.100.0050.00217.05
8.0.90.0060.00316.87
8.0.80.0000.01517.02
8.0.70.0000.00717.05
8.0.60.0000.00716.96
8.0.50.0040.00416.96
8.0.30.0060.01317.35
8.0.20.0070.01017.10
8.0.10.0040.00417.25
8.0.00.0160.00616.85
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0030.00316.69
7.4.290.0050.00216.62
7.4.280.0040.00416.55
7.4.270.0030.00316.56
7.4.260.0000.00513.22
7.4.250.0040.00416.63
7.4.240.0000.00716.63
7.4.230.0070.00016.37
7.4.220.0050.00216.52
7.4.210.0090.00616.65
7.4.200.0040.00416.47
7.4.140.0090.01217.86
7.4.130.0150.00316.46
7.4.120.0150.00316.48
7.4.110.0100.00616.88
7.4.100.0040.01216.48
7.4.90.0090.00916.49
7.4.80.0070.01419.39
7.4.70.0090.01216.55
7.4.60.0130.00616.58
7.4.50.0080.00616.24
7.4.40.0170.00916.63
7.4.10.0130.00314.77
7.4.00.0050.01115.22
7.3.330.0000.00716.45
7.3.320.0000.00513.20
7.3.310.0040.00416.40
7.3.300.0000.00716.48
7.3.290.0000.00716.35
7.3.280.0090.00616.45
7.3.260.0090.01116.53
7.3.240.0090.00816.47
7.3.230.0030.01416.52
7.3.210.0100.00716.73
7.3.200.0130.00316.63
7.3.190.0100.01316.61
7.3.180.0070.01016.55
7.3.170.0040.01816.59
7.3.160.0130.00316.63
7.3.130.0060.01215.03
7.3.120.0060.01114.97
7.3.110.0080.00815.03
7.3.100.0050.01014.96
7.3.90.0060.00614.89
7.3.80.0010.01114.99
7.3.70.0050.00814.99
7.3.60.0040.00814.93
7.3.50.0060.00814.83
7.3.40.0030.01114.93
7.3.30.0080.00614.92
7.3.20.0090.00716.44
7.3.10.0090.00616.52
7.3.00.0070.00616.37
7.2.330.0130.01016.60
7.2.320.0090.00916.78
7.2.310.0080.00816.99
7.2.300.0100.00616.91
7.2.290.0040.01316.58
7.2.260.0140.00315.26
7.2.250.0090.00815.17
7.2.240.0060.01215.07
7.2.230.0060.01015.13
7.2.220.0060.00814.99
7.2.210.0050.00915.15
7.2.200.0050.01015.16
7.2.190.0050.01015.04
7.2.180.0110.00415.01
7.2.170.0080.00715.06
7.2.160.0060.00815.25
7.2.150.0070.00616.34
7.2.140.0040.01216.36
7.2.130.0070.00716.31
7.2.120.0080.00716.42
7.2.110.0040.00916.27
7.2.100.0080.00616.43
7.2.90.0060.00716.37
7.2.80.0040.01016.25
7.2.70.0060.00916.34
7.2.60.0080.00816.44
7.2.50.0080.00816.39
7.2.40.0080.00616.45
7.2.30.0080.00616.44
7.2.20.0050.01016.43
7.2.10.0070.00716.43
7.2.00.0080.00616.38
7.1.330.0070.00715.98
7.1.320.0100.00515.43
7.1.310.0070.00715.59
7.1.300.0040.01215.54
7.1.290.0090.00715.66
7.1.280.0030.01115.55
7.1.270.0050.00815.46
7.1.260.0040.00815.58
7.1.250.0050.00815.33
7.1.240.0030.01016.17
7.1.230.0070.00315.95
7.1.220.0070.00715.84
7.1.210.0040.00715.98
7.1.200.0060.00316.00
7.1.190.0110.00316.10
7.1.180.0070.00716.10
7.1.170.0070.00715.75
7.1.160.0070.00716.11
7.1.150.0040.00815.92
7.1.140.0060.00915.92
7.1.130.0090.00315.98
7.1.120.0000.01416.02
7.1.110.0030.00915.76
7.1.100.0070.00716.03
7.1.90.0030.01015.84
7.1.80.0090.00616.16
7.1.70.0040.00815.91
7.1.60.0000.01115.95
7.1.50.0070.01015.77
7.1.40.0070.01015.87
7.1.30.0100.00715.72
7.1.20.0030.00615.72
7.1.10.0030.00915.86
7.1.00.0120.00315.98

preferences:
151.38 ms | 403 KiB | 5 Q