3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"fsid":"0c16f0a9-83fb-4391-9ce9-44c6df04c7c6","health":{"checks":{},"status":"HEALTH_OK","summary":[{"severity":"HEALTH_WARN","summary":"\'ceph health\' JSON format has changed in luminous. If you see this your monitoring system is scraping the wrong fields. Disable this with \'mon health preluminous compat warning = false\'"}],"overall_status":"HEALTH_WARN"},"election_epoch":76,"quorum":[0,1,2],"quorum_names":["ceph-1","ceph-2","ceph-3"],"monmap":{"epoch":1,"fsid":"0c16f0a9-83fb-4391-9ce9-44c6df04c7c6","modified":"2018-04-01 00:20:49.551656","created":"2018-04-01 00:20:49.551656","features":{"persistent":["kraken","luminous"],"optional":[]},"mons":[{"rank":0,"name":"ceph-1","addr":"192.168.10.10:6789/0","public_addr":"192.168.10.10:6789/0"},{"rank":1,"name":"ceph-2","addr":"192.168.10.11:6789/0","public_addr":"192.168.10.11:6789/0"},{"rank":2,"name":"ceph-3","addr":"192.168.10.12:6789/0","public_addr":"192.168.10.12:6789/0"}]},"osdmap":{"osdmap":{"epoch":894,"num_osds":18,"num_up_osds":18,"num_in_osds":18,"full":false,"nearfull":false,"num_remapped_pgs":0}},"pgmap":{"pgs_by_state":[{"state_name":"active+clean","count":1088}],"num_pgs":1088,"num_pools":4,"num_objects":308119,"data_bytes":1266311689112,"bytes_used":3816983740416,"bytes_avail":8915639746560,"bytes_total":12732623486976,"write_bytes_sec":8609,"read_op_per_sec":0,"write_op_per_sec":0},"fsmap":{"epoch":38,"id":1,"up":1,"in":1,"max":1,"by_rank":[{"filesystem_id":1,"rank":0,"name":"mds","status":"up:active"}]},"mgrmap":{"epoch":33,"active_gid":1498213,"active_name":"ceph-3","active_addr":"192.168.10.12:6807/1196","available":true,"standbys":[{"gid":1728611,"name":"ceph-1","available_modules":["balancer","dashboard","influx","localpool","prometheus","restful","selftest","status","zabbix"]},{"gid":1729637,"name":"ceph-2","available_modules":["balancer","dashboard","influx","localpool","prometheus","restful","selftest","status","zabbix"]}],"modules":["balancer","restful","status"],"available_modules":["balancer","dashboard","influx","localpool","prometheus","restful","selftest","status","zabbix"],"services":{}},"servicemap":{"epoch":1,"modified":"0.000000","services":{}}}'; $data = json_decode($json); var_dump(json_last_error_msg(), $data);

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.0130.00318.17
8.3.50.0110.00418.11
8.3.40.0170.00718.76
8.3.30.0100.00718.46
8.3.20.0000.00821.68
8.3.10.0040.00423.48
8.3.00.0030.00619.56
8.2.180.0130.01018.06
8.2.170.0040.01222.96
8.2.160.0100.00520.97
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0090.00020.95
8.2.110.0040.00720.92
8.2.100.0090.00319.39
8.2.90.0080.00020.60
8.2.80.0080.00017.97
8.2.70.0030.00617.80
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0040.00419.38
8.2.20.0080.00017.99
8.2.10.0080.00018.11
8.2.00.0040.00418.00
8.1.280.0090.00625.92
8.1.270.0060.00324.01
8.1.260.0120.00926.35
8.1.250.0000.00828.09
8.1.240.0000.01018.96
8.1.230.0040.00821.03
8.1.220.0030.00617.77
8.1.210.0000.01118.77
8.1.200.0030.00617.22
8.1.190.0000.00917.23
8.1.180.0030.00518.10
8.1.170.0050.00318.52
8.1.160.0040.00418.69
8.1.150.0060.00320.84
8.1.140.0030.00517.62
8.1.130.0080.00418.99
8.1.120.0030.00617.33
8.1.110.0070.00017.39
8.1.100.0040.00417.41
8.1.90.0040.00417.35
8.1.80.0030.00617.25
8.1.70.0090.00017.27
8.1.60.0060.00317.48
8.1.50.0000.00817.35
8.1.40.0030.00617.45
8.1.30.0060.00317.53
8.1.20.0000.00817.50
8.1.10.0030.00617.32
8.1.00.0040.00417.41
8.0.300.0000.00819.64
8.0.290.0040.00416.75
8.0.280.0020.00518.36
8.0.270.0030.00617.11
8.0.260.0000.00817.18
8.0.250.0070.00016.79
8.0.240.0000.00716.77
8.0.230.0020.00516.90
8.0.220.0040.00416.82
8.0.210.0000.00816.82
8.0.200.0060.00316.86
8.0.190.0080.00016.86
8.0.180.0050.00316.87
8.0.170.0030.00616.72
8.0.160.0030.00516.79
8.0.150.0040.00716.64
8.0.140.0000.00816.66
8.0.130.0030.00313.18
8.0.120.0040.00416.83
8.0.110.0030.00616.86
8.0.100.0080.00016.64
8.0.90.0040.00416.60
8.0.80.0000.01616.84
8.0.70.0000.00816.81
8.0.60.0060.00316.81
8.0.50.0070.00016.77
8.0.30.0090.01316.90
8.0.20.0070.01517.40
8.0.10.0000.00716.80
8.0.00.0100.01216.56
7.4.330.0000.00615.55
7.4.320.0000.00716.38
7.4.300.0070.00016.52
7.4.290.0090.00016.38
7.4.280.0000.00916.42
7.4.270.0070.00316.44
7.4.260.0030.00316.41
7.4.250.0030.00616.48
7.4.240.0000.00816.44
7.4.230.0040.00416.62
7.4.220.0000.00716.61
7.4.210.0100.01016.36
7.4.200.0000.00816.62
7.4.160.0120.00816.34
7.4.140.0190.00817.86
7.4.130.0130.00916.51
7.4.120.0150.01116.42
7.4.110.0140.00616.54
7.4.100.0160.00916.45
7.4.90.0030.01716.48
7.4.80.0100.02019.39
7.4.70.0130.00716.38
7.4.60.0110.01116.46
7.4.50.0070.01016.46
7.4.40.0090.01216.36
7.4.00.0110.00714.69
7.3.330.0050.00012.97
7.3.320.0000.00612.98
7.3.310.0080.00016.24
7.3.300.0040.00415.96
7.3.290.0040.00416.11
7.3.280.0190.00216.11
7.3.260.0150.00916.18
7.3.240.0110.01116.26
7.3.230.0130.01016.12
7.3.210.0120.01816.45
7.3.200.0120.00616.15
7.3.190.0100.00916.09
7.3.180.0060.01216.03
7.3.170.0160.00316.22
7.3.160.0070.01016.12
7.2.330.0170.00616.38
7.2.320.0170.01116.70
7.2.310.0140.00616.40
7.2.300.0070.01416.62
7.2.290.0100.01316.17
7.2.60.0070.00716.36
7.2.50.0070.00716.52
7.2.40.3160.01717.54
7.2.30.3570.01817.71
7.2.20.2880.01217.71
7.2.10.3440.01217.68
7.2.00.2710.01117.34
7.1.200.0030.00615.75
7.1.160.3150.01316.39
7.1.150.3990.01316.61
7.1.140.2950.01616.56
7.1.130.3520.01816.51
7.1.120.2830.01416.75
7.1.110.3050.02015.88
7.1.100.3600.01616.01
7.1.90.3490.00916.02
7.1.80.3060.01415.88
7.1.70.3540.01515.37
7.1.60.2800.02033.15
7.1.50.3850.01932.87
7.1.40.4650.02132.68
7.1.30.5930.01332.61
7.1.20.4700.01432.68
7.1.10.5080.01414.67
7.1.00.4280.01514.89

preferences:
58.51 ms | 400 KiB | 5 Q