3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_decode('{ "lifeExp": "2 Days", "certificates": [ { "name": "CCS Group Pte Ltd", "signed": "22/05/2020 10:31:00", "revoked": "23/05/2020 5:40:00", "files": { "p12": "certificates/:id/certificate.p12", "pem": "certificates/:id/certificate.pem", "key": "certificates/:id/certificate.key", "password": "certificates/:id/certificate.password" } }, { "name": "Hoola Inc", "signed": "16/05/2020 12:40:00", "revoked": "19/05/2020 04:00:00", "files": { "p12": "certificates/:id/certificate.p12", "pem": "certificates/:id/certificate.pem", "key": "certificates/:id/certificate.key", "password": "certificates/:id/certificate.password" } } ] }', true); $signed = $json['certificates'][1]['signed']; $revoked = $json['certificates'][1]['revoked']; $newTimeAdd = DateTime::createFromFormat('d/m/Y H:i:s', $signed); $newTimeRead = DateTime::createFromFormat('d/m/Y H:i:s', $revoked); $interval = $newTimeAdd->diff($newTimeRead); echo $interval->days;

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.0110.00816.66
8.5.00.0100.01119.91
8.4.150.0020.00014.05
8.4.140.0110.01017.55
8.4.130.0140.00817.90
8.4.120.0050.00420.75
8.4.110.0040.00522.59
8.4.100.0140.00518.96
8.4.90.0090.01120.36
8.4.80.0040.00417.97
8.4.70.0070.00318.11
8.4.60.0150.00619.43
8.4.50.0060.00318.81
8.4.40.0040.00417.93
8.4.30.0060.00318.83
8.4.20.0060.00318.10
8.4.10.0040.00422.00
8.3.280.0030.00014.05
8.3.270.0140.00616.50
8.3.260.0150.00516.82
8.3.250.0060.01118.73
8.3.240.0150.00516.76
8.3.230.0150.00416.74
8.3.220.0140.00418.87
8.3.210.0090.01116.49
8.3.200.0050.00416.66
8.3.190.0120.00717.27
8.3.180.0090.00918.77
8.3.170.0070.01017.28
8.3.160.0040.01116.55
8.3.150.0040.01417.14
8.3.140.0040.00417.00
8.3.130.0040.00418.46
8.3.120.0060.00618.58
8.3.110.0000.00820.94
8.3.100.0100.01024.06
8.3.90.0110.00426.77
8.3.80.0060.00318.55
8.3.70.0040.01116.58
8.3.60.0070.00716.75
8.3.50.0140.00523.65
8.3.40.0120.00319.21
8.3.30.0120.00618.92
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0120.00720.80
8.2.280.0090.00916.85
8.2.270.0140.00316.63
8.2.260.0000.00817.25
8.2.250.0110.00417.42
8.2.240.0040.01116.94
8.2.230.0050.00522.58
8.2.220.0090.00537.54
8.2.210.0000.00826.77
8.2.200.0070.00316.36
8.2.190.0150.00616.75
8.2.180.0110.00325.92
8.2.170.0070.00722.96
8.2.160.0110.01122.96
8.2.150.0070.00025.66
8.2.140.0070.01124.66
8.2.130.0040.00426.16
8.2.120.0050.00326.35
8.2.110.0030.00620.34
8.2.100.0080.00417.97
8.2.90.0000.00818.00
8.2.80.0040.00418.86
8.2.70.0030.00618.16
8.2.60.0090.00018.15
8.2.50.0000.00819.06
8.2.40.0060.00321.18
8.2.30.0000.00819.41
8.2.20.0000.00818.23
8.2.10.0000.00719.32
8.2.00.0000.00719.37
8.1.330.0120.00621.75
8.1.320.0120.00917.72
8.1.310.0110.00416.76
8.1.300.0100.01020.04
8.1.290.0090.00030.84
8.1.280.0100.00325.92
8.1.270.0000.00723.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0050.00522.09
8.1.230.0060.00617.95
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0040.00418.85
8.1.170.0080.00018.60
8.1.160.0000.00719.05
8.1.150.0070.00018.82
8.1.140.0080.00018.90
8.1.130.0040.00420.09
8.1.120.0000.00717.43
8.1.110.0050.00517.57
8.1.100.0000.00717.54
8.1.90.0040.00417.54
8.1.80.0000.00817.53
8.1.70.0030.00317.54
8.1.60.0040.00417.49
8.1.50.0030.00517.45
8.1.40.0040.00417.50
8.1.30.0030.00517.56
8.1.20.0040.00417.70
8.1.10.0070.00317.73
8.1.00.0050.00317.66
8.0.300.0050.00218.77
8.0.290.0050.00216.88
8.0.280.0000.00718.41
8.0.270.0030.00617.01
8.0.260.0000.00720.30
8.0.250.0070.00017.16
8.0.240.0030.00517.14
8.0.230.0000.00717.02
8.0.220.0040.00417.02
8.0.210.0040.00417.04
8.0.200.0030.00317.11
8.0.190.0070.00017.16
8.0.180.0090.00017.07
8.0.170.0000.00917.06
8.0.160.0040.00417.05
8.0.150.0070.00016.95
8.0.140.0040.00417.01
8.0.130.0000.00513.38
8.0.120.0020.00517.01
8.0.110.0050.00216.86
8.0.100.0050.00317.09
8.0.90.0090.00017.02
8.0.80.0050.01017.00
8.0.70.0080.00017.00
8.0.60.0090.00017.02
8.0.50.0020.00517.05
8.0.30.0090.00917.20
8.0.20.0140.00717.12
8.0.10.0000.00717.18
8.0.00.0130.00616.64
7.4.330.0040.00015.55
7.4.320.0000.00716.61
7.4.300.0060.00016.53
7.4.290.0040.00416.52
7.4.280.0000.00916.43
7.4.270.0000.00716.57
7.4.260.0030.00313.25
7.4.250.0030.00316.46
7.4.240.0020.00516.62
7.4.230.0040.00416.58
7.4.220.0030.00316.49
7.4.210.0100.00816.64
7.4.200.0040.00416.62
7.4.130.0090.00816.65
7.4.120.0030.02216.63
7.4.110.0070.01116.61
7.4.100.0150.00316.59
7.4.90.0090.00916.49
7.4.80.0170.00419.39
7.4.70.0060.00916.51
7.4.60.0100.00716.67
7.4.50.0110.00516.26
7.4.40.0180.00316.59
7.4.30.0100.01016.50
7.4.20.0090.01216.57
7.4.10.0140.00716.58
7.4.00.0100.00716.39
7.3.330.0070.00016.11
7.3.320.0000.00513.04
7.3.310.0040.00416.23
7.3.300.0000.00716.29
7.3.290.0050.01116.38
7.3.260.0150.01216.54
7.3.240.0090.00916.56
7.3.230.0030.01316.46
7.3.210.0100.00616.14
7.3.200.0150.00316.18
7.3.190.0100.00716.63
7.3.180.0070.01016.43
7.3.170.0100.00516.50
7.3.160.0120.00616.55
7.3.150.0140.00716.57
7.3.140.0040.01516.30
7.3.130.0120.00916.80
7.3.120.0110.01016.41
7.3.110.0000.01716.58
7.3.100.0080.00816.48
7.3.90.0030.01416.56
7.3.80.0070.01016.50
7.3.70.0130.00316.35
7.3.60.0080.00816.40
7.3.50.0110.00716.43
7.3.40.0060.01216.46
7.3.30.0090.00916.48
7.3.20.0150.01118.35
7.3.10.0190.00418.26
7.3.00.0030.01418.16
7.2.330.0160.00616.61
7.2.320.0040.01417.01
7.2.310.0090.00916.66
7.2.300.0140.00416.91
7.2.290.0180.00316.29
7.2.280.0100.01216.94
7.2.270.0160.00616.62
7.2.260.0030.01516.69
7.2.250.0030.01316.60
7.2.240.0080.00816.46
7.2.230.0080.00816.89
7.2.220.0100.00716.36
7.2.210.0100.00716.45
7.2.200.0070.01016.64
7.2.190.0080.00816.67
7.2.180.0030.01416.61
7.2.170.0090.01116.45
7.2.160.0130.00416.53
7.2.150.0260.00318.42
7.2.140.0150.00918.53
7.2.130.0030.01318.61
7.2.120.0060.01218.31
7.2.110.0100.00718.42
7.2.100.0120.00618.16
7.2.90.0090.00918.39
7.2.80.0100.00718.46
7.2.70.0140.00318.39
7.2.60.0070.01018.51
7.2.50.0120.00918.21
7.2.40.0110.00918.61
7.2.30.0110.01118.54
7.2.20.0140.00318.50
7.2.10.0110.00718.15
7.2.00.0130.00618.32

preferences:
36.5 ms | 403 KiB | 5 Q