3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '{"relays_published":"2013-12-21 01:00:00", "relays":[ {"fingerprint":"9A785788015257CEE6DBC184B76CDEA24B19ADAB", "write_history":{ "3_days":{"first":"2013-12-17 12:22:30","last":"2013-12-20 11:37:30","interval":900,"factor":3896.316,"count":286,"values":[408,413,357,429,488,527,525,547,452,434,395,431,435,536,523,446,470,462,480,541,534,469,483,654,507,502,393,471,437,384,324,396,496,604,442,376,333,357,354,387,374,397,199,335,361,355,330,235,229,225,385,417,302,408,208,162,182,215,219,224,259,269,458,352,237,233,242,170,293,321,341,365,351,441,428,326,376,374,273,262,181,273,280,298,268,463,380,317,321,363,533,558,588,450,438,308,398,407,338,434,388,430,392,460,444,420,495,652,551,457,463,470,460,422,463,568,617,555,474,431,443,407,379,387,435,499,464,548,456,341,453,464,598,669,349,363,422,491,634,508,238,359,355,295,325,335,491,454,299,259,435,277,475,444,294,320,290,227,256,172,219,251,340,284,236,250,297,272,822,723,455,494,268,413,297,254,398,368,244,309,269,258,445,370,493,444,309,326,319,376,374,557,418,487,474,512,500,415,483,751,999,671,531,592,618,574,620,481,419,511,547,588,937,847,679,658,793,706,553,528,356,398,320,440,429,532,314,514,509,431,512,487,441,358,278,349,370,354,358,339,414,331,380,306,441,275,345,487,243,120,137,236,184,204,246,250,263,229,327,320,425,639,563,849,472,489,484,416,536,452,308,407,405,361,417,557,378,528,496,663,557,482,265,405,443,383]}, "1_week":{"first":"2013-12-13 12:30:00","last":"2013-12-20 11:30:00","interval":3600,"factor":2976.697,"count":168,"values":[331,382,416,423,574,643,422,553,512,480,514,589,387,568,305,391,449,481,486,516,558,452,520,501,524,472,528,396,621,392,364,408,479,542,732,638,510,601,639,561,528,711,582,487,589,459,429,503,519,443,677,665,698,546,689,779,705,362,371,291,405,389,328,179,234,299,240,290,316,285,330,413,303,262,288,549,638,601,482,641,568,582,572,629,735,587,323,381,561,514,542,428,458,602,473,494,526,644,598,630,608,663,673,529,634,465,444,452,352,437,255,396,348,368,519,442,326,461,502,666,475,538,595,695,594,724,544,584,588,681,625,478,474,474,488,358,321,349,743,482,414,419,529,457,634,625,966,787,641,999,887,524,561,644,512,468,480,447,323,285,350,637,751,560,521,641,644,537]}, "1_month":{"first":"2013-12-04 06:00:00","last":"2013-12-20 10:00:00","interval":14400,"factor":2273.542,"count":98,"values":[0,0,0,1,2,2,1,10,19,15,26,28,12,11,24,114,106,63,102,127,70,95,104,70,63,120,126,259,257,172,194,358,384,274,89,0,0,0,106,279,265,274,268,293,323,415,455,319,433,463,489,567,672,527,381,522,508,718,686,541,633,665,628,584,783,756,755,648,754,888,566,426,348,440,459,773,769,663,669,663,785,810,653,471,549,640,754,801,777,587,621,595,986,999,715,503,752,771]} }, "read_history":{ "3_days":{"first":"2013-12-17 12:22:30","last":"2013-12-20 11:37:30","interval":900,"factor":3778.206,"count":286,"values":[406,409,347,419,482,521,520,536,443,423,385,420,424,528,512,430,457,452,470,527,526,460,474,639,495,488,376,456,427,373,312,380,488,596,431,364,324,350,343,376,369,392,192,327,354,350,323,226,220,218,379,409,296,403,203,155,177,212,214,217,254,266,458,350,235,229,233,167,290,315,338,359,345,436,424,318,372,369,266,250,170,264,271,290,260,457,375,309,310,356,527,546,579,442,430,302,387,393,324,417,374,416,379,455,438,414,493,652,543,442,448,452,441,408,453,563,616,549,462,413,431,394,366,381,423,485,447,528,437,325,436,449,585,657,334,350,412,484,629,499,231,352,348,287,320,327,486,453,296,256,432,268,470,440,286,304,278,220,253,168,214,246,333,279,229,242,289,265,817,718,450,484,260,406,289,242,391,361,235,297,260,246,436,360,488,436,301,313,311,369,369,559,410,478,462,496,487,405,483,744,999,656,510,568,604,556,602,469,409,489,528,563,926,834,662,637,780,694,540,522,350,391,302,426,419,522,308,509,508,426,508,482,436,348,271,339,366,350,355,338,416,333,378,301,418,258,334,485,240,118,135,231,180,199,239,242,260,224,324,316,419,637,563,855,473,487,485,414,532,447,303,401,398,352,407,548,369,521,485,653,546,473,253,392,432,372]}, "1_week":{"first":"2013-12-13 12:30:00","last":"2013-12-20 11:30:00","interval":3600,"factor":2824.674,"count":168,"values":[335,388,422,430,585,659,428,566,523,490,524,597,391,581,311,398,457,490,495,527,563,459,527,508,534,480,539,405,635,399,368,415,479,545,741,651,514,610,647,570,534,720,589,490,593,457,422,494,510,431,673,660,693,548,686,778,712,354,371,292,410,393,328,175,232,300,237,288,313,282,326,414,300,259,289,558,643,612,478,645,577,585,576,638,750,594,324,383,571,519,545,427,461,607,476,492,530,650,597,630,605,664,668,525,634,462,445,453,349,439,254,400,350,371,523,443,319,462,502,668,470,531,602,698,587,732,536,581,578,677,627,478,475,481,489,353,321,347,753,481,411,414,530,456,638,626,973,779,634,999,887,523,560,653,514,472,490,439,327,284,351,647,769,567,521,644,644,534]}, "1_month":{"first":"2013-12-04 06:00:00","last":"2013-12-20 10:00:00","interval":14400,"factor":2151.826,"count":98,"values":[0,0,0,1,2,3,1,10,19,16,26,29,13,11,25,117,108,63,104,128,72,97,106,72,65,123,129,263,264,178,196,367,393,282,91,0,0,0,109,285,269,278,274,300,330,425,465,323,443,468,500,579,688,537,389,533,517,735,700,552,646,675,643,596,793,769,766,646,747,888,568,429,347,438,461,780,780,673,677,669,790,808,654,473,554,641,755,800,775,590,625,594,990,999,722,505,766,773]} }} ], "bridges_published":"2013-12-21 00:37:04", "bridges":[ ]}'; $decodedData = json_decode($data, true); var_dump($decodedData); $relays = $decodedData['relays']; $firstRelay = reset($relays); $writeHistoryValues = $firstRelay['write_history']['3_days']['values'];

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.40.0240.00618.67
8.3.30.0160.00320.34
8.3.20.0060.00620.34
8.3.10.0060.00620.95
8.3.00.0110.00022.52
8.2.170.0230.00322.96
8.2.160.0160.00921.95
8.2.150.0090.00324.18
8.2.140.0110.00024.66
8.2.130.0080.00326.16
8.2.120.0080.00320.58
8.2.110.0090.00319.32
8.2.100.0070.01317.78
8.2.90.0070.00319.21
8.2.80.0070.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00717.80
8.2.50.0030.00718.07
8.2.40.0090.00018.34
8.2.30.0030.00619.54
8.2.20.0070.00417.80
8.2.10.0030.00617.77
8.2.00.0060.00317.79
8.1.270.0110.00023.99
8.1.260.0090.00326.35
8.1.250.0060.00628.09
8.1.240.0070.00723.82
8.1.230.0130.00321.00
8.1.220.0060.00318.77
8.1.210.0070.00319.22
8.1.200.0100.00317.35
8.1.190.0090.00017.41
8.1.180.0000.01218.10
8.1.170.0030.00718.65
8.1.160.0030.00618.90
8.1.150.0030.00718.64
8.1.140.0070.00317.45
8.1.130.0030.00617.93
8.1.120.0030.00617.45
8.1.110.0070.00417.36
8.1.100.0030.00717.47
8.1.90.0070.00317.44
8.1.80.0060.00317.47
8.1.70.0060.00317.31
8.1.60.0100.00017.60
8.1.50.0080.00317.40
8.1.40.0000.00917.49
8.1.30.0030.00717.65
8.1.20.0040.00717.57
8.1.10.0030.00617.57
8.1.00.0070.00317.39
8.0.300.0040.00719.98
8.0.290.0060.00317.04
8.0.280.0050.00518.38
8.0.270.0090.00017.30
8.0.260.0000.01216.73
8.0.250.0060.00316.84
8.0.240.0060.00616.87
8.0.230.0030.00616.95
8.0.220.0000.00816.75
8.0.210.0000.00916.79
8.0.200.0040.00416.95
8.0.190.0060.00316.95
8.0.180.0030.00616.80
8.0.170.0000.01016.97
8.0.160.0060.00316.80
8.0.150.0060.00316.80
8.0.140.0110.00416.86
8.0.130.0070.00013.30
8.0.120.0100.00016.85
8.0.110.0070.00316.91
8.0.100.0060.00516.75
8.0.90.0000.00916.75
8.0.80.0060.02016.72
8.0.70.0050.00316.93
8.0.60.0030.00616.77
8.0.50.0000.00916.93
8.0.30.0170.01617.08
8.0.20.0190.01517.40
8.0.10.0000.00917.04
8.0.00.0270.00616.75
7.4.330.0030.00616.84
7.4.320.0000.00816.49
7.4.300.0050.00316.58
7.4.290.0070.00316.36
7.4.280.0060.00316.63
7.4.270.0090.00016.49
7.4.260.0060.00313.33
7.4.250.0040.00416.49
7.4.240.0020.00816.61
7.4.230.0080.00016.29
7.4.220.0220.01016.53
7.4.210.0130.01116.60
7.4.200.0030.00616.50
7.4.190.0050.00316.40
7.4.160.0140.01416.54
7.4.150.0150.01517.40
7.4.140.0190.01417.86
7.4.130.0230.01616.44
7.4.120.0220.00816.53
7.4.110.0150.01916.65
7.4.100.0230.00616.52
7.4.90.0200.01716.67
7.4.80.0100.02419.39
7.4.70.0130.02316.31
7.4.60.0190.01216.32
7.4.50.0000.01216.38
7.4.40.0100.01022.77
7.4.30.0120.01516.43
7.3.330.0000.00713.02
7.3.320.0040.00413.10
7.3.310.0030.00716.09
7.3.300.0030.00616.15
7.3.290.0140.00616.27
7.3.280.0100.01616.33
7.3.270.0100.02017.40
7.3.260.0210.01018.24
7.3.250.0180.01316.58
7.3.240.0160.01316.50
7.3.230.0140.01716.39
7.3.210.0180.01116.21
7.3.200.0160.01919.39
7.3.190.0210.00916.78
7.3.180.0130.01316.48
7.3.170.0230.01416.29
7.3.160.0140.02016.30
7.2.330.0230.01016.69
7.2.320.0030.02416.61
7.2.310.0180.02216.70
7.2.300.0100.02316.63
7.2.290.0080.01716.60
7.2.100.0360.01314.57
7.2.90.0920.01114.84
7.2.80.0430.01114.54
7.2.70.1810.00015.20
7.2.60.0590.01114.85
7.2.50.0360.01014.88
7.2.40.0730.01215.21
7.2.30.0710.01715.00
7.2.20.0700.00715.04
7.2.10.0450.00014.82
7.2.00.0790.01014.93
7.1.220.0230.00613.95
7.1.210.0890.00014.13
7.1.200.0800.00614.03
7.1.190.0660.00913.97
7.1.180.0690.01513.96
7.1.170.0700.00914.00
7.1.160.0600.00913.78
7.1.150.0290.01313.86
7.1.140.0920.01013.79
7.1.130.0270.00713.89
7.1.120.0710.01313.99
7.1.110.0300.01614.02
7.1.100.1720.00613.75
7.1.90.0370.00313.78
7.1.80.0720.01514.07
7.1.70.0680.00914.21
7.1.60.1010.01732.02
7.1.50.0790.01431.69
7.1.40.1510.01131.74
7.1.30.1030.00631.67
7.1.20.0570.00631.70
7.1.10.0350.00714.13
7.1.00.0610.01213.89
7.0.310.0950.01013.64
7.0.300.0620.01813.61
7.0.290.0990.00313.61
7.0.280.0720.00313.61
7.0.270.0400.00713.61
7.0.260.0850.00613.61
7.0.250.0700.01013.61
7.0.240.1770.00913.61
7.0.230.0870.01013.61
7.0.220.0790.00613.61
7.0.210.0550.00613.61
7.0.200.0720.01313.61
7.0.190.0780.00613.61
7.0.180.0710.01013.61
7.0.170.0570.00413.66
7.0.160.0330.00813.64
7.0.150.0500.00013.61
7.0.140.0200.00813.61
7.0.130.0550.01813.85
7.0.120.0730.01613.61
7.0.110.0230.00313.61
7.0.100.0650.00913.61
7.0.90.0780.00713.61
7.0.80.0260.00713.61
7.0.70.0110.01113.61
7.0.60.0290.00413.61
7.0.50.0730.00713.63
7.0.40.0830.01113.61
7.0.30.0360.01013.61
7.0.20.0880.00313.61
7.0.10.0920.00313.64
7.0.00.0760.01213.71
5.6.380.0200.00614.46
5.6.370.0100.01514.13
5.6.360.0120.01214.38
5.6.350.0040.02114.22
5.6.340.0130.00714.31
5.6.330.0040.02114.44
5.6.320.0370.00714.48
5.6.310.0230.00714.27
5.6.300.0110.01114.40
5.6.290.0150.00714.45
5.6.280.0120.01214.57
5.6.270.0220.00314.10
5.6.260.0100.01614.46
5.6.250.0220.00714.39
5.6.240.0200.00714.52
5.6.230.0120.00414.49
5.6.220.0100.01414.06
5.6.210.0140.01113.93
5.6.200.0180.01214.15
5.6.190.0110.01714.52
5.6.180.0220.00514.55
5.6.170.0150.00914.52
5.6.160.0200.00214.24
5.6.150.0160.01214.35
5.6.140.0080.01514.29
5.6.130.0200.00414.23
5.6.120.0000.02713.85
5.6.110.0150.00914.03
5.6.100.0090.01814.05
5.6.90.0160.00914.14
5.6.80.0140.01014.20
5.6.70.0120.00913.71
5.6.60.0140.00714.11
5.6.50.0090.01214.23
5.6.40.0090.01514.35
5.6.30.0180.00714.26
5.6.20.0200.00314.18
5.6.10.0190.00914.13
5.6.00.0070.01514.18
5.5.380.0120.00713.61
5.5.370.0070.01013.61
5.5.360.0110.01113.61
5.5.350.0110.00713.61
5.5.340.0130.00913.61
5.5.330.0090.00913.61
5.5.320.0120.00413.61
5.5.310.0170.00813.61
5.5.300.0100.00813.61
5.5.290.0110.00713.61
5.5.280.0190.00413.61
5.5.270.0100.01313.61
5.5.260.0070.01213.61
5.5.250.0140.00413.61
5.5.240.0100.01013.61
5.5.230.0040.01413.61
5.5.220.0030.01413.61
5.5.210.0150.01213.61
5.5.200.0090.00913.61
5.5.190.0110.00713.61
5.5.180.0180.00313.61
5.5.170.0210.00714.13
5.5.160.0210.00613.61
5.5.150.0150.00513.61
5.4.450.0250.00013.61
5.4.440.0170.00713.61
5.4.430.0220.00313.61
5.4.420.0100.01013.61
5.4.410.0130.00613.61
5.4.400.0130.00513.61
5.4.390.0150.00313.61
5.4.380.0100.01013.61
5.4.370.0160.01113.61
5.4.360.0210.00713.61
5.4.350.0210.00413.61
5.4.340.0170.00613.61
5.4.330.0180.00313.61
5.4.320.0160.00313.61
5.3.290.0100.01013.61

preferences:
46.35 ms | 400 KiB | 5 Q