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($data); $iopsr = $data->pgmap->read_op_per_sec; $iopsw = $data->pgmap->write_op_per_sec; $iops = $iopsr+$iopsw; $response = ['bytes_rd' => 0, 'bytes_wr' => 0, 'ops' => $iops]; $output = json_encode($response); echo "\n\nresult:\n", $output;

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.0140.00318.05
8.3.50.0100.00718.23
8.3.40.0160.00618.68
8.3.30.0130.00318.63
8.3.20.0050.00321.89
8.3.10.0030.00621.86
8.3.00.0060.00319.80
8.2.180.0210.00318.21
8.2.170.0100.01022.96
8.2.160.0110.00421.05
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00019.76
8.2.110.0030.00720.41
8.2.100.0060.00717.97
8.2.90.0030.00617.75
8.2.80.0040.00418.78
8.2.70.0040.00417.93
8.2.60.0000.00918.16
8.2.50.0120.00518.10
8.2.40.0000.00919.31
8.2.30.0040.00419.54
8.2.20.0040.00417.99
8.2.10.0030.00618.10
8.2.00.0040.00418.06
8.1.280.0060.00925.92
8.1.270.0000.00924.66
8.1.260.0000.00926.35
8.1.250.0050.00528.09
8.1.240.0070.00320.70
8.1.230.0000.01217.89
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00317.35
8.1.190.0000.00918.88
8.1.180.0030.00618.10
8.1.170.0050.00518.61
8.1.160.0060.00318.86
8.1.150.0030.00520.80
8.1.140.0040.00417.63
8.1.130.0050.00518.99
8.1.120.0000.01017.39
8.1.110.0030.00517.36
8.1.100.0040.00417.28
8.1.90.0030.00517.39
8.1.80.0060.00617.30
8.1.70.0080.00017.28
8.1.60.0050.00517.57
8.1.50.0000.00817.48
8.1.40.0040.00417.48
8.1.30.0030.00617.47
8.1.20.0050.00317.59
8.1.10.0050.00317.55
8.1.00.0050.00317.52
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0040.00418.48
8.0.270.0040.00417.25
8.0.260.0030.00317.16
8.0.250.0070.00016.90
8.0.240.0050.00217.00
8.0.230.0060.00316.84
8.0.220.0040.00416.71
8.0.210.0000.00716.77
8.0.200.0070.00016.74
8.0.190.0000.00916.89
8.0.180.0080.00016.82
8.0.170.0060.00316.85
8.0.160.0080.00016.83
8.0.150.0080.00316.65
8.0.140.0000.00816.79
8.0.130.0030.00313.24
8.0.120.0090.00016.77
8.0.110.0030.00616.77
8.0.100.0000.00816.79
8.0.90.0040.00416.81
8.0.80.0160.00616.71
8.0.70.0040.00416.68
8.0.60.0040.00416.84
8.0.50.0040.00416.89
8.0.30.0140.00817.14
8.0.20.0160.01217.40
8.0.10.0000.00816.82
8.0.00.0110.01216.85
7.4.330.0050.00015.55
7.4.320.0070.00016.43
7.4.300.0000.00716.48
7.4.290.0060.00316.50
7.4.280.0000.00916.54
7.4.270.0030.00716.57
7.4.260.0000.00716.48
7.4.250.0050.00316.46
7.4.240.0000.00816.42
7.4.230.0000.00716.54
7.4.220.0000.00816.58
7.4.210.0090.01116.46
7.4.200.0000.00716.68
7.4.160.0140.01016.45
7.4.140.0150.00917.86
7.4.130.0120.01516.50
7.4.120.0100.01316.51
7.4.110.0170.01016.42
7.4.100.0140.01016.42
7.4.90.0090.01016.37
7.4.80.0060.01719.39
7.4.70.0110.00816.43
7.4.60.0070.01416.39
7.4.50.0090.00616.70
7.4.40.0170.00516.53
7.4.00.0070.01114.91
7.3.330.0050.00013.20
7.3.320.0000.00613.05
7.3.310.0040.00416.21
7.3.300.0070.00016.31
7.3.290.0000.00716.35
7.3.280.0110.00916.37
7.3.260.0100.01616.40
7.3.240.0110.01016.35
7.3.230.0230.00316.28
7.3.210.0170.01016.40
7.3.200.0090.01016.38
7.3.190.0140.00616.38
7.3.180.0080.01216.34
7.3.170.0100.01016.59
7.3.160.0180.00316.26
7.3.120.0070.01014.83
7.3.110.0030.01214.62
7.3.100.0060.01014.88
7.3.90.0030.01014.90
7.3.80.0110.00714.79
7.3.70.0090.00914.87
7.3.60.0080.00814.90
7.3.50.0030.01314.96
7.3.40.0060.00914.88
7.3.30.0120.00614.95
7.3.20.0070.00716.81
7.3.10.0130.00316.53
7.3.00.0040.01516.41
7.2.330.0150.01516.76
7.2.320.0060.01916.62
7.2.310.0110.01116.80
7.2.300.0100.01016.55
7.2.290.0060.01516.50
7.2.240.0030.01414.94
7.2.230.0070.01315.17
7.2.220.0100.00715.08
7.2.210.0040.01414.99
7.2.200.0040.01215.04
7.2.190.0080.00814.73
7.2.180.0000.01915.02
7.2.170.0100.00614.71
7.2.160.0090.00614.96
7.2.150.0110.00716.78
7.2.140.0040.01116.95
7.2.130.0180.00016.61
7.2.120.0110.00817.03
7.2.110.0040.01116.74
7.2.100.0100.00717.11
7.2.90.0120.00616.79
7.2.80.0030.01217.06
7.2.70.0000.01816.98
7.2.60.0050.01016.95
7.2.50.0090.00716.89
7.2.40.1970.01117.45
7.2.30.1560.00917.08
7.2.20.1990.01717.25
7.2.10.1580.00817.28
7.2.00.2180.01117.15
7.1.330.0080.00815.91
7.1.320.0070.00715.79
7.1.310.0110.00715.79
7.1.300.0100.00615.62
7.1.290.0100.00615.88
7.1.280.0090.00615.59
7.1.270.0060.00915.77
7.1.260.0120.00315.64
7.1.250.0070.00716.05
7.1.200.0040.00815.85
7.1.160.4190.01216.68
7.1.150.3870.01616.16
7.1.140.4530.01316.70
7.1.130.2740.00916.81
7.1.120.2700.01516.41
7.1.110.3950.00716.07
7.1.100.4940.01616.04
7.1.90.6360.00916.13
7.1.80.5570.01016.14
7.1.70.6520.01815.50
7.1.60.5760.01433.36
7.1.50.7300.02333.08
7.1.41.0990.02732.84
7.1.30.9800.01832.83
7.1.20.6170.01732.77
7.1.10.8910.01214.72
7.1.00.3970.01115.04

preferences:
57.6 ms | 400 KiB | 5 Q